* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B46C1;
    --secondary-color: #9333EA;
    --success-color: #10B981;
    --text-color: #1F2937;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #6B7280;
}

.timer-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

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

.time-left {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 1rem;
    color: #6B7280;
    margin-top: 10px;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--text-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.settings-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.settings-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.setting-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-item label {
    font-weight: 500;
}

.setting-item input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.yoga-display {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.yoga-display h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.pose-card {
    background: linear-gradient(135deg, #F3E7FF 0%, #E9D5FF 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.pose-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
}

.pose-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.pose-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 20px;
}

.pose-timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
}

.stats-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.stats-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 5px;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #6B7280;
}

.notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.notification-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

.notification-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.notification-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #4B5563;
}

.notification-content .btn {
    margin: 0 10px;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .time-left {
        font-size: 3rem;
    }
    
    .timer-section,
    .settings-section,
    .yoga-display,
    .stats-section {
        padding: 20px;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .notification-content {
        margin: 20px;
        padding: 30px;
    }
    
    .notification-content .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}