/* Sleep Improvement Page Styles */

.sleep-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/sleep-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.sleep-assessment {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.assessment-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.sleep-tips {
    padding: 3rem 0;
}

.tips-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.tip-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.tip-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background-color: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #2c3e50;
}

.tip-question::after {
    content: '+';
    font-size: 1.5rem;
}

.tip-question.active::after {
    content: '-';
}

.tip-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.tip-answer p {
    padding: 1rem 0;
}

.tip-item.active .tip-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.sleep-tracker {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.tracker-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tracker-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.tracker-history {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 300px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sleep-hero h1 {
        font-size: 2.2rem;
    }
    
    .tracker-container {
        grid-template-columns: 1fr;
    }
}