/* ============================================================
   refresh.css - modern visual layer over the AdminKit themes
   Loaded after the reseller theme (classic/corporate/modern),
   so it restyles all variants. Neutral palette to stay
   white-label friendly. No layout/behaviour changes.
   ============================================================ */

:root {
    --rf-accent: #4361ee;
    --rf-accent-dark: #3a53cc;
    --rf-ink: #1e293b;
    --rf-ink-soft: #64748b;
    --rf-bg: #f1f5f9;
    --rf-card: #ffffff;
    --rf-line: #e2e8f0;
    --rf-sidebar: #101623;
    --rf-sidebar-ink: #94a3b8;
    --rf-radius: 12px;
    --rf-radius-sm: 8px;
    --rf-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
}

/* ---------- base ---------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background: var(--rf-bg) !important;
    color: var(--rf-ink);
    -webkit-font-smoothing: antialiased;
}

.content {
    padding: 1.5rem 1.5rem 2.5rem;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--rf-ink);
    font-weight: 600;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
    border: 2px solid var(--rf-bg);
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ---------- sidebar ---------- */
.sidebar, .sidebar-content {
    background: var(--rf-sidebar) !important;
}

.sidebar-brand {
    padding: 1.15rem 1.5rem;
    background: transparent !important;
}

.sidebar-header {
    color: #475569 !important;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    padding: 1.1rem 1.5rem .35rem;
    background: transparent !important;
}

.sidebar-link, a.sidebar-link {
    color: var(--rf-sidebar-ink) !important;
    background: transparent !important;
    padding: .55rem 1.5rem;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .15s ease, background .15s ease;
}

    .sidebar-link i, .sidebar-link svg {
        color: var(--rf-sidebar-ink) !important;
    }

    .sidebar-item:hover > .sidebar-link,
    .sidebar-link:hover {
        color: #f8fafc !important;
        background: rgba(148, 163, 184, .08) !important;
    }

.sidebar-item.active > .sidebar-link,
.sidebar-item.active .sidebar-link {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(67, 97, 238, .22), rgba(67, 97, 238, .05)) !important;
    border-left-color: var(--rf-accent);
}

    .sidebar-item.active > .sidebar-link i,
    .sidebar-item.active > .sidebar-link svg {
        color: var(--rf-accent) !important;
    }

.sidebar-dropdown .sidebar-item .sidebar-link {
    padding: .45rem 1.5rem .45rem 3.1rem;
    font-size: .83rem;
    border-left: 3px solid transparent;
}

/* ---------- top navbar ---------- */
.navbar {
    background: var(--rf-card) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    border-bottom: 1px solid var(--rf-line);
}

/* ---------- cards ---------- */
.card {
    border: 1px solid var(--rf-line);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow);
    background: var(--rf-card);
    margin-bottom: 1.5rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--rf-line);
    padding: 1rem 1.25rem .85rem;
    border-radius: var(--rf-radius) var(--rf-radius) 0 0 !important;
}

.card-title {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .15rem;
}

.card-subtitle {
    font-size: .8rem;
    color: var(--rf-ink-soft) !important;
    font-weight: 400;
}

.card-body {
    padding: 1.15rem 1.25rem;
}

/* ---------- tables ---------- */
.table {
    color: var(--rf-ink);
    font-size: .85rem;
}

    .table thead th {
        border-top: 0;
        border-bottom: 1px solid var(--rf-line);
        color: var(--rf-ink-soft);
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: .6rem .75rem;
        white-space: nowrap;
    }

    .table td {
        padding: .65rem .75rem;
        border-top: 1px solid var(--rf-line);
        vertical-align: middle;
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.table tbody tr:hover {
    background-color: #eef2ff !important;
    transition: background .1s ease;
}

/* ---------- buttons ---------- */
.btn {
    border-radius: var(--rf-radius-sm);
    font-weight: 500;
    letter-spacing: .01em;
}

.btn-pill {
    border-radius: 999px !important;
}

.btn-primary, .btn-primary:focus {
    background: var(--rf-accent) !important;
    border-color: var(--rf-accent) !important;
    box-shadow: 0 2px 8px rgba(67, 97, 238, .3);
}

    .btn-primary:hover {
        background: var(--rf-accent-dark) !important;
        border-color: var(--rf-accent-dark) !important;
    }

.btn-secondary {
    box-shadow: none;
}

/* ---------- forms ---------- */
.form-control {
    border-radius: var(--rf-radius-sm);
    border-color: #cbd5e1;
    color: var(--rf-ink);
}

    .form-control:focus {
        border-color: var(--rf-accent);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, .15);
    }

.form-group label, .col-form-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--rf-ink-soft);
}

/* ---------- badges (soft tints instead of solid blocks) ---------- */
.badge {
    border-radius: 6px;
    font-weight: 600;
    padding: .35em .6em;
    font-size: .72rem;
}

.badge-success {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.badge-warning {
    background: #fef9c3 !important;
    color: #a16207 !important;
}

.badge-danger {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.badge-primary {
    background: #e0e7ff !important;
    color: #3730a3 !important;
}

.badge-secondary {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.badge-info {
    background: #cffafe !important;
    color: #0e7490 !important;
}

/* ---------- login ---------- */
#divSingIn .card {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, .12);
    border: 1px solid rgba(226, 232, 240, .8);
}

/* ---------- misc ---------- */
hr {
    border-top-color: var(--rf-line);
}

.text-muted {
    color: var(--rf-ink-soft) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--rf-radius-sm);
    border: 1px solid #cbd5e1;
    padding: .3rem .6rem;
}

.page-item.active .page-link {
    background: var(--rf-accent);
    border-color: var(--rf-accent);
}

.page-link {
    color: var(--rf-accent);
}