/* =============================================================
   4eDental University — Premium Logout Success Popup
   Shared across Student, Tutor and Admin modules
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- Overlay ---------- */
.edu-logout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    padding: 12px;
}

.edu-logout-overlay.edu-logout-show {
    opacity: 1;
    visibility: visible;
}

/* ---------- Card ---------- */
.edu-logout-card {
    background: linear-gradient(145deg, #1a2a6c 0%, #243474 42%, #2e428a 70%, #1f2f60 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.50),
        0 6px 24px rgba(36, 52, 116, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    width: 100%;
    max-width: 380px;
    padding: 30px 32px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.82) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.46, 0.64, 1),
                opacity 0.32s ease;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

.edu-logout-overlay.edu-logout-show .edu-logout-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Decorative glow orbs */
.edu-logout-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(54, 81, 184, 0.40) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.edu-logout-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(30, 50, 120, 0.50) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- Icon Circle ---------- */
.edu-logout-icon-wrap {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
    border: 2px solid rgba(255, 255, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.28),
        0 0 0 6px rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
    animation: edu-icon-pulse 2.8s ease-in-out infinite;
}

@keyframes edu-icon-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.28), 0 0 0 6px rgba(255,255,255,0.04); }
    50%       { box-shadow: 0 6px 18px rgba(0,0,0,0.28), 0 0 0 10px rgba(255,255,255,0.08); }
}

.edu-logout-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.30));
}

/* ---------- Wave hand emoji ---------- */
.edu-logout-wave {
    display: block;
    font-size: 26px;
    margin-bottom: 4px;
    animation: edu-wave 1.6s ease-in-out 0.4s 2;
    transform-origin: 75% 80%;
    position: relative;
    z-index: 1;
}

@keyframes edu-wave {
    0%   { transform: rotate(0deg);  }
    15%  { transform: rotate(16deg); }
    30%  { transform: rotate(-8deg); }
    45%  { transform: rotate(14deg); }
    60%  { transform: rotate(-4deg); }
    75%  { transform: rotate(10deg); }
    100% { transform: rotate(0deg);  }
}

/* ---------- Typography ---------- */
.edu-logout-greeting {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.08em;
    margin: 0 0 2px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.edu-logout-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- Divider ---------- */
.edu-logout-divider {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #3651B8, rgba(255,255,255,0.30));
    border-radius: 4px;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

/* ---------- Body text ---------- */
.edu-logout-body {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.edu-logout-tagline {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
}

/* ---------- Progress bar ---------- */
.edu-logout-progress-wrap {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    height: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.edu-logout-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3651B8, #6a85e0, #ffffff);
    border-radius: 50px;
    animation: edu-progress-fill 1.4s linear forwards;
}

@keyframes edu-progress-fill {
    0%   { width: 0%;   }
    100% { width: 100%; }
}

/* ---------- Status label ---------- */
.edu-logout-status {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ---------- Brand footer ---------- */
.edu-logout-brand {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.30);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .edu-logout-card {
        padding: 24px 22px 22px;
        border-radius: 16px;
        max-width: 340px;
    }

    .edu-logout-name {
        font-size: 19px;
    }

    .edu-logout-icon-wrap {
        width: 54px;
        height: 54px;
    }

    .edu-logout-icon-wrap svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .edu-logout-card {
        padding: 20px 18px 18px;
    }

    .edu-logout-name {
        font-size: 17px;
    }
}
