/* ===== V2.5.2: Daily Goal Full-Page Overlay ===== */
/* Extracted from index.html lines 627-835 */
/* Replaces Bootstrap modal to fix mobile display issues */

.daily-goal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.daily-goal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.daily-goal-overlay-content {
    background: #fdfaf3;
    border: 4px solid var(--amber-color, #f0a500);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    padding: 25px 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.daily-goal-overlay.show .daily-goal-overlay-content {
    transform: translateY(0);
}

.daily-goal-overlay-image {
    width: 200px;
    height: auto;
    margin-bottom: 15px;
    border: 3px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.daily-goal-overlay-title {
    color: var(--primary-color, #27ae60);
    font-weight: bold;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.daily-goal-overlay-message {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.daily-goal-overlay-warning {
    background-color: #ffebee;
    border: 3px solid #f44336;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.daily-goal-overlay-warning p {
    margin: 0;
    color: #c62828;
    font-weight: bold;
    font-size: 0.95rem;
}

.daily-goal-overlay-timestamp {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.daily-goal-overlay-breakdown {
    text-align: left;
    margin-top: 15px;
}

.daily-goal-overlay-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.daily-goal-overlay-btn-container {
    margin-top: 15px;
}

.daily-goal-overlay-btn-container.hidden {
    display: none;
}

/* ===== V2.5.2: Test Zone Session Info Banner ===== */
/* Replaces Bootstrap modal to fix mobile display issues */
.session-info-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid var(--amber-color, #f0a500);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: sessionBannerSlideDown 0.4s ease;
}

.session-info-banner.hidden {
    display: none;
}

.session-info-banner-icon {
    font-size: 2.5rem;
    color: var(--amber-color, #f0a500);
    flex-shrink: 0;
}

.session-info-banner-content {
    flex: 1;
}

.session-info-banner-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.session-info-banner-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.session-info-banner-text ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.session-info-banner-text li {
    margin-bottom: 5px;
}

.session-info-banner-dismiss {
    padding: 8px 20px;
    font-weight: 600;
    flex-shrink: 0;
    align-self: center;
}

@keyframes sessionBannerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

/* Mobile adjustments for both components */
@media (max-width: 576px) {
    .daily-goal-overlay-content {
        padding: 20px 15px;
        max-height: 95vh;
    }

    .daily-goal-overlay-image {
        width: 150px;
    }

    .daily-goal-overlay-title {
        font-size: 1.3rem;
    }

    .session-info-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .session-info-banner-icon {
        font-size: 2rem;
    }

    .session-info-banner-dismiss {
        align-self: center;
        width: 100%;
    }
}

/* ===== v4.3.3: Random Student Chooser Overlay ===== */

.hm-random-chooser-overlay {
    position: absolute;
    inset: 0;
    z-index: 800;
    background: rgba(10, 10, 30, 0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hmRcFadeIn 0.3s ease;
}

@keyframes hmRcFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hm-random-chooser-modal {
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    border: 2px solid rgba(167, 139, 250, 0.5);
    border-radius: 20px;
    padding: 28px 32px;
    max-width: min(480px, 90vw);
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: #ede9fe;
}

.hm-random-chooser-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    color: #c4b5fd;
}

.hm-random-chooser-candidates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 18px;
}

.hm-chooser-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.88rem;
    color: #ddd6fe;
    transition: background 0.08s, color 0.08s, transform 0.08s;
}

.hm-chooser-pill--active {
    background: rgba(167, 139, 250, 0.55);
    color: #fff;
    border-color: #a78bfa;
    transform: scale(1.12);
    font-weight: 600;
}

.hm-chooser-pill--winner {
    background: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
    border-color: #4ade80;
    font-weight: 700;
    animation: hmRcWinnerPulse 0.8s ease 2;
}

@keyframes hmRcWinnerPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

.hm-random-chooser-spotlight {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-chooser-winner-label {
    font-size: 1.7rem;
    font-weight: 800;
    color: #86efac;
    text-shadow: 0 0 24px rgba(74, 222, 128, 0.6);
    animation: hmRcWinnerPopIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hmRcWinnerPopIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

.hm-chooser-dismiss-note {
    margin-top: 18px;
    font-size: 0.82rem;
    color: rgba(199, 210, 254, 0.65);
    letter-spacing: 0.02em;
}