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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #1a1a3e 0%, #0f0f1e 50%, #0a0a15 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.mountains {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, #0a0a15 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 200px solid #1a1a2e;
}

.mountain:nth-child(1) {
    left: -50px;
    border-bottom-color: #16162a;
}

.mountain:nth-child(2) {
    left: 20%;
    border-left-width: 200px;
    border-right-width: 200px;
    border-bottom-width: 250px;
    border-bottom-color: #12121f;
}

.mountain:nth-child(3) {
    right: 10%;
    border-left-width: 180px;
    border-right-width: 180px;
    border-bottom-color: #0f0f1a;
}

/* Nav Tabs removed */

.container {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    margin: 0 auto;
    padding: 20px 20px 50px 20px;
    text-align: center;
    flex: 1;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5em;
    color: #b8b8ff;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(40, 40, 80, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(100, 100, 150, 0.3);
}

.section-title {
    font-size: 1.3em;
    color: #ffcc99;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Navigation Tabs - Removed */
/* Sleep Calculator Styles - Removed */

.btn {
    background: linear-gradient(135deg, rgba(80, 80, 150, 0.8) 0%, rgba(60, 60, 120, 0.8) 100%);
    border: 2px solid rgba(150, 150, 200, 0.4);
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    margin: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 100, 200, 0.4);
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Music Player Styles */
.music-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(26, 58, 82, 0.6), rgba(10, 26, 42, 0.6));
    border-radius: 20px;
    margin-bottom: 30px;
}

.album-art {
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-title {
    font-size: 1.8em;
    color: white;
    margin-bottom: 10px;
    font-weight: 500;
}

.music-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.artist-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.artist-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
}

.track-section {
    background: rgba(20, 30, 45, 0.5);
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(40, 60, 80, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.track-item:hover {
    background: rgba(60, 80, 100, 0.5);
    border-color: rgba(100, 150, 200, 0.3);
}

.track-item.playing {
    background: rgba(80, 120, 160, 0.5);
    border-color: rgba(100, 150, 255, 0.6);
}

.track-thumbnail {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(60, 100, 140, 0.8), rgba(40, 70, 100, 0.8));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
    text-align: left;
}

.track-name {
    font-size: 1.1em;
    color: white;
    font-weight: 500;
    margin-bottom: 4px;
}

.track-artist {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.play-track-btn {
    width: 45px;
    height: 45px;
    background: rgba(100, 200, 100, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-track-btn:hover {
    background: rgba(80, 180, 80, 1);
    transform: scale(1.1);
}

.track-item.playing .play-track-btn {
    background: rgba(200, 100, 100, 0.8);
}

.player-controls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 5px 0;
    /* Reduced from 10px */
}

.volume-slider {
    width: 180px;
    /* Slightly smaller */
    height: 5px;
    background: rgba(100, 100, 150, 0.3);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #b8b8ff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #b8b8ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Timer Styles */
.timer-display {
    font-size: 2em;
    /* Reduced from 2.5em */
    color: #b8b8ff;
    font-weight: 600;
    margin: 2px 0;
    /* Reduced from 5px */
    line-height: 1.2;
}

.timer-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 5px 0;
    /* Reduced from 10px */
}

.preset-btn {
    background: rgba(60, 60, 120, 0.6);
    border: 2px solid rgba(100, 100, 150, 0.3);
    border-radius: 12px;
    padding: 6px 12px;
    /* Further reduced */
    font-size: 0.9em;
    /* Reduced */
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-btn:hover {
    border-color: rgba(184, 184, 255, 0.6);
}

.preset-btn.active {
    background: rgba(80, 80, 150, 0.8);
    border-color: rgba(184, 184, 255, 0.8);
}

.custom-timer-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    /* Reduced from 10px */
    flex-wrap: wrap;
}

.custom-input {
    background: rgba(40, 40, 80, 0.6);
    border: 2px solid rgba(100, 100, 150, 0.3);
    border-radius: 12px;
    padding: 6px 10px;
    /* Further reduced */
    font-size: 1em;
    color: white;
    text-align: center;
    width: 60px;
    /* Reduced width */
}

#setCustomBtn {
    background: rgba(80, 80, 150, 0.8);
    border: 2px solid rgba(100, 100, 150, 0.3);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 1em;
    width: 60px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0;
}

#setCustomBtn:hover {
    border-color: rgba(184, 184, 255, 0.6);
    background: rgba(100, 100, 180, 0.9);
}

.custom-input:focus {
    outline: none;
    border-color: rgba(184, 184, 255, 0.6);
}

/* Breathing & Stats - Removed */

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .time-input {
        font-size: 1.5em;
        width: 80px;
        padding: 12px 20px;
    }

    .album-art {
        width: 250px;
        height: 250px;
    }

    .timer-display {
        font-size: 2.5em;
    }

    .breathing-circle {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 15px 250px 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .section {
        padding: 20px 15px;
    }

    .time-input {
        font-size: 1.3em;
        width: 70px;
    }

    .tab {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .album-art {
        width: 200px;
        height: 200px;
    }

    .volume-slider {
        width: 150px;
    }
}

/* Header and Footer Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(10, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #b8b8ff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a,
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1em;
}

.nav-links a:hover,
.footer-links a:hover {
    color: #b8b8ff;
    text-shadow: 0 0 10px rgba(184, 184, 255, 0.5);
}

.app-footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(10, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .app-header {
        flex-direction: row;      /* ✅ row hi rahega */
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        gap: 0;
    }

    .nav-links {
        gap: 15px;
    }
}

/* Policy/Content Pages - Dark Background */
.page-content {
    background: transparent;
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
}

.page-content h1 {
    color: #b8b8ff;
}

.page-content .section {
    background: rgba(40, 40, 80, 0.4);
    border-color: rgba(100, 100, 150, 0.3);
    backdrop-filter: blur(10px);
}

.page-content .section-title {
    color: #ffcc99;
}

.page-content .tip-text {
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.faq-item {
    background: rgba(40, 60, 80, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(100, 100, 150, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(50, 70, 90, 0.5);
    border-color: rgba(100, 150, 200, 0.3);
}

.faq-item[open] {
    background: rgba(50, 70, 90, 0.6);
    border-color: rgba(184, 184, 255, 0.3);
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    color: #e0e0ff;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #b8b8ff;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}