/* ============================================================= */
/* еБиблиотека SuperAdmin — Ultra Premium Override               */
/* Се вчитува ПОСЛЕ premium.css — ги надградува стиловите       */
/* ============================================================= */

/* ======================== Design Tokens Override ======================== */
:root {
    /* Indigo-Violet Palette (replaces blue-purple) */
    --sp-primary: #6366f1;
    --sp-primary-rgb: 99, 102, 241;
    --sp-primary-dark: #4f46e5;
    --sp-violet: #8b5cf6;
    --sp-violet-rgb: 139, 92, 246;
    --sp-indigo-50: #eef2ff;
    --sp-indigo-100: #e0e7ff;

    /* Semantic Colors */
    --sp-emerald: #10b981;
    --sp-emerald-rgb: 16, 185, 129;
    --sp-danger: #ef4444;
    --sp-danger-rgb: 239, 68, 68;
    --sp-warning: #f59e0b;
    --sp-warning-rgb: 245, 158, 11;
    --sp-teal: #14b8a6;
    --sp-teal-rgb: 20, 184, 166;

    /* Backgrounds */
    --sp-body-bg: #f8fafc;
    --sp-card-bg: #ffffff;
    --sp-sidebar-from: #0f172a;
    --sp-sidebar-to: #1e293b;

    /* Text */
    --sp-text-primary: #0f172a;
    --sp-text-secondary: #64748b;
    --sp-text-muted: #94a3b8;

    /* Borders & Radius */
    --sp-border: #e2e8f0;
    --sp-radius-card: 20px;
    --sp-radius-input: 12px;
    --sp-radius-btn: 12px;

    /* Shadows — Ultra Premium Multi-Layer */
    --sp-shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(99,102,241,0.04);
    --sp-shadow-card-hover: 0 4px 12px rgba(0,0,0,0.04), 0 16px 48px rgba(99,102,241,0.08);
    --sp-shadow-glow: 0 0 0 4px rgba(99,102,241,0.1);

    /* Gradients */
    --sp-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --sp-gradient-vibrant: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #8b5cf6 100%);
    --sp-gradient-emerald: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --sp-gradient-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --sp-gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --sp-gradient-teal: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);

    /* Override premium.css variables */
    --premium-primary: #6366f1;
    --premium-primary-rgb: 99, 102, 241;
    --premium-primary-dark: #4f46e5;
    --premium-purple: #8b5cf6;
    --premium-purple-rgb: 139, 92, 246;
    --premium-teal: #10b981;
    --premium-body-bg: #f8fafc;
    --premium-text-primary: #0f172a;
    --premium-text-secondary: #64748b;
    --premium-text-light: #94a3b8;
    --premium-border-color: #e2e8f0;
    --premium-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --premium-gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --premium-gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --premium-gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --premium-gradient-info: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --premium-shadow-card: var(--sp-shadow-card);
}

/* ======================== Global Body ======================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: var(--sp-body-bg) !important;
    color: var(--sp-text-primary);
    letter-spacing: -0.01em;
}

/* ======================== Typography ======================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.025em;
}

.form-label {
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--sp-text-secondary) !important;
}

/* ======================== Sidebar — Deep Dark ======================== */
.sidebar {
    background: linear-gradient(180deg, var(--sp-sidebar-from) 0%, var(--sp-sidebar-to) 100%) !important;
    border-right: none !important;
    box-shadow: 4px 0 32px rgba(15, 23, 42, 0.4) !important;
}

.sidebar__logo {
    padding: 24px 20px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Logo text override */
.sidebar__logo p:first-child span:first-child {
    color: #10b981 !important;
}

/* Sidebar menu links */
.sidebar-menu__link {
    color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 4px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-menu__link:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-menu__link .icon {
    color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
}

.sidebar-menu__link:hover .icon {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Active — indigo gradient + left accent bar */
.sidebar-menu__item.activePage .sidebar-menu__link {
    background: var(--sp-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.sidebar-menu__item.activePage .sidebar-menu__link .icon {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ======================== Top Navbar ======================== */
.top-navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.04) !important;
    border-radius: 0 0 20px 20px !important;
}

/* ======================== Cards — Glassmorphism Touch ======================== */
.card {
    border-radius: var(--sp-radius-card) !important;
    border: 1px solid var(--sp-border) !important;
    box-shadow: var(--sp-shadow-card) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: var(--sp-card-bg) !important;
}

.card:hover {
    box-shadow: var(--sp-shadow-card-hover) !important;
}

/* ======================== Buttons ======================== */
.btn {
    font-family: 'Inter', sans-serif !important;
    border-radius: var(--sp-radius-btn) !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.btn-main,
.btn-primary {
    background: var(--sp-gradient) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
}

.btn-main:hover,
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
    background: var(--sp-gradient) !important;
}

.btn-success {
    background: var(--sp-gradient-emerald) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-danger {
    background: var(--sp-gradient-danger) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

/* ======================== Tables — Ultra Clean ======================== */
.table tbody tr {
    background: #fff;
    transition: all 0.2s ease !important;
}

.table tbody tr:hover {
    background-color: var(--sp-indigo-50) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06) !important;
}

.table thead th {
    color: var(--sp-text-muted) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
}

/* ======================== Forms — Enhanced ======================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--sp-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* ======================== Stat Cards — Premium Override ======================== */
.stat-card {
    border-radius: var(--sp-radius-card) !important;
    border: 1px solid var(--sp-border) !important;
    box-shadow: var(--sp-shadow-card) !important;
    background: #fff !important;
}

.stat-card:hover {
    box-shadow: var(--sp-shadow-card-hover) !important;
}

.stat-card__icon--blue {
    background: var(--sp-gradient) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
}

.stat-card__icon--green {
    background: var(--sp-gradient-emerald) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.stat-card__icon--orange {
    background: var(--sp-gradient-amber) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
}

.stat-card__icon--red {
    background: var(--sp-gradient-danger) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.stat-card__icon--teal {
    background: var(--sp-gradient-teal) !important;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3) !important;
}

.stat-card__icon--purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%) !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3) !important;
}

.stat-card__info h4 {
    color: var(--sp-text-primary) !important;
    letter-spacing: -0.03em !important;
}

.stat-card__info span {
    color: var(--sp-text-muted) !important;
}

/* ======================== Status Badges — Refined ======================== */
.status-badge--success {
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(52,211,153,0.1) 100%) !important;
    color: #059669 !important;
}

.status-badge--warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(251,191,36,0.1) 100%) !important;
    color: #d97706 !important;
}

.status-badge--danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.1) 0%, rgba(248,113,113,0.1) 100%) !important;
    color: #dc2626 !important;
}

.status-badge--info {
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%) !important;
    color: #4f46e5 !important;
}

.status-dot--success { background: #10b981 !important; }
.status-dot--warning { background: #f59e0b !important; }
.status-dot--danger { background: #ef4444 !important; }

/* ======================== Action Buttons — Indigo Palette ======================== */
.action-btn--view {
    color: #6366f1 !important;
    background: rgba(99,102,241,0.08) !important;
}
.action-btn--view:hover {
    background: var(--sp-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3) !important;
}

.action-btn--edit {
    color: #10b981 !important;
    background: rgba(16,185,129,0.08) !important;
}
.action-btn--edit:hover {
    background: var(--sp-gradient-emerald) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3) !important;
}

.action-btn--delete {
    color: #ef4444 !important;
    background: rgba(239,68,68,0.08) !important;
}
.action-btn--delete:hover {
    background: var(--sp-gradient-danger) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(239,68,68,0.3) !important;
}

.action-btn--download {
    color: #6366f1 !important;
    background: rgba(99,102,241,0.08) !important;
}
.action-btn--download:hover {
    background: var(--sp-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3) !important;
}

.action-btn--qr {
    color: #8b5cf6 !important;
    background: rgba(139,92,246,0.08) !important;
}
.action-btn--qr:hover {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(139,92,246,0.3) !important;
}

.action-btn--copy {
    color: #14b8a6 !important;
    background: rgba(20,184,166,0.08) !important;
}
.action-btn--copy:hover {
    background: var(--sp-gradient-teal) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(20,184,166,0.3) !important;
}

/* ======================== Pagination ======================== */
ul.premium-pagination .page-item.active .page-link {
    background: var(--sp-gradient) !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.25) !important;
}

ul.premium-pagination .page-item .page-link:hover {
    background: rgba(99,102,241,0.06) !important;
    color: var(--sp-primary) !important;
}

.page-item.active .page-link {
    background: var(--sp-gradient) !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.25) !important;
}

/* ======================== Dashboard Greeting Box ======================== */
.grettings-box,
.grettings-box-two {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #10b981 100%) !important;
}

.grettings-box::before,
.grettings-box-two::before {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ======================== Dashboard Stat Card Icons ======================== */
.card .flex-shrink-0.w-48.h-48.flex-center.bg-main-600 {
    background: var(--sp-gradient) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
}

.card .flex-shrink-0.w-48.h-48.flex-center.bg-main-two-600 {
    background: var(--sp-gradient-emerald) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
}

.card .flex-shrink-0.w-48.h-48.flex-center.bg-danger-600 {
    background: var(--sp-gradient-danger) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35) !important;
}

.card .flex-shrink-0.w-48.h-48.flex-center.bg-teal-600 {
    background: var(--sp-gradient-teal) !important;
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35) !important;
}

.card .flex-shrink-0.w-48.h-48.flex-center.bg-purple-600 {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%) !important;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35) !important;
}

.card .flex-shrink-0.w-48.h-48.flex-center.bg-warning-600 {
    background: var(--sp-gradient-amber) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
}

/* ======================== Per-Page Selector ======================== */
.per-page-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sp-text-secondary);
    font-weight: 500;
}

.per-page-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid var(--sp-border);
    border-radius: 10px;
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.per-page-selector select:hover {
    border-color: rgba(99,102,241,0.3);
}

.per-page-selector select:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    outline: none;
}

/* ======================== Login — Full Glassmorphism ======================== */
.auth-left {
    background: linear-gradient(-45deg, #6366f1, #8b5cf6, #10b981, #6366f1) !important;
    background-size: 400% 400% !important;
    animation: authGradientShift 12s ease infinite !important;
}

@keyframes authGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-right .btn-main,
.auth-right .btn-primary {
    background: var(--sp-gradient) !important;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35) !important;
}

.auth-right .btn-main:hover,
.auth-right .btn-primary:hover {
    box-shadow: 0 10px 36px rgba(99, 102, 241, 0.5) !important;
}

/* ======================== Filter Card ======================== */
.filter-card {
    border-radius: var(--sp-radius-card) !important;
}

.search-input-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* ======================== Upload Card Item (View Library) ======================== */
.upload-card-item {
    background: var(--sp-indigo-50) !important;
    border: 1px solid rgba(99, 102, 241, 0.06) !important;
    border-radius: 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.upload-card-item:hover {
    border-color: rgba(99, 102, 241, 0.12) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06) !important;
    transform: translateY(-2px);
}

.upload-card-item .w-36.h-36.rounded-circle.bg-white {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1) !important;
}

/* ======================== Hero Section (View Library) ======================== */
.sa-hero {
    background: var(--sp-gradient);
    border-radius: var(--sp-radius-card);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.sa-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.sa-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 30%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.sa-hero__title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.sa-hero__subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.sa-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sa-hero__actions .btn {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: all 0.25s ease !important;
}

.sa-hero__actions .btn:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* ======================== Chart Card Header ======================== */
.card-header h5 {
    font-family: 'Inter', sans-serif !important;
    color: var(--sp-text-primary) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* ======================== Modal — Ultra Premium ======================== */
.modal-header {
    background: var(--sp-gradient) !important;
}

.premium-modal__header {
    background: var(--sp-gradient);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.premium-modal__header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.premium-modal__title {
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.premium-modal__subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    margin-bottom: 0;
}

.premium-modal__close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.premium-modal__close:hover {
    background: rgba(255,255,255,0.2);
}

.premium-modal__footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--sp-border);
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
}

.premium-modal__btn-cancel {
    background: #f1f5f9 !important;
    color: var(--sp-text-secondary) !important;
    border: 1px solid var(--sp-border) !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.premium-modal__btn-cancel:hover {
    background: #e2e8f0 !important;
}

.premium-modal__btn-submit {
    background: var(--sp-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3) !important;
}

.premium-modal__btn-submit:hover {
    box-shadow: 0 8px 24px rgba(99,102,241,0.4) !important;
    transform: translateY(-1px);
}

/* ======================== Log Action Badges ======================== */
.log-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.log-action-badge--create {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.log-action-badge--update {
    background: rgba(99,102,241,0.1);
    color: #4f46e5;
}

.log-action-badge--delete {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
}

.log-action-badge--login {
    background: rgba(139,92,246,0.1);
    color: #7c3aed;
}

.log-action-badge--other {
    background: rgba(100,116,139,0.1);
    color: #475569;
}

/* ======================== Form Card Section ======================== */
.sa-form-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 8px;
    margin-top: 8px;
    border-top: 1px solid var(--sp-border);
}

.sa-form-section__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sp-indigo-50);
    color: var(--sp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sa-form-section__text h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-text-primary);
    margin-bottom: 2px;
}

.sa-form-section__text p {
    font-size: 12.5px;
    color: var(--sp-text-muted);
    margin-bottom: 0;
}

/* ======================== Footer ======================== */
.dashboard-footer p.text-gray-300 {
    color: var(--sp-text-muted) !important;
}

.dashboard-footer::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99,102,241,0.08) 15%,
        rgba(99,102,241,0.18) 35%,
        rgba(139,92,246,0.18) 50%,
        rgba(16,185,129,0.18) 65%,
        rgba(16,185,129,0.08) 85%,
        transparent 100%) !important;
}

/* ======================== Preloader ======================== */
.loader {
    border-color: rgba(99,102,241,0.15) !important;
    border-top-color: var(--sp-primary) !important;
}

/* ======================== Breadcrumb ======================== */
.text-main-600,
span.text-main-600 {
    color: var(--sp-primary) !important;
}

.bg-main-600 {
    background-color: var(--sp-primary) !important;
}

.bg-main-50 {
    background-color: rgba(99,102,241,0.06) !important;
}

/* ======================== Toast Notifications — Font Override ======================== */
.premium-toast {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ======================== SweetAlert2 ======================== */
.swal2-confirm {
    background: var(--sp-gradient) !important;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3) !important;
}

/* ======================== Scrollbar ======================== */
::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* ======================== Responsive ======================== */
@media (max-width: 768px) {
    .sa-hero {
        padding: 24px;
    }
    .sa-hero__title {
        font-size: 20px;
    }
    .search-input-form {
        flex-direction: column;
    }
    .per-page-selector {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .sa-hero__actions {
        flex-direction: column;
    }
}

/* ======================== Animation Overrides ======================== */
@keyframes dashCardSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
