/**
 * Sarang import-export - Custom Stylesheet
 * Primary: #004aad | Accent/Warning: #ff7c00 | Secondary: #0F172A
 */

:root {
    --primary: #004aad; --primary-light: #2672e6; --primary-dark: #003a88;
    --primary-subtle: rgba(0, 74, 173, 0.1);
    --secondary: #0F172A; --secondary-light: #1E293B;
    --success: #22C55E; --success-subtle: rgba(34, 197, 94, 0.1);
    --warning: #ff7c00; --warning-subtle: rgba(255, 124, 0, 0.1);
    --danger: #EF4444; --danger-subtle: rgba(239, 68, 68, 0.1);
    --info: #06B6D4; --info-subtle: rgba(6, 182, 212, 0.1);
    --teal: #14B8A6; --teal-subtle: rgba(20, 184, 166, 0.1);
    --bg-body: #F1F5F9; --bg-card: #FFFFFF; --bg-sidebar: #0F172A; --bg-header: #FFFFFF;
    --text-primary: #0F172A; --text-secondary: #475569; --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --border-radius: 12px; --border-radius-sm: 8px; --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --sidebar-width: 260px; --sidebar-collapsed: 0px; --header-height: 64px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-bs-theme="dark"] {
    --bg-body: #0F172A; --bg-card: #1E293B; --bg-sidebar: #0B1120; --bg-header: #1E293B;
    --text-primary: #F1F5F9; --text-secondary: #CBD5E1; --text-muted: #64748B;
    --border-color: #334155; --shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] body { background-color: var(--bg-body); color: var(--text-primary); }
[data-bs-theme="dark"] .card, [data-bs-theme="dark"] .dashboard-card { background-color: var(--bg-card); border-color: var(--border-color); }
[data-bs-theme="dark"] .admin-header { background-color: var(--bg-header); border-color: var(--border-color); }
[data-bs-theme="dark"] .table { --bs-table-bg: var(--bg-card); --bs-table-color: var(--text-primary); --bs-table-border-color: var(--border-color); --bs-table-hover-bg: rgba(255,255,255,0.05); }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: #1E293B; border-color: var(--border-color); color: var(--text-primary); }
[data-bs-theme="dark"] .input-group-text { background-color: #1E293B; border-color: var(--border-color); color: var(--text-secondary); }
[data-bs-theme="dark"] .dropdown-menu { background-color: var(--bg-card); border-color: var(--border-color); }
[data-bs-theme="dark"] .dropdown-item { color: var(--text-primary); }
[data-bs-theme="dark"] .dropdown-item:hover { background-color: rgba(255,255,255,0.05); }
[data-bs-theme="dark"] .page-title, [data-bs-theme="dark"] .detail-item p { color: var(--text-primary); }
[data-bs-theme="dark"] .detail-item label { color: var(--text-muted); }

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--bg-body); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; transition: var(--transition); }

/* Public Navbar */
.public-navbar { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.brand-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* Hero */
.hero-section { background: linear-gradient(135deg, var(--secondary) 0%, #1a365d 50%, var(--primary-dark) 100%); position: relative; overflow: hidden; min-height: 60vh; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.text-gradient { background: linear-gradient(135deg, #60A5FA, #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item { text-align: center; }
.stat-number { font-size: 1.75rem; font-weight: 800; color: #60A5FA; }
.stat-label { font-size: 0.75rem; opacity: 0.8; color: #CBD5E1; }
.hero-stats { flex-wrap: wrap; }

/* Floating Cards */
.hero-illustration { position: relative; height: 400px; }
.floating-card { position: absolute; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 20px 24px; color: white; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 0.9rem; animation: float 6s ease-in-out infinite; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.floating-card i { font-size: 1.5rem; }
.floating-card.card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.floating-card.card-2 { top: 45%; right: 5%; animation-delay: 2s; }
.floating-card.card-3 { bottom: 15%; left: 25%; animation-delay: 4s; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* Section */
.section-badge { display: inline-block; background: var(--primary-subtle); color: var(--primary); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; }

/* Form Card */
.form-card { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.form-section { padding: 60px 0; }
.form-section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); }
.form-section-icon { width: 45px; height: 45px; background: var(--primary-subtle); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

/* Input Group */
.input-group-custom .input-group-text { background: transparent; border-right: none; color: var(--text-muted); border-color: var(--border-color); }
.input-group-custom .form-control, .input-group-custom .form-control:focus { border-left: none; }
.input-group-custom .form-control:focus { box-shadow: none; border-color: var(--primary); }
.input-group-custom:focus-within .input-group-text { border-color: var(--primary); color: var(--primary); }
.form-control, .form-select { border-radius: var(--border-radius-sm); border-color: var(--border-color); padding: 10px 16px; font-size: 0.9rem; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }
.form-label { font-weight: 500; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 6px; }

/* BSI Radio */
.bsi-radio-group { display: flex; gap: 12px; }
.form-check-custom { padding: 0; }
.form-check-custom .form-check-input { display: none; }
.bsi-label { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 50px; border: 2px solid var(--border-color); cursor: pointer; font-weight: 500; transition: var(--transition); font-size: 0.9rem; }
.bsi-label:hover { border-color: var(--primary); }
.form-check-custom .form-check-input:checked + .bsi-yes { background: var(--success-subtle); border-color: var(--success); color: var(--success); }
.form-check-custom .form-check-input:checked + .bsi-no { background: var(--danger-subtle); border-color: var(--danger); color: var(--danger); }

/* Upload Zone */
.upload-zone { border: 2px dashed var(--border-color); border-radius: var(--border-radius); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg-body); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-subtle); }
.upload-icon { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }
.file-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-subtle); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Submit Button */
.btn-submit { padding: 14px 48px; font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; transition: var(--transition); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.35); }

/* Footer */
.public-footer { background: var(--secondary); color: var(--text-muted); padding: 20px 0; margin-top: 60px; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 1000; transition: var(--transition); animation: pulse-whatsapp 2s infinite; }
.whatsapp-float:hover { color: white; transform: scale(1.1); }
@keyframes pulse-whatsapp { 0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); } }

/* Login Page */
.login-page { min-height: 100vh; background: var(--bg-body); }
.login-container { display: flex; min-height: 100vh; }
.login-branding { flex: 1; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%); display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.login-branding::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.login-branding::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.branding-content { position: relative; z-index: 1; color: white; max-width: 450px; }
.branding-icon { width: 70px; height: 70px; background: rgba(255,255,255,0.15); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.branding-features { display: flex; flex-direction: column; gap: 15px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; opacity: 0.9; }
.feature-item i { font-size: 1.1rem; color: #22C55E; }
.login-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form-wrapper { width: 100%; max-width: 420px; }
.login-mobile-logo { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; color: white; }
.login-header { margin-bottom: 30px; }
.login-header h2 { font-size: 1.75rem; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(37,99,235,0.35); }
.toggle-password { cursor: pointer; border-left: none !important; }

/* Admin Layout */
.admin-header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); height: var(--header-height); z-index: 1030; box-shadow: var(--shadow-sm); }
.sidebar-toggle { color: var(--text-secondary); font-size: 1.2rem; border: none; }
.sidebar-toggle:hover { color: var(--primary); }
.header-brand-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; }
.header-icon-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); text-decoration: none; padding: 0; }
.header-icon-btn:hover { background: var(--bg-body); color: var(--primary); }
.notification-badge { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: var(--danger); color: white; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.notification-dropdown { width: 320px; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); padding: 0; }
.notification-item { display: flex; align-items: start; gap: 12px; padding: 12px 16px; }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-profile-btn { display: flex; align-items: center; color: var(--text-primary); text-decoration: none; border: none; padding: 4px 8px; border-radius: 10px; transition: var(--transition); }
.header-profile-btn:hover { background: var(--bg-body); color: var(--text-primary); }
.header-profile-btn::after { display: none; }
.profile-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; }
.profile-avatar-lg { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; }
.profile-dropdown { width: 240px; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }

/* Sidebar */
.admin-wrapper { display: flex; min-height: calc(100vh - var(--header-height)); }
.admin-sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); position: fixed; top: var(--header-height); left: 0; bottom: 0; z-index: 1020; transition: var(--transition); overflow-y: auto; overflow-x: hidden; }
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.sidebar-content { display: flex; flex-direction: column; height: 100%; }
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; }
.sidebar-brand-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; flex-shrink: 0; }
.sidebar-brand-text { color: white; font-weight: 700; font-size: 1.15rem; }
.sidebar-nav { flex: 1; padding: 15px 0; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu-header { padding: 15px 20px 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.sidebar-menu-link { display: flex; align-items: center; gap: 14px; padding: 11px 20px; color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 500; transition: var(--transition); text-decoration: none; margin: 2px 12px; border-radius: 10px; }
.sidebar-menu-link:hover { color: white; background: rgba(255,255,255,0.08); }
.sidebar-menu-item.active .sidebar-menu-link { color: white; background: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.sidebar-menu-icon { width: 22px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-footer { padding: 15px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer-content { text-align: center; }
.sidebar-collapsed .admin-sidebar { width: var(--sidebar-collapsed); transform: translateX(-100%); }
.sidebar-collapsed .admin-content { margin-left: 0; }

/* Content */
.admin-content { flex: 1; margin-left: var(--sidebar-width); transition: var(--transition); min-height: calc(100vh - var(--header-height)); }
.content-wrapper { max-width: 1400px; margin: 0 auto; }
.admin-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 15px 0; margin-left: var(--sidebar-width); transition: var(--transition); }
.sidebar-collapsed .admin-footer { margin-left: 0; }

/* Page Header */
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* Dashboard Cards */
.dashboard-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); }
.dashboard-card .card-header { background: transparent; border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.dashboard-card .card-title { font-size: 1rem; font-weight: 600; }
.dashboard-card .card-body { padding: 20px; }

/* Stat Cards */
.stat-card { background: var(--bg-card); border-radius: var(--border-radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); transition: var(--transition); overflow: hidden; position: relative; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.stat-card-primary::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card-success::before { background: linear-gradient(90deg, var(--success), #34D399); }
.stat-card-warning::before { background: linear-gradient(90deg, var(--warning), #FBBF24); }
.stat-card-danger::before { background: linear-gradient(90deg, var(--danger), #F87171); }
.stat-card-info::before { background: linear-gradient(90deg, var(--info), #22D3EE); }
.stat-card-teal::before { background: linear-gradient(90deg, var(--teal), #2DD4BF); }
.stat-card-body { padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.stat-card-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; line-height: 1.2; }
.stat-card-change { font-size: 0.8rem; font-weight: 500; }
.stat-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-card-primary .stat-card-icon { background: var(--primary-subtle); color: var(--primary); }
.stat-card-success .stat-card-icon { background: var(--success-subtle); color: var(--success); }
.stat-card-warning .stat-card-icon { background: var(--warning-subtle); color: var(--warning); }
.stat-card-danger .stat-card-icon { background: var(--danger-subtle); color: var(--danger); }
.stat-card-info .stat-card-icon { background: var(--info-subtle); color: var(--info); }
.stat-card-teal .stat-card-icon { background: var(--teal-subtle); color: var(--teal); }

/* Tables */
.table { font-size: 0.9rem; }
.table thead th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom-width: 1px; padding: 12px 16px; white-space: nowrap; }
.table tbody td { padding: 12px 16px; vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(37,99,235,0.03); }
.avatar-sm { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }

/* DataTable Wrapper & Layout */
.dataTables_wrapper {
    padding: 10px 0;
}
.dataTables_wrapper .row {
    align-items: center;
    margin-bottom: 15px;
}
.dataTables_wrapper .dataTables_length label {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 6px 32px 6px 12px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
}
.dataTables_wrapper .dataTables_filter label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 0.875rem;
    width: 250px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
    outline: none;
}

/* DataTable Table Headers & Cells */
table.dataTable {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    border-collapse: collapse !important;
}
table.dataTable thead th {
    position: relative;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 24px 14px 16px !important;
    border-bottom: 2px solid var(--border-color) !important;
    white-space: nowrap;
    vertical-align: middle;
}
table.dataTable tbody td {
    padding: 12px 16px !important;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* Sorting Icons custom styling to prevent overlapping text */
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    position: absolute;
    right: 8px;
    opacity: 0.5;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
}
table.dataTable thead .sorting::after { content: "\f0dc"; }
table.dataTable thead .sorting_asc::after { content: "\f0de"; opacity: 0.9; color: var(--primary); }
table.dataTable thead .sorting_desc::after { content: "\f0dd"; opacity: 0.9; color: var(--primary); }
table.dataTable thead .sorting::before,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::before {
    display: none !important; /* Hide default double arrows */
}

/* Pagination Custom Styles */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0 !important;
    margin-left: 2px;
    border: none !important;
    background: transparent !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: transparent !important;
    border: none !important;
}
.dataTables_wrapper .pagination {
    margin-bottom: 0;
    justify-content: flex-end;
    gap: 4px;
}
.dataTables_wrapper .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}
.dataTables_wrapper .page-item:hover .page-link {
    background-color: var(--bg-body);
    color: var(--primary);
    border-color: var(--border-color);
}
.dataTables_wrapper .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white) !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.dataTables_wrapper .page-item.disabled .page-link {
    background-color: var(--bg-card);
    opacity: 0.6;
    color: var(--text-muted);
}

/* Export Buttons Styling */
.dt-export-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.dt-export-buttons .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
}
.dt-export-buttons .btn-success {
    background-color: var(--success);
    color: white;
}
.dt-export-buttons .btn-success:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}
.dt-export-buttons .btn-info {
    background-color: var(--info);
    color: white;
}
.dt-export-buttons .btn-info:hover {
    background-color: #0891b2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}
.dt-export-buttons .btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}
.dt-export-buttons .btn-secondary:hover {
    background-color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

/* Actions Column Alignment and Button Wrap Fix */
.btn-group .btn {
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
td:last-child {
    white-space: nowrap;
}

/* Detail View */
.detail-item { margin-bottom: 5px; }
.detail-item label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.detail-item p { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0; }

/* Export */
.export-option-card { text-align: center; padding: 30px 20px; border: 2px solid var(--border-color); border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); }
.export-option-card:hover { border-color: var(--primary); background: var(--primary-subtle); transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Activity Log */
.activity-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem; }
.activity-item:hover { background: rgba(0,0,0,0.02); }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn { font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.btn-sm { font-size: 0.8rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .admin-footer { margin-left: 0; }
    .sidebar-open::after { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1015; }
    .hero-section { min-height: auto; padding: 40px 0; }
    .form-card { padding: 24px; }
    .login-container { flex-direction: column; }
    .login-branding { padding: 40px; min-height: auto; }
}
@media (max-width: 767.98px) {
    .page-title { font-size: 1.25rem; }
    .stat-card-value { font-size: 1.5rem; }
    .stat-card-body { padding: 16px; }
    .form-card { padding: 20px; }
    .hero-stats { gap: 20px !important; }
    .stat-number { font-size: 1.25rem; }
}
@media (max-width: 575.98px) {
    .content-wrapper { padding: 16px !important; }
    .btn-group .btn { padding: 4px 8px; }
    .notification-dropdown { width: 280px; }
}

/* Print */
@media print {
    .admin-sidebar, .admin-header, .admin-footer, .sidebar-toggle, .btn, .whatsapp-float, .dt-export-buttons, .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info { display: none !important; }
    .admin-content { margin-left: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: white !important; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stat-card, .dashboard-card { animation: fadeInUp 0.5s ease-out; }
.stat-card:nth-child(2) { animation-delay: 0.1s; } .stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; } .stat-card:nth-child(5) { animation-delay: 0.4s; }
.stat-card:nth-child(6) { animation-delay: 0.5s; }
.swal-rounded { border-radius: var(--border-radius-lg) !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Follow-up Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 9px;
    width: 2px;
    background-color: var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker {
    position: absolute;
    top: 5px;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-content {
    background: var(--bg-body);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}
.timeline-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.timeline-notes {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-line;
}
.timeline-next-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--warning);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.timeline-admin {
    font-size: 0.8rem;
    color: var(--text-muted);
}

