/* Base & Layout */
:root {
    --primary: #6DAB27;
    --primary-dark: #588c1e;
    --primary-light: #e8f5df;
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-alt: #f9fdf5;
}

body {
    background-color: #efefef;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-container {
    background: var(--bg-main);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(109, 171, 39, 0.1);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.screen {
    padding: 40px;
    transition: opacity 0.4s ease;
}

.screen.hidden {
    display: none;
}

/* App Header */
.app-header {
    text-align: center;
    margin-bottom: 30px;
}

.app-header h1 {
    color: var(--primary-dark);
    font-size: 36px;
    margin-bottom: 10px;
}

.app-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 15px rgba(109, 171, 39, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(109, 171, 39, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.small-btn {
    padding: 10px 25px;
    font-size: 15px;
    margin-top: 20px;
}

/* Intro Screen */
.intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.routine-settings {
    margin-top: 30px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 12px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-item label {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 5px;
}

.setting-item input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.seo-intro-content {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary);
}

.seo-intro-content > p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
}

.intro-sequence-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.intro-sequence-list li {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.intro-sequence-list li::before {
    content: "🧘";
    margin-right: 10px;
    font-size: 18px;
}

/* Active Screen */
.progress-bar {
    height: 8px;
    background: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

.view-split {
    display: flex;
    gap: 40px;
}

.action-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.pose-demo {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.pose-demo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-panel h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 10px;
    margin-top: 0;
}

.purpose-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.action-desc {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.timer-display {
    margin-bottom: 30px;
}

.timer-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke: var(--primary);
    stroke-dasharray: 565.48; /* 2 * pi * 90 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    font-weight: 300;
    color: var(--primary-dark);
}

.controls-row {
    display: flex;
    gap: 15px;
}

/* Upcoming List */
.upcoming-panel {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #efefef;
}

.upcoming-panel h3 {
    margin-top: 0;
    color: var(--text-main);
    font-size: 18px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.upcoming-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.upcoming-list li.completed {
    color: #a0a0a0;
    text-decoration: line-through;
}

.upcoming-list li.active {
    color: var(--primary-dark);
    font-weight: bold;
}

.upcoming-list li .time {
    color: #999;
    font-size: 12px;
}

/* Completion Screen */
.completion-card {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite ease-in-out;
}

.completion-card h2 {
    color: var(--primary-dark);
    font-size: 40px;
    margin-bottom: 15px;
}

.completion-card p {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.motivation-text {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 12px;
    font-style: italic;
    color: var(--text-light);
    border-left: 4px solid var(--primary);
    margin: 0 auto 40px;
    max-width: 600px;
    line-height: 1.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
    .view-split {
        flex-direction: column;
    }
    .action-panel {
        padding: 20px;
    }
}
