/* Card Styles */
.login-card-container {
    max-width: 450px !important;
    width: 100% !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    padding: 32px !important;
}

.login-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    box-sizing: border-box !important;
}

.login-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.login-input.error {
    border-color: #ef4444 !important;
}

.login-btn {
    width: 100% !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background-color 0.2s !important;
}

.login-btn:hover {
    background-color: #1d4ed8 !important;
}

.error-msg {
    color: #ef4444 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
    display: block;
}

/* Scoped Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 85vh;
    background-color: #f3f4f6;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}

/* Sidebar Navigation */
.dashboard-sidebar {
    width: 260px;
    background-color: #0d2366;
    /* Matching deep blue branding */
    color: #ffffff;
    flex-shrink: 0;
    padding: 24px 16px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #93c5fd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Main Dashboard Area */
.dashboard-main {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        display: block;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 20px;
        margin-top: 75px;
    }

    .dashboard-main .form-card,
    .dashboard-main .index-card,
    .dashboard-main .content-card {
        margin: 0;
        border-radius: 16px;
    }
}

.admin-mobile-menu-section {
    margin-top: 20px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(
        180deg,
        rgba(241, 245, 249, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 18px;
}

.admin-mobile-menu-title {
    display: block;
    margin-bottom: 16px;
    color: #334155;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
}

.admin-mobile-menu-section .sidebar-menu-item {
    display: block;
    background-color: #ffffff;
    color: #0f172a;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.admin-mobile-menu-section .sidebar-menu-item:hover,
.admin-mobile-menu-section .sidebar-menu-item.active {
    background-color: #eef2ff;
    border-color: #c7d2fe;
    color: #0f172a;
    transform: translateX(2px);
}

.admin-mobile-menu-section .logout-link {
    color: #b91c1c;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.admin-mobile-menu-section .logout-link:hover {
    background-color: #fee2e2;
}

/* Metric Summary Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Card Data Tables */
.content-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 32px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dash-table th {
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.dash-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #1f2937;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}
