:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #059669;
    --success-hover: #047857;
    --warning: #d97706;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --info: #0284c7;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Login Page */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
}

.login-wrapper {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.login-hero {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.login-hero h1 {
    font-size: 28px;
    margin: 20px 0 12px;
    line-height: 1.25;
}

.login-hero p {
    color: #cbd5e1;
    margin: 0 0 24px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: #e2e8f0;
    font-size: 13px;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-weight: 700;
    flex-shrink: 0;
}

.login-form-pane {
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-pane h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.login-subtitle {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.demo-box {
    margin-top: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    color: #475569;
}

/* App Shell */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 256px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    background: var(--sidebar-bg);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    transition: transform 0.25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4px;
    color: #fff;
}

.brand-sub {
    font-size: 11px;
    color: #94a3b8;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    padding: 12px 10px 6px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: #fff;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0.9;
}

.nav-label {
    flex: 1;
    min-width: 0;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-badge-danger {
    background: #dc2626;
    color: #fff;
    animation: textBlinkRed 1.3s ease-in-out infinite;
}

.nav-badge-success {
    background: #16a34a;
    color: #fff;
    animation: textBlinkRed 1.3s ease-in-out infinite;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 14px;
    background: #0f172a;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
    transition: background 0.15s;
}

.btn-logout:hover {
    background: #b91c1c;
    color: #fff;
}

.main-wrap {
    flex: 1;
    margin-left: 256px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text);
}

.page-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 4px;
}

.content-area {
    padding: 24px;
    flex: 1;
}

.app-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 12px;
}

/* Cards & Grids */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kpi-value {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 4px;
    color: var(--text);
}

.kpi-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.kpi-card.accent-blue { border-left: 4px solid var(--primary); }
.kpi-card.accent-green { border-left: 4px solid var(--success); }
.kpi-card.accent-amber { border-left: 4px solid var(--warning); }
.kpi-card.accent-red { border-left: 4px solid var(--danger); }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12.5px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: var(--success-hover); color: #fff; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: var(--danger-hover); color: #fff; }

.btn-outline {
    background: #fff;
    border-color: #cbd5e1;
    color: var(--text);
}
.btn-outline:hover { background: #f8fafc; }

.btn-warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

th, td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--surface-muted);
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8fafc;
}

tfoot td, tfoot th {
    background: #f1f5f9;
    font-weight: 700;
    border-top: 2px solid #cbd5e1;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.font-bold { font-weight: 700; }
.nowrap { white-space: nowrap; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #e0f2fe; color: #075985; }
.badge-gray    { background: #e2e8f0; color: #334155; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 500;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

.alert-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
}

/* Toolbar & Filter Bar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .form-group {
    margin-bottom: 0;
    min-width: 160px;
}

/* Cargo Rows inside Kapal Form */
.muatan-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.modal-box.modal-lg {
    max-width: 680px;
}

.modal-body-scroll {
    max-height: 75vh;
    overflow-y: auto;
}

.summary-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 35;
}

.print-only {
    display: none;
}

/* Upload Thumbnail & Image Modal */
.thumb-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s;
}
.thumb-img:hover {
    transform: scale(1.08);
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.img-modal.open {
    display: flex;
}
.img-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
}
.img-modal-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 8px;
}
.img-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* Popup Form Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 90;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
}
.modal-box {
    background: var(--surface);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalFadeIn 0.15s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 960px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    .login-hero {
        padding: 28px 20px;
    }
    .login-form-pane {
        padding: 28px 22px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-backdrop.open {
        display: block;
    }
    .sidebar-close {
        display: inline-block;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .main-wrap {
        margin-left: 0;
    }
    .muatan-row {
        grid-template-columns: 1fr;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body {
        background: #fff;
        font-size: 11px;
    }
    .sidebar,
    .topbar,
    .app-footer,
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    .main-wrap {
        margin-left: 0 !important;
    }
    .content-area {
        padding: 0 !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
        margin-bottom: 14px !important;
    }
    .card-header {
        break-after: avoid !important;
        page-break-after: avoid !important;
        padding: 10px 14px !important;
    }
    .kpi-card,
    .alert {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    .table-responsive {
        overflow: visible !important;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    thead {
        display: table-header-group !important;
    }
    tfoot {
        display: table-row-group !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    th, td {
        padding: 6px 7px !important;
        font-size: 11px !important;
    }
}

/* Animated Color-Changing Border for Login Logo Box */
.logo-rgb-frame {
    position: relative;
    padding: 4px;
    border-radius: 18px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    isolation: isolate;
}

.logo-rgb-frame.logo-rgb-placeholder {
    max-width: 195px;
}

.logo-rgb-frame::before {
    content: "";
    position: absolute;
    top: -65%;
    right: -65%;
    bottom: -65%;
    left: -65%;
    background: linear-gradient(135deg, #3b82f6, #10b981, #f59e0b, #ef4444, #8b5cf6);
    background: conic-gradient(
        #3b82f6,
        #06b6d4,
        #10b981,
        #f59e0b,
        #ef4444,
        #ec4899,
        #8b5cf6,
        #3b82f6
    );
    -webkit-animation: spinLogoBorder 4s linear infinite;
    animation: spinLogoBorder 4s linear infinite;
}

.logo-rgb-inner {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-rgb-inner.logo-rgb-inner-dark {
    background: #132036;
    flex-direction: column;
    gap: 10px;
    color: #cbd5e1;
    padding: 24px 16px;
}

.login-logo-img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

@media (max-width: 960px) {
    .login-hero {
        padding: 20px 18px !important;
        gap: 14px !important;
    }
    .logo-rgb-frame {
        max-width: 190px;
    }
    .logo-rgb-frame.logo-rgb-placeholder {
        max-width: 150px;
    }
    .logo-rgb-inner {
        padding: 14px 16px;
    }
    .logo-rgb-inner.logo-rgb-inner-dark {
        padding: 16px 12px;
        gap: 6px;
    }
    .login-logo-img {
        max-height: 110px;
    }
}

@-webkit-keyframes spinLogoBorder {
    from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spinLogoBorder {
    from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.login-badge-blink {
    -webkit-animation: badgeBlink 1.2s ease-in-out infinite;
    animation: badgeBlink 1.2s ease-in-out infinite;
}

@-webkit-keyframes badgeBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
    }
    50% {
        opacity: 0.25;
        box-shadow: none;
    }
}

@keyframes badgeBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
    }
    50% {
        opacity: 0.25;
        box-shadow: none;
    }
}

.blink-red-text {
    color: #dc2626 !important;
    font-weight: 700;
    -webkit-animation: textBlinkRed 1.1s ease-in-out infinite;
    animation: textBlinkRed 1.1s ease-in-out infinite;
}

@-webkit-keyframes textBlinkRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes textBlinkRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-link:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

.page-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}
