/* ============================================
   საწყობის მართვის სისტემა – Bootstrap Override
   ============================================ */

/* ---------- CSS ცვლადები ---------- */
:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #d1fae5;
    --primary-glow: rgba(5, 150, 105, 0.18);
    --accent: #0d9488;
    --accent-light: #ccfbf1;
    --bg-page: #f8faf9;
    --card-bg: #ffffff;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --border-card: rgba(5, 150, 105, 0.08);
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --shadow-soft: 0 2px 12px -3px rgba(0,0,0,0.06), 0 4px 8px -4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px -4px rgba(0,0,0,0.08);
    --shadow-glow: 0 4px 16px var(--primary-glow);
    --font-display: 'Noto Sans Georgian', 'Inter', system-ui, sans-serif;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Bootstrap overrides ---------- */
body {
    font-family: var(--font-display) !important;
    background: var(--bg-page) !important;
    -webkit-font-smoothing: antialiased;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    border: none !important;
    box-shadow: var(--shadow-glow) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-lg) !important;
    padding: 10px 20px !important;
    transition: all var(--transition-base) !important;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow) !important;
    opacity: 0.95;
}
.btn-primary:active { transform: scale(0.97); }
.btn-outline-secondary {
    border-color: #e2e8f0 !important;
    color: var(--text-muted) !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 600 !important;
}
.btn-outline-secondary:hover {
    background: #f8faf9 !important;
    border-color: #cbd5e1 !important;
    color: var(--text-heading) !important;
}

/* Cards */
.card {
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: var(--shadow-soft) !important;
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md) !important; }

/* Forms */
.form-control, .form-select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--radius-lg) !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: #fff !important;
    color: var(--text-heading) !important;
    transition: all var(--transition-fast) !important;
    height: auto !important;
    min-height: 48px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.form-control::placeholder { color: #94a3b8 !important; font-weight: 400 !important; }
.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: #cbd5e1 !important;
}
.form-label {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.form-label .material-symbols-outlined { font-size: 17px; color: var(--primary); }
.input-group-text {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-right: none !important;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    color: var(--text-muted) !important;
    padding: 12px 14px !important;
}
.input-group .form-control {
    border-left: none !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 14px center !important;
    background-size: 1.1em 1.1em !important;
    padding-right: 40px !important;
}
.unit-select {
    width: 90px !important;
    min-width: 90px;
    text-align: center;
    font-weight: 700 !important;
    background: #f8fafc !important;
    min-height: 48px;
}

/* Tables */
.table { margin-bottom: 0 !important; }
.table thead th {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    border-bottom: 2px solid var(--border-card) !important;
    padding: 13px 20px !important;
    background: #f8fafc;
    white-space: nowrap;
}
.table tbody td {
    padding: 14px 20px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: #f0fdf4 !important; }

/* ---------- ანიმაციები ---------- */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slowFloat {
    0%, 100% { transform: scale(1.03) translateY(0); }
    50%      { transform: scale(1.07) translateY(-8px); }
}
.animate-in   { animation: fadeInSlideUp 0.45s ease both; }
.animate-row  { animation: slideInLeft 0.35s ease-out both; }
.animate-float { animation: slowFloat 18s ease-in-out infinite; }

/* ---------- Layout – Sidebar ---------- */
.sidebar {
    width: 264px;
    min-width: 264px;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf8 100%);
    border-right: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 40;
}
.sidebar-brand { padding: 28px 24px 16px; }
.sidebar-brand-icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow);
    font-size: 24px;
}
.sidebar-brand h1 { font-size: 0.92rem; font-weight: 700; color: var(--text-heading); line-height: 1.3; margin: 0; }
.sidebar-brand p  { font-size: 0.7rem; color: var(--text-muted); margin: 1px 0 0; }

.sidebar-nav { padding: 12px 16px; flex: 1; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-bottom: 3px;
    position: relative;
}
.sidebar-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.sidebar-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.sidebar-nav a.active::before {
    content: '';
    position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 4px 4px 0;
    background: var(--primary);
}
.sidebar-nav a .material-symbols-outlined { font-size: 20px; }

.sidebar-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border-card);
    margin-top: auto;
}
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--primary);
}
.sidebar-user-info p { margin: 0; }
.sidebar-user-info p:first-child { font-size: 0.78rem; font-weight: 600; color: var(--text-heading); }
.sidebar-user-info p:last-child  { font-size: 0.65rem; color: var(--text-muted); }
.sidebar-logout {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: 0.75rem;
    font-size: 0.8rem; font-weight: 500;
    color: #dc2626; text-decoration: none;
    transition: background var(--transition-fast);
}
.sidebar-logout:hover { background: #fef2f2; color: #dc2626; }

/* ---------- Main Content ---------- */
.main-content {
    flex: 1; overflow-y: auto;
    padding: 32px 36px;
    background: var(--bg-page);
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { padding: 20px 16px; }
}

/* ---------- Stat Cards ---------- */
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.stat-icon-green  { background: linear-gradient(135deg, #d1fae5 0%, #ccfbf1 100%); color: var(--primary); }
.stat-icon-blue   { background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); color: #2563eb; }
.stat-icon-amber  { background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%); color: #d97706; }
.stat-icon-purple { background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%); color: #7c3aed; }

.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); line-height: 1.2; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-badge {
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7; color: #15803d;
}

.mini-label {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--primary);
}
.mini-value { font-size: 1.35rem; font-weight: 800; color: var(--text-heading); }

/* ---------- ბეჯები ---------- */
.badge-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem; font-weight: 700;
}
.badge-dot { width: 5px; height: 5px; border-radius: 999px; display: inline-block; }
.badge-stock  { background: #dcfce7; color: #15803d; }
.badge-stock .badge-dot { background: #22c55e; }
.badge-low    { background: #ffedd5; color: #c2410c; }
.badge-low .badge-dot { background: #f97316; }

.category-chip {
    font-size: 0.72rem; font-weight: 600;
    padding: 3px 10px;
    border-radius: 0.75rem;
    background: #f1f5f9; color: var(--text-muted);
}

/* ---------- Product icon ---------- */
.product-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.product-icon.fruits     { background: #fee2e2; color: #dc2626; }
.product-icon.vegetables { background: #dcfce7; color: #16a34a; }
.product-icon.herbs      { background: #ccfbf1; color: #0d9488; }
.product-icon.default    { background: #f1f5f9; color: var(--text-muted); }

.user-avatar-sm {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.62rem; font-weight: 700; color: var(--primary);
}

/* ---------- Toolbar ---------- */
.table-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-card);
    gap: 12px; flex-wrap: wrap;
}
.toolbar-search {
    position: relative; min-width: 200px; flex: 1; max-width: 300px;
}
.toolbar-search .material-symbols-outlined {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; font-size: 18px; pointer-events: none;
}
.toolbar-search input {
    width: 100%; height: 42px;
    padding: 0 14px 0 40px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    font-size: 0.84rem; font-weight: 500;
    color: var(--text-heading);
    outline: none;
    transition: all var(--transition-fast);
}
.toolbar-search input::placeholder { color: #94a3b8; font-weight: 400; }
.toolbar-search input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.toolbar-select {
    height: 42px;
    padding: 0 36px 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    font-size: 0.84rem; font-weight: 500;
    color: var(--text-heading);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.toolbar-select:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ---------- Action button ---------- */
.btn-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    transition: all var(--transition-base);
    cursor: pointer; text-decoration: none;
}
.btn-action:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}
.btn-action .material-symbols-outlined { font-size: 17px; }

/* ---------- Pagination ---------- */
.pagination-custom {
    display: flex; align-items: center; gap: 4px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-card);
    flex-wrap: wrap;
}
.pagination-custom a, .pagination-custom span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 12px;
    border-radius: 0.75rem;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.pagination-custom a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.pagination-custom a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.pagination-info {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- Login ---------- */
.login-wrapper { display: flex; height: 100vh; width: 100%; overflow: hidden; }
.login-hero { display: none; position: relative; }
@media (min-width: 1024px) { .login-hero { display: flex; flex: 0 0 58%; } }
.login-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.login-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(5,150,105,0.3) 0%, rgba(0,0,0,0.35) 50%, var(--bg-page) 100%);
    z-index: 1;
}
.login-hero-content {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 72px; width: 100%; height: 100%;
}
.login-hero-content h1 {
    font-size: 3rem; font-weight: 800;
    color: #fff; line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.login-hero-content p {
    font-size: 1.1rem; font-weight: 500;
    color: rgba(255,255,255,0.88);
    max-width: 440px; line-height: 1.6;
}
.login-form-wrapper {
    flex: 1; display: flex;
    align-items: center; justify-content: center;
    padding: 24px; position: relative; z-index: 20;
    background: var(--bg-page);
}
.login-card { width: 100%; max-width: 420px; }
.login-brand-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px;
    box-shadow: var(--shadow-glow);
}

/* ---------- Section header ---------- */
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--primary);
}

/* ---------- Glass panel ---------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-2xl);
    padding: 36px;
}

/* ---------- Alerts ---------- */
.alert-custom {
    border-radius: var(--radius-lg) !important;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeInSlideUp 0.35s ease both;
}

/* ---------- Empty state ---------- */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Utilities ---------- */
.text-primary-custom { color: var(--primary) !important; }
.hidden { display: none !important; }

/* ---------- Premium Stat Cards ---------- */
.premium-stat-card {
    border: none !important;
    border-radius: 20px !important;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.premium-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08) !important;
}
.stat-icon-premium {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; z-index: 2; position: relative;
}
.bg-green-soft { background: #dcfce7; } .text-green { color: #16a34a; }
.bg-blue-soft  { background: #dbeafe; } .text-blue  { color: #2563eb; }
.bg-amber-soft { background: #fef3c7; } .text-amber { color: #d97706; }
.bg-purple-soft{ background: #f3e8ff; } .text-purple{ color: #9333ea; }

.trend-badge {
    font-size: 0.75rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
    z-index: 2; position: relative;
}
.trend-badge .material-symbols-outlined { font-size: 16px; }
.trend-badge.positive { background: #dcfce7; color: #16a34a; }
.trend-badge.negative { background: #fee2e2; color: #dc2626; }
.trend-badge.stable   { background: #f1f5f9; color: #64748b; }

.stat-value-premium {
    font-size: 1.8rem; font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 2px;
    letter-spacing: -0.5px;
    z-index: 2; position: relative;
}
.stat-label-premium {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    z-index: 2; position: relative;
}

.card-glow {
    position: absolute; right: -20px; bottom: -20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    filter: blur(40px); opacity: 0.12;
    z-index: 0; pointer-events: none;
}
.card-glow.green { background: #16a34a; }
.card-glow.blue  { background: #2563eb; }
.card-glow.amber { background: #d97706; }
.card-glow.purple{ background: #9333ea; }

/* ---------- Modern Category Cards ---------- */
.modern-category-card {
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    background: #ffffff;
    transition: all 0.3s ease;
}
.modern-category-card:hover {
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    background: #f8fafc;
}
.cat-icon-lg {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.cat-icon-lg.fruits { background: #fee2e2; color: #dc2626; }
.cat-icon-lg.veg    { background: #dcfce7; color: #16a34a; }
.cat-icon-lg.herbs  { background: #ccfbf1; color: #0d9488; }
.cat-count {
    font-size: 1.1rem; font-weight: 800; color: var(--text-heading);
    background: white; border: 1px solid #e2e8f0;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* ---------- Premium Table ---------- */
.table-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    overflow: hidden;
}
.premium-table thead th {
    background: transparent !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9 !important;
    padding: 18px 16px !important;
    white-space: nowrap;
}
.premium-table tbody td {
    padding: 16px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc !important;
}
.table-row-hover {
    transition: all 0.2s ease;
    background: transparent;
}
.table-row-hover:hover {
    background: #f8fafc !important;
}

.product-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.product-avatar.fruits { background: #fee2e2; color: #dc2626; }
.product-avatar.vegetables { background: #dcfce7; color: #16a34a; }
.product-avatar.herbs { background: #ccfbf1; color: #0d9488; }
.product-avatar.default { background: #f1f5f9; color: #64748b; }

.chip {
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
}
.chip.fruits { background: #fee2e2; color: #b91c1c; }
.chip.vegetables { background: #dcfce7; color: #15803d; }
.chip.herbs { background: #ccfbf1; color: #0f766e; }
.chip.other { background: #f1f5f9; color: #475569; }

.status-badge-ok, .status-badge-warn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 14px; border-radius: 8px;
    font-size: 0.75rem; font-weight: 700; gap: 8px;
}
.status-badge-ok { background: #f0fdf4; color: #16a34a; }
.status-badge-ok::before { content:''; width:6px; height:6px; border-radius:50%; background:#16a34a; }
.status-badge-warn { background: #fff7ed; color: #ea580c; }
.status-badge-warn::before { content:''; width:6px; height:6px; border-radius:50%; background:#ea580c; }

.action-btn {
    width: 36px; height: 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #64748b;
    text-decoration: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(5,150,105,0.3); }

/* ---------- Modern Pagination ---------- */
.modern-pagination {
    display: flex; align-items: center; gap: 8px;
}
.modern-pagination a, .modern-pagination .dots {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 700;
    color: #475569; background: #f8fafc;
    text-decoration: none; transition: all 0.2s ease;
}
.modern-pagination a:hover { background: #e2e8f0; color: #0f172a; }
.modern-pagination a.active { background: var(--primary); color: white; box-shadow: 0 4px 10px var(--primary-glow); }
.modern-pagination .page-link-prev, .modern-pagination .page-link-next { background: transparent; border: 1.5px solid #e2e8f0; }
.modern-pagination .page-link-prev:hover, .modern-pagination .page-link-next:hover { background: #f1f5f9; border-color: #cbd5e1; }
.page-numbers { display: flex; align-items: center; gap: 6px; }

/* ---------- Search Box Embedded ---------- */
.search-box { position: relative; }
.search-box .search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 18px; pointer-events: none;
}
.search-box input:focus {
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background: white !important;
}

/* Button Premium Override */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    border-radius: 14px !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    display: inline-flex; align-items: center; gap: 8px;
}

.empty-state-card {
    padding: 40px; border-radius: 20px;
    background: #f8fafc; border: 2px dashed #cbd5e1;
    display: inline-block; max-width: 440px;
}
