/* ==========================================================================
   Lecturers' Log Sheet Submission Portal - Stylesheet
   Faithfully matching Untitled 1 (Welcome) & Untitled 2 (Sign In)
   Fully responsive across all screen sizes (Mobile, Tablet, Desktop, Wide)
   ========================================================================== */

/* Hide the browser's native password reveal eye (Edge / Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
}

:root {
    --primary-blue: #3852d4;
    --primary-blue-hover: #2942b8;
    --primary-blue-active: #1f3496;
    --title-blue: #3852d4;
    --subtitle-blue: #4355b9;
    --footer-blue: #1a368b;
    --bg-light: #eff4fa;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --pill-ring: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.05);
    --shadow-btn: 0 6px 20px rgba(56, 82, 212, 0.28);
    --radius-pill: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* App Wrapper */
.portal-app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 10%, #eff4fa 100%);
    position: relative;
}

/* Top Universal Header */
.portal-header {
    background-color: #ffffff;
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.portal-header-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-header-logo {
    height: 68px;
    max-height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
}

.portal-admin-switch {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.portal-admin-switch:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Views Container */
.portal-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 20px 28px 20px;
    position: relative;
}

.portal-view-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    animation: fadeIn 0.3s ease-out;
}

.portal-view-container.wide-view {
    max-width: 960px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titles and Headings */
.welcome-avatar-circle,
.staff-avatar-circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 3.5px solid #3852d4;
    overflow: hidden;
    margin: 0 auto 18px auto;
    box-shadow: 0 4px 18px rgba(56, 82, 212, 0.22);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.welcome-avatar-circle img,
.staff-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-prefix-text {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    color: var(--subtitle-blue);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.welcome-main-title {
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 800;
    color: var(--title-blue);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 38px;
}

.welcome-main-title span {
    display: block;
}

.page-title {
    font-size: clamp(22px, 5.5vw, 30px);
    font-weight: 800;
    color: var(--title-blue);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
}

.page-title span {
    display: block;
}

.page-subtitle {
    font-size: clamp(17px, 4vw, 20px);
    font-weight: 700;
    color: var(--subtitle-blue);
    text-align: center;
    margin-bottom: 28px;
}

/* Buttons matching Untitled 1 & 2 */
.btn-pill-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: clamp(20px, 4.5vw, 24px);
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 14px 54px;
    border: 4px solid var(--pill-ring);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-btn);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    user-select: none;
    outline: none;
    min-width: 200px;
    text-align: center;
}

.btn-pill-blue:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 8px 24px rgba(56, 82, 212, 0.35);
}

.btn-pill-blue:active {
    transform: translateY(1px) scale(0.99);
}

/* Sign In Form Styles (Untitled 2) */
.signin-form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pill-input-group {
    width: 100%;
    background-color: #ffffff;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 3px solid var(--pill-ring);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.pill-input-group:focus-within {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 82, 212, 0.25), var(--shadow-soft);
}

.pill-input-label {
    color: var(--primary-blue);
    font-size: clamp(16px, 3.8vw, 19px);
    font-weight: 700;
    white-space: nowrap;
    margin-right: 12px;
    user-select: none;
}

.pill-input-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: clamp(16px, 3.8vw, 18px);
    font-weight: 600;
    color: var(--text-dark);
    width: 100%;
}

.pill-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.password-eye-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: var(--transition);
    margin-left: 4px;
    border-radius: 6px;
    flex-shrink: 0;
}

.password-eye-btn:hover {
    color: var(--primary-blue);
    background: rgba(56, 82, 212, 0.06);
}

.password-eye-btn svg {
    display: block;
    stroke: currentColor;
    transition: stroke 0.2s ease;
}

/* Validation helper row */
.validation-help-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.validation-help-card strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.validation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.val-tag {
    background: #eef2ff;
    color: #3730a3;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #c7d2fe;
}

.val-tag.match {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

/* Error message banner */
.login-error-alert {
    width: 100%;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.2s ease-in;
}

.login-error-alert svg {
    flex-shrink: 0;
}

/* Success message banner (Transparent light green bar) */
.login-success-alert {
    width: 100%;
    background-color: rgba(220, 252, 231, 0.75); /* transparent light green */
    border: 1.5px solid rgba(34, 197, 94, 0.5);
    color: #15803d;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    animation: fadeIn 0.2s ease-in;
}

.login-success-alert svg {
    flex-shrink: 0;
    stroke: #16a34a;
}

/* Button Group Row (Untitled 2) */
.signin-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin-top: 10px;
}

/* Solid Blue "Back" button */
.btn-pill-back {
    flex: 1;
    max-width: 180px;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    border: 3px solid var(--pill-ring);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-btn);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    outline: none;
}

.btn-pill-back:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
}

.btn-pill-back:active {
    transform: translateY(1px);
}

/* White "Sign In" button with Blue Text */
.btn-pill-signin {
    flex: 1;
    max-width: 180px;
    background-color: #ffffff;
    color: var(--primary-blue);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    border: 3px solid var(--pill-ring);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    outline: none;
}

.btn-pill-signin:hover {
    background-color: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(56, 82, 212, 0.2), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-pill-signin:active {
    transform: translateY(1px);
}

.btn-pill-signin.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Footer text: ACADEMY OF ENGLISH */
.portal-footer-academy {
    margin-top: 36px;
    padding-bottom: 8px;
    color: var(--footer-blue);
    font-size: clamp(16px, 3.8vw, 20px);
    font-weight: 800;
    text-align: center;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portal-footer-bottom {
    margin-top: 36px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.portal-footer-bottom .portal-footer-academy {
    margin-top: 0;
    padding-bottom: 0;
}

.portal-footer-powered {
    font-size: clamp(11px, 2.2vw, 13px);
    font-weight: 600;
    color: var(--footer-blue);
    letter-spacing: 0.6px;
    opacity: 0.6;
    text-transform: uppercase;
}

/* ==========================================================================
   Screen 3: Available Log Sheet Submissions
   Options: "This Month" and "Previous Month"
   ========================================================================== */

.lecturer-welcome-bar {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.lecturer-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lecturer-avatar-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3852d4, #1e3a8a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 2px 6px rgba(56, 82, 212, 0.25);
    flex-shrink: 0;
}

.lecturer-avatar-circle svg {
    display: block;
    stroke: currentColor;
}

.lecturer-info-names {
    display: flex;
    flex-direction: column;
}

.lecturer-display-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.lecturer-role-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    background: #eff4ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 2px;
    width: fit-content;
}

.btn-signout {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-signout:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Two Big Options: This Month & Previous Month */
.submission-options-container {
    width: 100%;
    margin-bottom: 24px;
}

.options-heading-sub {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    margin-bottom: 18px;
}

.period-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.period-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    border: 3px solid transparent;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(56, 82, 212, 0.12);
    border-color: rgba(56, 82, 212, 0.3);
}

.period-card.active-selection {
    border-color: var(--primary-blue);
    background: #f9fbff;
    box-shadow: 0 8px 26px rgba(56, 82, 212, 0.16);
}

.period-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.period-badge-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 12px;
}

.period-badge-tag.tag-current {
    background: #dbeafe;
    color: #1e40af;
}

.period-badge-tag.tag-archive {
    background: #f1f5f9;
    color: #475569;
}

.period-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.period-icon-circle svg {
    display: block;
    stroke: currentColor;
}

.period-card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.period-card-month-year {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 16px;
}

.period-info-meta {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    border: 1px solid #edf2f7;
}

.period-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.period-info-row:last-child {
    margin-bottom: 0;
}

.period-info-label {
    font-weight: 600;
    color: #64748b;
}

.period-info-value {
    font-weight: 700;
    color: #0f172a;
}

.status-badge-pill {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
}

.status-badge-pill.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-pill.status-submitted {
    background: #dcfce7;
    color: #166534;
}

.status-badge-pill.status-not-submitted {
    background: #fee2e2;
    color: #991b1b;
}

.btn-card-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.period-card.active-selection .btn-card-select {
    background-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(56, 82, 212, 0.25);
}

.period-card:not(.active-selection) .btn-card-select {
    background-color: #f1f5f9;
    color: #475569;
}

.period-card:not(.active-selection):hover .btn-card-select {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* Detailed Period Form & Submissions View */
.period-detail-container {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-out;
}

.detail-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-title-group h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.detail-title-group p {
    font-size: 13.5px;
    color: #64748b;
}

.submission-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.sub-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-input-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.sub-input-group input, 
.sub-input-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: var(--transition);
}

.sub-input-group input:focus, 
.sub-input-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(56, 82, 212, 0.15);
}

.btn-submit-hours {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-btn);
}

.btn-submit-hours:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints & Fine-Tuning
   Works seamlessly across all screen sizes and device types
   ========================================================================== */

/* Very small mobile devices (e.g. iPhone SE, 320px - 360px) */
@media (max-width: 360px) {
    .portal-header {
        justify-content: space-between;
        padding: 12px 14px;
    }
    .portal-header-logo-container {
        justify-content: flex-start;
    }
    .portal-header-logo {
        height: 46px;
    }
    .portal-admin-switch {
        position: static;
        transform: none;
        flex-shrink: 0;
        font-size: 11px;
        padding: 5px 9px;
        gap: 4px;
    }
    .portal-main-area {
        padding: 16px 12px 20px 12px;
    }
    .pill-input-group {
        padding: 10px 16px;
    }
    .signin-btn-row {
        gap: 10px;
    }
    .btn-pill-back, .btn-pill-signin {
        padding: 10px 16px;
        font-size: 17px;
    }
    .btn-pill-blue {
        padding: 12px 34px;
        font-size: 19px;
    }
}

/* Medium Mobile Devices (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .portal-header {
        justify-content: space-between;
        padding: 12px 16px;
    }
    .portal-header-logo-container {
        justify-content: flex-start;
    }
    .portal-header-logo {
        height: 54px;
    }
    .portal-admin-switch {
        position: static;
        transform: none;
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 10px;
    }
    .portal-main-area {
        padding: 20px 16px 24px 16px;
    }
    .pill-input-group {
        padding: 12px 20px;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .portal-view-container {
        max-width: 480px;
    }
    .portal-header {
        justify-content: space-between;
        padding: 14px 20px;
    }
    .portal-header-logo-container {
        justify-content: flex-start;
    }
    .portal-header-logo {
        height: 62px;
    }
    .portal-admin-switch {
        position: static;
        transform: none;
        flex-shrink: 0;
    }
}

/* Desktops and Laptops (769px and above) */
@media (min-width: 769px) {
    .portal-header {
        padding: 20px 40px;
    }
    .portal-header-logo {
        height: 80px;
    }
    .portal-main-area {
        padding: 36px 24px 36px 24px;
    }
    .portal-view-container:not(.wide-view) {
        max-width: 500px;
    }
}

/* Landscape orientation on mobile devices */
@media (max-height: 580px) and (orientation: landscape) {
    .portal-app-wrapper {
        min-height: 100%;
    }
    .portal-header {
        padding: 10px 20px;
        justify-content: space-between;
    }
    .portal-header-logo-container {
        justify-content: flex-start;
    }
    .portal-admin-switch {
        position: static;
        transform: none;
        flex-shrink: 0;
    }
    .portal-header-logo {
        height: 48px;
    }
    .portal-main-area {
        padding: 16px 20px;
    }
    .welcome-main-title {
        margin-bottom: 20px;
    }
    .portal-footer-academy {
        margin-top: 20px;
    }
}

/* ===========================
   Login Success Banner
   =========================== */
.login-success-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: rgba(187, 247, 208, 0.55); /* transparent light green */
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    border-radius: 12px;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    box-sizing: border-box;
    animation: successFadeOut 0.5s ease 4s forwards; /* starts fading at 4 s */
}

@keyframes successFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}

/* ============================================================
   Lecturer Logout Confirmation Dialog
   ============================================================ */
@keyframes bciFadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes bciSlideUpModal {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bci-logout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    animation: bciFadeInOverlay 0.18s ease forwards;
}

.bci-logout-modal-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(18, 33, 112, 0.22);
    border-top: 4px solid #2847d4;
    width: 100%;
    max-width: 400px;
    padding: 28px 26px 24px 26px;
    text-align: center;
    animation: bciSlideUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box;
}

.bci-logout-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: #eef2ff;
    color: #2847d4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bci-logout-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #122170;
    margin: 0 0 8px 0;
}

.bci-logout-modal-message {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.bci-logout-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bci-logout-btn-cancel {
    flex: 1;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s, transform 0.1s;
}

.bci-logout-btn-cancel:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.bci-logout-btn-ok {
    flex: 1;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: #2847d4;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(40, 71, 212, 0.28);
    transition: background-color 0.18s, transform 0.1s;
}

.bci-logout-btn-ok:hover {
    background: #1e38b5;
    transform: translateY(-1px);
}
