:root {
    --bg: #F3EBF6;
    --card: #FFFFFF;
    --text: #5A4E69;
    --accent: #ab8bbb;
    --accent-light: #E8DFF1;
    --sidebar: #fdf7f7;
    --low-stress: #f0ebb7;
    --med-stress: #C8E6C9;
    --high-stress: #f8b1b8;
}

.dark-theme {
    --bg: #2D1B36;
    --card: #3D2B46;
    --text: #F3EBF6;
    --accent: #C9AEDC;
    --accent-light: #4D3B56;
    --sidebar: #3D2B46;
}

body {
    margin: 0;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s ease;
}


nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 25px;
    background: var(--card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--accent);
    cursor: pointer;
    margin-right: 20px;
}

h1 { margin: 0; font-size: 1.5rem; }


.sidebar {
    position: fixed; left: -320px; top: 0; width: 280px; height: 100%;
    background: var(--sidebar); z-index: 1000; transition: 0.4s; padding: 25px;
}
.sidebar.active { left: 0; }
.overlay {
    position: fixed; display: none; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 999; backdrop-filter: blur(3px);
}


.centered { text-align: center; max-width: 800px; margin: 25px auto; padding: 0 15px; }
.hidden { display: none !important; }

.hero, .quiz-card, .mood-card, .result-container {
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}


.quiz-card { text-align: left; }
.option-btn {
    margin: 6px;
    background: var(--accent-light);
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}
.option-btn.selected { background: var(--accent); color: white; }


.mood-presets { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-bottom: 25px; 
}

.mood-opt { 
    background: var(--accent-light); 
    padding: 10px 12px; 
    font-size: 0.93rem; 
    font-weight: 600;
    border: none; 
    border-radius: 8px; 
    cursor: pointer;
    transition: 0.2s;
    min-width: 120px;
}

.mood-opt.active { background: var(--accent); color: white; }

.mood-input-group { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 20px; 
    flex-wrap: wrap; 
}

#moodInput { 
    padding: 15px; 
    width: 300px; 
    border-radius: 10px; 
    border: 2px solid var(--accent-light); 
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}


button { border: none; border-radius: 12px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.primary-btn { background: var(--accent); color: white; padding: 12px 24px; }
.secondary-btn { background: var(--accent-light); color: var(--text); padding: 12px 24px; }


.res-box { padding: 25px; border-radius: 15px; margin: 20px 0; font-weight: bold; color: #3B3A3A; }
.res-low { background: var(--low-stress); }
.res-med { background: var(--med-stress); }
.res-high { background: var(--high-stress); }


.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: white; padding: 12px 25px;
    border-radius: 50px; z-index: 2000; font-weight: 600; transition: 0.3s opacity;
}