
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --transition-speed: 0.4s;
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    transition: all var(--transition-speed) ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mood-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.mood-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.mood-btn {
    padding: 1.5rem 1rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
}

.mood-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mood-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.message-display {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    animation: fadeIn 0.6s ease;
}

.stats-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-btn {
    background: #ef4444;
    color: white;
}

.audio-btn {
    background: #10b981;
    color: white;
}

.theme-btn {
    background: #3b82f6;
    color: white;
}

.control-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.audio-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.volume-slider {
    width: 150px;
    height: 6px;
    /* -webkit-appearance: none; */
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

/* Mood Themes */
body.happy {
    --primary-color: #f59e0b;
    --secondary-color: #fbbf24;
    --text-color: #78350f;
    --bg-color: linear-gradient(135deg, #fef3c7, #fde68a);
    --card-bg: rgba(255, 255, 255, 0.85);
}

body.sad {
    --primary-color: #60a5fa;
    --secondary-color: #93c5fd;
    --text-color: #1e40af;
    --bg-color: linear-gradient(135deg, #dbeafe, #bfdbfe);
    --card-bg: rgba(255, 255, 255, 0.85);
}

body.angry {
    --primary-color: #ef4444;
    --secondary-color: #f87171;
    --text-color: #7f1d1d;
    --bg-color: linear-gradient(135deg, #fee2e2, #fecaca);
    --card-bg: rgba(255, 255, 255, 0.85);
}

body.tired {
    --primary-color: #8b5cf6;
    --secondary-color: #a78bfa;
    --text-color: #5b21b6;
    --bg-color: linear-gradient(135deg, #ede9fe, #ddd6fe);
    --card-bg: rgba(255, 255, 255, 0.85);
}

body.confused {
    --primary-color: #ec4899;
    --secondary-color: #f472b6;
    --text-color: #831843;
    --bg-color: linear-gradient(135deg, #fce7f3, #fbcfe8);
    --card-bg: rgba(255, 255, 255, 0.85);
}

body.dark-mode {
    --text-color: #f3f4f6;
    --card-bg: rgba(31, 41, 55, 0.8);
    --bg-color: #111827;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .mood-card {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
    
    .mood-title {
        font-size: 2rem;
    }
    
    .mood-options {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mood-title {
        font-size: 1.8rem;
    }
    
    .message-display {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        justify-content: center;
    }
}