/* style.css - Premium Modern SaaS UI / UX (Dark Slate Sidebar + Glassmorphism + Responsive) */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    
    --sidebar-bg: #0f172a;
    --sidebar-card: #1e293b;
    --sidebar-border: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #f8fafc;
    --sidebar-w: 280px;

    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    --dark: #0f172a;
    --secondary: #64748b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--dark);
    line-height: 1.5;
    font-size: 15px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== UNIFIED APP SIDEBAR LAYOUT ==================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Premium Dark Sidebar */
.app-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 22px 20px 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.brand-icon-box {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* User Profile Badge in Sidebar */
.sidebar-user-card {
    margin: 16px 14px 10px 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation inside Sidebar */
.sidebar-nav {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 14px 12px 6px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 11px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-link-content span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-text-hover);
}

.sidebar-link.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.sidebar-link.active svg {
    stroke: #ffffff;
}

.sidebar-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.sidebar-link.active .sidebar-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Sidebar Quick Action Button */
.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px dashed rgba(99, 102, 241, 0.4);
    color: #818cf8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.sidebar-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==================== MAIN CONTENT AREA ==================== */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 36px 80px 36px;
    min-width: 0;
}

/* Mobile Sticky Header */
.mobile-topbar {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    color: var(--dark);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ==================== UI COMPONENTS ==================== */

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Premium Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
}

.btn-light {
    background: #ffffff;
    color: var(--dark);
    border-color: var(--border);
}

.btn-light:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-outline-success {
    background: #ffffff;
    color: #059669;
    border-color: #10b981;
}

.btn-outline-success:hover {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 9px;
}

.btn-block {
    width: 100%;
}

/* Form Controls */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.day-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

/* Hafta Kunlari Checkbox Pills */
.days-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.day-pill {
    cursor: pointer;
    user-select: none;
}

.day-pill input[type="checkbox"] {
    display: none;
}

.day-pill span {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.day-pill input[type="checkbox"]:checked + span {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ==================== GROUP CARDS GRID ==================== */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.group-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.2s;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #c7d2fe;
}

.group-card:hover::before {
    opacity: 1;
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.group-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
}

.group-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.group-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* ==================== STUDENT ATTENDANCE CARDS ==================== */
/* Har bir o'quvchi kartochkasi */
.student-att-card {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    position: relative;
}

/* To'lov qilgan o'quvchi - YASHIL RANG */
.student-att-card.paid {
    border-color: #22c55e;
    background: #f0fdf4;
    border-left: 6px solid #16a34a;
}

/* To'lov qilmagan qarzdor o'quvchi - QIZIL RANG */
.student-att-card.unpaid {
    border-color: #ef4444;
    background: #fef2f2;
    border-left: 6px solid #dc2626;
}

.student-main-info {
    flex: 1;
    min-width: 220px;
}

.student-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.student-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge-paid {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-unpaid {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ==================== ATTENDANCE TOUCH BUTTONS ==================== */
.att-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-att {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    border: 1.5px solid transparent;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-att-keldi {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.btn-att-keldi:hover {
    background: #d1fae5;
}

.btn-att-keldi.active {
    background: var(--success-gradient);
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.btn-att-keldi.active svg {
    stroke: #ffffff;
}

.btn-att-kelmadi {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.btn-att-kelmadi:hover {
    background: #fee2e2;
}

.btn-att-kelmadi.active {
    background: var(--danger-gradient);
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
}

.btn-att-kelmadi.active svg {
    stroke: #ffffff;
}

.btn-att-sababli {
    color: #b45309;
    border-color: #fde68a;
    background: #fffbeb;
}

.btn-att-sababli:hover {
    background: #fef3c7;
}

.btn-att-sababli.active {
    background: var(--warning-gradient);
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

.btn-att-sababli.active svg {
    stroke: #ffffff;
}

/* Quick Pay Button */
.pay-btn {
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #10b981;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-btn:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #ffffff;
}

th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fbfcfe;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Modals */
.modal,
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal.active,
.modal-backdrop.open {
    display: flex;
}

.modal-dialog,
.modal-content {
    background: #ffffff;
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--secondary);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== LOGIN PAGE ==================== */
.login-body {
    background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 900px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .app-main {
        margin-left: 0;
        padding: 16px 16px 80px 16px;
    }

    .mobile-topbar {
        display: flex;
    }

    .groups-grid {
        grid-template-columns: 1fr;
    }

    .student-att-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .att-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .btn-att {
        justify-content: center;
        padding: 12px 6px;
    }

    .pay-btn {
        width: 100%;
        text-align: center;
        margin-top: 6px;
        justify-content: center;
    }

    .modal-dialog,
    .modal-content {
        max-width: 96%;
        padding: 20px 16px;
        margin: 10px;
    }
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .form-control {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    table th, table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
