/* ============================================
   SITE YONETIM - Mobile-First WebApp CSS
   ============================================ */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6366f1;
    --dark: #1e1e2e;
    --dark2: #2a2a3e;
    --dark3: #353550;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card2: #16213e;
    --border: #2d2d44;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --topbar-h: 56px;
    --bottomnav-h: 64px;
    --sidebar-w: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ============ LOGIN ============ */
.sy-screen { display: none; }
.sy-screen.active { display: flex; }

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}
.login-logo i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}
.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.login-form {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--warning); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--dark3); color: var(--text); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--dark3); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-icon { background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; font-size: 18px; position: relative; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ TOPBAR ============ */
.sy-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
    gap: 12px;
    backdrop-filter: blur(10px);
}
.sy-topbar h2 {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
}
.menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-name {
    font-size: 13px;
    color: var(--text-muted);
    display: none;
}
.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============ SIDEBAR ============ */
.sy-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 200;
    transition: var(--transition);
    overflow-y: auto;
    padding-bottom: 20px;
}
.sy-sidebar.open { left: 0; }
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
    display: none;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 16px;
}
.sidebar-header i { color: var(--primary); font-size: 22px; }
.sidebar-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
}
.sidebar-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-muted);
}
.sidebar-menu li:hover, .sidebar-menu li.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
}
.sidebar-menu li.active {
    border-right: 3px solid var(--primary);
}
.sidebar-menu li i { width: 20px; text-align: center; font-size: 16px; }
.menu-divider {
    height: 1px !important;
    background: var(--border) !important;
    margin: 8px 20px !important;
    padding: 0 !important;
    cursor: default !important;
}

/* ============ CONTENT ============ */
.sy-content {
    margin-top: var(--topbar-h);
    padding: 16px;
    padding-bottom: calc(var(--bottomnav-h) + 16px);
    min-height: calc(100vh - var(--topbar-h));
    max-width: 100vw;
    overflow-x: hidden;
}
.sy-page { display: none; }
.sy-page.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ BOTTOM NAV ============ */
.sy-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottomnav-h);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.sy-bottomnav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-family: inherit;
}
.sy-bottomnav button i { font-size: 20px; }
.sy-bottomnav button.active { color: var(--primary); }
.sy-bottomnav button:hover { color: var(--primary-light); }

/* ============ CARDS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.stat-card.blue::before { background: var(--secondary); }
.stat-card.green::before { background: var(--success); }
.stat-card.red::before { background: var(--danger); }
.stat-card.yellow::before { background: var(--warning); }
.stat-card.purple::before { background: var(--primary); }

.stat-card .stat-icon {
    font-size: 14px;
    margin-bottom: 8px;
}
.stat-card.blue .stat-icon { color: var(--secondary); }
.stat-card.green .stat-icon { color: var(--success); }
.stat-card.red .stat-icon { color: var(--danger); }
.stat-card.yellow .stat-icon { color: var(--warning); }
.stat-card.purple .stat-icon { color: var(--primary); }

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: visible;
}
.card-header:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-body:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 15px;
    background: var(--bg-card);
}
.card-body {
    padding: 16px;
    background: var(--bg-card);
}

/* NET DURUM CARD */
.net-card {
    background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.net-card .net-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.net-card .net-value { font-size: 28px; font-weight: 700; margin: 4px 0; }
.net-card .net-value.positive { color: var(--success); }
.net-card .net-value.negative { color: var(--danger); }
.net-progress {
    height: 8px;
    background: var(--dark3);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}
.net-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ============ TABLE ============ */
.sy-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
    display: block;
}
/* Auto-scroll for tables inside cards on mobile */
.card-body {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    position: relative;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.sy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
    display: table;
}
.sy-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.sy-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.sy-table tr:last-child td { border-bottom: none; }
.sy-table tr:hover { background: rgba(79, 70, 229, 0.05); }

/* Mobile-friendly table sizes */
@media (max-width: 768px) {
    .card {
        overflow: visible;
        max-width: 100vw;
    }
    .card-body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: calc(100vw - 32px);
    }
    .sy-table {
        min-width: 500px;
    }
}
@media (max-width: 480px) {
    .sy-table { min-width: 420px; }
    .sy-table th, .sy-table td { padding: 8px 6px; font-size: 12px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
    .stat-card .stat-value { font-size: 16px; }
    .stat-card .stat-label { font-size: 10px; }
    .summary-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .filter-bar { gap: 6px; }
    .filter-bar .form-control { min-width: 80px; padding: 6px 10px; font-size: 12px; }
    .card-body {
        max-width: calc(100vw - 32px);
    }
}

/* Kalan borc badge */
.kalan-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.kalan-badge.borcu-var { background:rgba(239,68,68,0.15); color:var(--danger); }
.kalan-badge.odendi { background:rgba(16,185,129,0.15); color:var(--success); }

/* ============ LIST CARDS (Mobile alternative to table) ============ */
.list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.list-card:hover { border-color: var(--primary); }
.list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.list-card-title { font-weight: 600; font-size: 15px; }
.list-card-body { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }
.list-card-item { display: flex; align-items: center; gap: 4px; }
.list-card-item i { font-size: 12px; }
.list-card-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ============ STATUS BADGES ============ */
.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-odendi { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-bekliyor { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-gecikti { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-kismi { background: rgba(99, 102, 241, 0.15); color: var(--info); }
.status-dolu { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-bos { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

/* ============ MODAL ============ */
.sy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.sy-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}
.modal-header h3 { font-size: 17px; font-weight: 600; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}
.modal-body { padding: 20px; }
.modal-body .form-group:last-child { margin-bottom: 0; }
.modal-body .btn { margin-top: 16px; }

/* ============ ALERTS ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin: 12px 0;
}
.alert-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.alert-info { background: rgba(99, 102, 241, 0.15); color: var(--info); border: 1px solid rgba(99, 102, 241, 0.3); }

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    top: calc(var(--topbar-h) + 12px);
    right: 12px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    min-width: 250px;
    max-width: 340px;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ CHART ============ */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

/* ============ FILTERS ============ */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar .form-control {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    font-size: 13px;
}
.filter-bar .btn { padding: 8px 16px; }

/* ============ SUMMARY ROW ============ */
.summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.summary-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.summary-item .si-icon { font-size: 22px; margin-bottom: 4px; }
.summary-item .si-value { font-size: 18px; font-weight: 700; }
.summary-item .si-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 14px; }

/* ============ LOADING ============ */
.loading {
    text-align: center;
    padding: 40px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ GECIKEN LIST ============ */
.geciken-list { margin-top: 8px; }
.geciken-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.geciken-item:last-child { border-bottom: none; }
.geciken-info { display: flex; flex-direction: column; gap: 2px; }
.geciken-daire { font-weight: 600; }
.geciken-sakin { color: var(--text-muted); font-size: 12px; }
.geciken-tutar { font-weight: 700; color: var(--danger); }

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
    .sy-sidebar {
        left: 0;
        top: var(--topbar-h);
        height: calc(100vh - var(--topbar-h));
    }
    .sidebar-close { display: none; }
    .sidebar-overlay { display: none !important; }
    .menu-toggle { display: none; }
    .sy-content {
        margin-left: var(--sidebar-w);
        padding: 24px;
        padding-bottom: 24px;
    }
    .sy-bottomnav { display: none; }
    .user-name { display: block; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .summary-row { grid-template-columns: repeat(4, 1fr); }
    .sy-modal {
        border-radius: var(--radius);
        max-height: 80vh;
    }
    .sy-modal-overlay { align-items: center; }

    .sy-topbar { left: var(--sidebar-w); }
}

@media (min-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(5, 1fr); }
    .sy-content { padding: 28px 32px; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dark3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============ PWA ============ */
@media (display-mode: standalone) {
    .sy-topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
    .sy-content { margin-top: calc(var(--topbar-h) + env(safe-area-inset-top)); }
}

/* ============ SECTION TITLE ============ */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i { color: var(--primary); }

/* ============ INLINE FORM ============ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ============ TAB ============ */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    overflow-x: auto;
}
.tab-item {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
}
.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ============ PAGE TOOLBAR ============ */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.page-toolbar h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.page-toolbar .btn { flex-shrink: 0; }

/* ============ SEARCH BAR ============ */
.search-bar {
    position: relative;
    margin-bottom: 12px;
}
.search-bar input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}
.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.search-bar::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.pagination-buttons {
    display: flex;
    gap: 4px;
}
.pagination-buttons button {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    padding: 0 8px;
}
.pagination-buttons button:hover {
    background: var(--dark3);
    border-color: var(--primary);
}
.pagination-buttons button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.pagination-buttons button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============ BULK BAR ============ */
.bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    animation: fadeIn 0.2s ease;
}
.bulk-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    flex: 1;
}

/* ============ TABLE CHECKBOX ============ */
.th-check, .td-check {
    width: 40px;
    text-align: center;
}
.th-check input, .td-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ============ TABLE ACTIONS ============ */
.td-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.td-actions .btn-xs {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============ PRINT STYLES ============ */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .sy-topbar, .sy-bottomnav, .sy-sidebar, .sidebar-overlay,
    .toast-container, .page-toolbar .btn, .search-bar,
    .pagination, .bulk-bar, .td-actions, .th-check, .td-check,
    .btn-group, .filter-bar .btn { display: none !important; }
    .sy-content { margin: 0 !important; padding: 16px !important; }
    .sy-page { display: block !important; }
    .card { border: 1px solid #ddd !important; box-shadow: none !important; break-inside: avoid; }
    .sy-table th { background: #f5f5f5 !important; color: #333 !important; }
    .sy-table td { color: #333 !important; border-color: #ddd !important; }
    .stat-card { border: 1px solid #ddd !important; background: #fff !important; }
    .stat-card .stat-value, .stat-card .stat-label { color: #333 !important; }
    .status { border: 1px solid #999 !important; }
    .chart-container { page-break-inside: avoid; }
}
