/* Sleep Wellness Assessment Announcement Banner */
.sleep-announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
    border-bottom: 3px solid #ffd700;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sleep-announcement-banner.closing {
    animation: slideUp 0.4s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.sleep-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px 20px 20px;
    position: relative;
}

.sleep-banner-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.sleep-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sleep-banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.sleep-banner-icon {
    flex-shrink: 0;
}

.sleep-icon {
    font-size: 60px;
    display: block;
    animation: pulseGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.sleep-banner-text {
    flex: 1;
}

.sleep-banner-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sleep-banner-description {
    color: #e3f2fd;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.sleep-banner-action {
    flex-shrink: 0;
}

.sleep-banner-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a237e;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
}

.sleep-banner-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.button-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sleep-banner-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Adjust body padding when banner is visible */
body.sleep-banner-active {
    padding-top: 160px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sleep-banner-container {
        padding: 18px 50px 18px 18px;
    }

    .sleep-banner-content {
        gap: 20px;
    }

    .sleep-icon {
        font-size: 50px;
    }

    .sleep-banner-title {
        font-size: 20px;
    }

    .sleep-banner-description {
        font-size: 15px;
    }

    .sleep-banner-button {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .sleep-banner-container {
        padding: 15px 45px 15px 15px;
    }

    .sleep-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .sleep-icon {
        font-size: 45px;
    }

    .sleep-banner-title {
        font-size: 18px;
    }

    .sleep-banner-description {
        font-size: 14px;
    }

    .sleep-banner-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    .sleep-banner-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    body.sleep-banner-active {
        padding-top: 200px;
    }
}

@media (max-width: 480px) {
    .sleep-banner-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .sleep-banner-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .sleep-banner-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    body.sleep-banner-active {
        padding-top: 230px;
    }
}

/* Print styles - hide banner when printing */
@media print {
    .sleep-announcement-banner {
        display: none !important;
    }

    body.sleep-banner-active {
        padding-top: 0 !important;
    }
}
