/* ==========================================================================
   Meeting Document System - Central Stylesheet
   Color Theme: Primary #0f2b8c
   Responsive Design: Tablet & Phone Optimized (Maximized Usable Space)
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
    --primary: #0f2b8c;
    --primary-hover: #0a1e64;
    --primary-active: #071547;
    --primary-light: #e8eefa;
    --primary-subtle: #edf2fa;
    --primary-border: #ccd8f5;
    --sidebar-bg: #0f2b8c;
    --accent: #0f2b8c;

    --main-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;

    --success-bg: #def7ec;
    --success-text: #03543f;
    --danger-bg: #fde8e8;
    --danger-text: #9b1c1c;
    --danger-border: #f8b4b4;

    --shadow-card: 0 4px 16px rgba(15, 43, 140, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 25px rgba(15, 43, 140, 0.16);
    --shadow-modal: 0 25px 60px rgba(15, 43, 140, 0.3), 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- Global Reset & Base Typography --- */
* {
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* --- Desktop Layout (Big Display) --- */
body {
    margin: 0;
    padding: 20px;
    background-color: #1e212b;
    background-image: radial-gradient(#2d3243 1px, transparent 1px);
    background-size: 20px 20px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-container {
    display: flex;
    width: 100%;
    max-width: 1280px;
    height: 94vh;
    background: var(--sidebar-bg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(15, 43, 140, 0.35), 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 0;
    background: var(--sidebar-bg);
    flex-shrink: 0;
    z-index: 20;
}

.logo {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    user-select: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.logo:hover .logo-icon {
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.05);
}

.logo-text {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.18;
    color: #ffffff;
    text-align: center;
    word-break: break-word;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.nav-item {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* --- Main Content Container --- */
.main-content {
    flex: 1;
    background: var(--main-bg);
    border-radius: 20px;
    margin: 10px 10px 10px 0;
    padding: 30px 36px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ==========================================================================
   TABLET & PHONE RESPONSIVE OPTIMIZATION
   - Eliminate unnecessary body padding and container margins
   - Maximize screen real estate on tablets (primary use case)
   ========================================================================== */
@media (max-width: 1199px) {
    body {
        padding: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: var(--sidebar-bg) !important;
        overflow: hidden !important;
    }

    .app-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .sidebar {
        width: 72px !important;
        padding: 18px 0 !important;
    }

    .logo {
        margin-bottom: 22px !important;
        gap: 4px !important;
    }

    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
        border-radius: 10px !important;
    }

    .logo-text {
        font-size: 0.55rem !important;
        line-height: 1.1 !important;
        letter-spacing: 0.2px !important;
    }

    .nav-items {
        gap: 12px !important;
    }

    .nav-item {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.15rem !important;
        border-radius: 12px !important;
    }

    /* Remove the space around main content div */
    .main-content {
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 20px 24px !important;
        height: 100% !important;
        box-shadow: none !important;
    }

    /* Optimize reader specifically for tab */
    .main-content.reader-content {
        padding: 10px 14px !important;
    }

    /* Optimize modal for tab */
    .modal-content {
        width: 96% !important;
        height: 94vh !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 58px !important;
        padding: 14px 0 !important;
    }

    .logo-text {
        display: none !important; /* Icon-only on small phone display */
    }

    .logo {
        margin-bottom: 16px !important;
    }

    .logo-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }

    .nav-item {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .main-content {
        padding: 14px 16px !important;
    }

    .main-content.reader-content {
        padding: 8px 10px !important;
    }

    .header-bar h1, .header h1 {
        font-size: 1.25rem !important;
    }

    .modal-content {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }
}

/* --- Cards, Typography & Headings --- */
.card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 28px;
    margin-bottom: 20px;
}

/* Header row inside a card: title on the left, action button on the right */
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.page-header-row .card-title {
    margin: 0;
}

.card-body {
    padding: 0;
}

h1 {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

h4, h5, .card-title {
    color: var(--text-dark);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 18px 0;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 43, 140, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 43, 140, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: var(--text-dark);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.btn-danger:hover {
    background: #fbd5d5;
}

.btn-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #bcf0da;
}

.btn-round {
    padding: 10px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Forms & Inputs --- */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 140, 0.12);
}

.form-control.is-invalid {
    border-color: var(--danger-border);
}

.invalid-feedback {
    color: var(--danger-text);
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

/* --- Tables --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th {
    text-align: left;
    padding: 14px 18px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary-subtle);
}

.table th:first-child { border-radius: 10px 0 0 10px; }
.table th:last-child { border-radius: 0 10px 10px 0; }

.table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

/* --- Alerts & Notifications --- */
.alert-box {
    margin-top: 15px;
}

.alert {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #bcf0da;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* --- User Dashboard / Meetings List --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.tabs {
    display: flex;
    gap: 25px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 22px;
}

.tab {
    padding: 10px 0;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.meetings-table-container {
    flex: 1;
    overflow-y: auto;
}

.meetings-table {
    width: 100%;
    border-collapse: collapse;
}

.meetings-table th {
    text-align: left;
    padding: 14px 18px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary-subtle);
}

.meetings-table th:first-child { border-radius: 12px 0 0 12px; }
.meetings-table th:last-child { border-radius: 0 12px 12px 0; }

.meetings-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
    font-size: 1rem;
}

.meeting-row {
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.meeting-row:hover {
    background: var(--primary-subtle);
}

.meeting-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.meeting-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-btn {
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.meeting-row:hover .action-btn {
    background: var(--primary);
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

/* --- Floating Refresh Button --- */
.refresh-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(15, 43, 140, 0.35);
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 100;
}

.refresh-btn:hover {
    transform: rotate(90deg) scale(1.06);
    background: var(--primary-hover);
    box-shadow: 0 10px 24px rgba(15, 43, 140, 0.45);
}

/* --- Document Files Page --- */
.header-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.back-btn {
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 43, 140, 0.08);
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 43, 140, 0.2);
}

.header-bar h1 {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-details h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-sep {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

.drive-ext-link {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.drive-ext-link:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.section-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.section-header {
    padding: 14px 22px;
    background: var(--primary-subtle);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-grid-container {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    overflow-y: scroll;
}

.file-card {
    width: 170px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.file-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.file-thumb-box {
    width: 100%;
    height: 150px;
    background: var(--primary-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.file-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumb-box i {
    font-size: 3.2rem;
    color: #e11d48;
}

.file-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.folder-card {
    background: #ffffff;
    border: 1px solid #fed7aa;
}

.folder-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.18);
}

.folder-thumb-box {
    background: #fffbeb !important;
    border-color: #fef3c7 !important;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.badge-folder {
    background: #fef3c7;
    color: #b45309;
}

.badge-pdf {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-doc {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-sheet {
    background: #dcfce7;
    color: #15803d;
}

.badge-ppt {
    background: #ffedd5;
    color: #c2410c;
}

.badge-image {
    background: #f3e8ff;
    color: #7e22ce;
}

.badge-other {
    background: #f1f5f9;
    color: #475569;
}

/* --- Document Modal Popup --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 15, 45, 0.72);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.modal-content {
    width: 92%;
    max-width: 1200px;
    height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 16px 24px;
    background: var(--primary-subtle);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.modal-action-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.modal-action-btn:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.modal-close-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.modal-close-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.modal-body {
    flex: 1;
    position: relative;
    background: #ffffff;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- In-System File Reader --- */
.badge-reader {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.reader-wrapper {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    min-height: 0;
}

.reader-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* --- Login Page --- */
.login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(15, 43, 140, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    padding: 45px 40px;
    text-align: center;
    border: 3px solid var(--primary);
    z-index: 100;
    position: relative;
}

.login-card .logo-container {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 1.85rem;
    box-shadow: 0 8px 20px rgba(15, 43, 140, 0.3);
}

.login-card .logo-container .logo {
    width: 90%;
    border-radius: 16px;
    margin-bottom: 0;
}

.login-card p.subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 0 28px;
}

.login-card .form-group {
    text-align: left;
    margin-bottom: 22px;
}

.login-card .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-card .input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.login-card input.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    background: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.login-card input.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 140, 0.12);
}

.login-card .btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(15, 43, 140, 0.25);
    margin-top: 10px;
}

.login-card .btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 43, 140, 0.35);
}

.login-footer {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- Common Utility Classes --- */
.float-end { float: right !important; }
.d-inline-block { display: inline-block !important; }
.text-center { text-align: center !important; }
.text-nowrap { white-space: nowrap !important; }
.align-middle { vertical-align: middle !important; }
.w-100 { width: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.position-relative { position: relative !important; }
.fw-semibold { font-weight: 600 !important; }
.fs-3 { font-size: 0.9rem !important; }
.fs-4 { font-size: 1.15rem !important; }
.fs-5 { font-size: 1.3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 24px !important; }
.pb-0 { padding-bottom: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }

