/**
 * Modern Enterprise Design System for NetAmbit Partner Operations Console
 * Refined Executive SaaS Aesthetics, Indigo/Slate Theme, Glassmorphism & Micro-interactions
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Primary & Brand Colors */
    --brand-primary: #4F46E5;
    --brand-primary-hover: #4338CA;
    --brand-primary-light: #EEF2FF;
    --brand-primary-soft: rgba(79, 70, 229, 0.08);
    --brand-primary-glow: rgba(79, 70, 229, 0.25);
    
    --brand-amber: #F59E0B;
    --brand-amber-light: #FFFBEB;
    --brand-amber-soft: rgba(245, 158, 11, 0.1);
    
    --brand-emerald: #10B981;
    --brand-emerald-light: #ECFDF5;
    --brand-emerald-soft: rgba(16, 185, 129, 0.1);
    
    --brand-sky: #0EA5E9;
    --brand-sky-light: #F0F9FF;
    --brand-sky-soft: rgba(14, 165, 233, 0.1);
    
    --brand-rose: #F43F5E;
    --brand-rose-light: #FFF1F2;
    --brand-rose-soft: rgba(244, 63, 94, 0.1);
    
    --brand-purple: #8B5CF6;
    --brand-purple-light: #F5F3FF;
    --brand-purple-soft: rgba(139, 92, 246, 0.1);

    /* Executive Sidebar Palette */
    --sidebar-bg: #0B0F19;
    --sidebar-card-bg: #131B2E;
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --sidebar-text: #94A3B8;
    --sidebar-text-active: #FFFFFF;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.05);

    /* Content & Surfaces */
    --content-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 16px 28px -6px rgba(79, 70, 229, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

/* Global Typography & Resets */
body {
    font-family: var(--font-sans) !important;
    background-color: var(--content-bg) !important;
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   SIDEBAR (Executive Slate/Navy Edition)
   ========================================================================== */
.sidebar {
    width: 265px !important;
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar .navbar {
    padding: 0 !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Brand Header */
.sidebar-brand-wrapper {
    padding: 24px 20px 20px 22px;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #3B82F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 19px;
    box-shadow: 0 4px 12px var(--brand-primary-glow);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-brand-link:hover .sidebar-brand-icon {
    transform: scale(1.05) rotate(-3deg);
}

.sidebar-brand-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sidebar-brand-title span {
    color: var(--brand-amber);
}

.sidebar-brand-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sidebar-text);
    margin-top: 2px;
}

/* Navigation Links */
.sidebar-section-title {
    padding: 10px 20px 4px 22px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    margin: 0;
}

.sidebar .navbar .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 20px;
    margin: 2px 12px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    color: #64748B;
    background: transparent !important;
    border-radius: 0;
    transition: all 0.2s ease;
}

.sidebar .navbar .navbar-nav .nav-link span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .navbar .navbar-nav .nav-link:hover {
    color: var(--sidebar-text-active);
    background: var(--sidebar-hover-bg);
}

.sidebar .navbar .navbar-nav .nav-link:hover i {
    color: #CBD5E1;
}

.sidebar .navbar .navbar-nav .nav-link.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.08) 100%);
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.sidebar .navbar .navbar-nav .nav-link.active i {
    color: #818CF8;
}

.sidebar .navbar .navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-primary);
}

/* Sidebar User Footer */
.sidebar-user-footer {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4338CA, #6366F1);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.sidebar-user-info {
    overflow: hidden;
    flex: 1;
}

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

.sidebar-user-role {
    color: #64748B;
    font-size: 11px;
    font-weight: 500;
}

/* ==========================================================================
   CONTENT WRAPPER & TOP NAVBAR
   ========================================================================== */
.content {
    margin-left: 265px !important;
    min-height: 100vh;
    background-color: var(--content-bg) !important;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    .content {
        width: calc(100% - 265px) !important;
    }
    .sidebar.open {
        margin-left: -265px !important;
    }
    .content.open {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -265px !important;
    }
    .sidebar.open {
        margin-left: 0 !important;
    }
    .content {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Top Navbar */
.content .navbar.sticky-top {
    height: 70px;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    z-index: 1020;
    padding: 0 28px !important;
}

.navbar-toggler-modern {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-heading);
    text-decoration: none;
    transition: all 0.2s ease;
}

.navbar-toggler-modern:hover {
    background: #E2E8F0;
    color: var(--brand-primary);
}

/* System Status Pill */
.system-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065F46;
    font-size: 12.5px;
    font-weight: 600;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    position: relative;
}

.indicator-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Search Box in Navbar */
.topbar-search-box {
    position: relative;
    width: 320px;
}

.topbar-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 13px;
}

.topbar-search-input {
    width: 100%;
    height: 38px;
    padding: 0 44px 0 38px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    font-size: 13px;
    color: var(--text-heading);
    transition: all 0.2s ease;
}

.topbar-search-input:focus {
    background: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
    outline: none;
}

.topbar-search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    background: #EDF2F7;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

/* User Profile Button in Topbar */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.topbar-user-btn:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.topbar-user-btn::after {
    margin-left: 4px;
    color: #94A3B8;
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #6366F1 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-user-meta {
    text-align: left;
    line-height: 1.2;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
}

.topbar-user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.topbar-dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    padding: 8px !important;
    min-width: 220px !important;
    animation: dropdown-fade-in 0.2s ease;
}

@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.topbar-dropdown-header {
    padding: 10px 14px 12px 14px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 4px;
}

.topbar-dropdown-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-dropdown-item {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    color: var(--text-body) !important;
    transition: all 0.15s ease !important;
}

.topbar-dropdown-item::before {
    display: none !important;
}

.topbar-dropdown-item:hover {
    background: #F1F5F9 !important;
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.admin-breadcrumb-wrapper {
    margin: 16px 28px 0 28px;
    padding: 10px 18px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
}

.admin-breadcrumb-wrapper .breadcrumb {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.admin-breadcrumb-wrapper .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.admin-breadcrumb-wrapper .breadcrumb-item a:hover {
    color: var(--brand-primary);
}

.admin-breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--brand-primary);
    font-weight: 600;
}

/* ==========================================================================
   DASHBOARD CARDS, STATS & METRICS
   ========================================================================== */
.stat-card-modern {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: #CBD5E1;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}

.stat-card-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card-icon-primary {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.stat-card-icon-emerald {
    background: var(--brand-emerald-light);
    color: var(--brand-emerald);
}

.stat-card-icon-amber {
    background: var(--brand-amber-light);
    color: var(--brand-amber);
}

.stat-card-icon-sky {
    background: var(--brand-sky-light);
    color: var(--brand-sky);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.stat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #F1F5F9;
}

.stat-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 6px;
}

.stat-trend-positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.stat-trend-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

/* Hero Welcome Banner */
.hero-welcome-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #312E81 100%);
    border-radius: 20px;
    padding: 30px 34px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
    margin-bottom: 24px;
}

.hero-welcome-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-welcome-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hero-welcome-subtitle {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 0;
    max-width: 600px;
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--brand-primary);
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.hero-action-btn:hover {
    background: #F8FAFC;
    color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-action-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

/* ==========================================================================
   CARDS & TABLES (MODERN DATATABLE CONTAINERS)
   ========================================================================== */
.table-card-modern, .card-modern {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.table-card-header, .card-modern-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    background: #FFFFFF;
}

.table-card-title, .card-modern-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Standard Table Overhauls */
.table {
    margin-bottom: 0 !important;
    color: var(--text-body);
}

.table > :not(caption) > * > * {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

.table thead th, thead.table-light th {
    background-color: #F8FAFC !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-top: none !important;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #F8FAFC !important;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.badge-primary-soft, .badge.bg-primary {
    background: var(--brand-primary-light) !important;
    color: var(--brand-primary) !important;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-success-soft, .badge.bg-success {
    background: var(--brand-emerald-light) !important;
    color: #065F46 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning-soft, .badge.bg-warning {
    background: var(--brand-amber-light) !important;
    color: #92400E !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger-soft, .badge.bg-danger {
    background: var(--brand-rose-light) !important;
    color: #9F1239 !important;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-secondary-soft, .badge.bg-secondary {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #CBD5E1;
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 9px;
    padding: 8px 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 4px 10px var(--brand-primary-glow);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--brand-primary-glow);
}

.btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
}

.btn-outline-secondary {
    color: #475569 !important;
    border-color: #CBD5E1 !important;
    background: #FFFFFF !important;
}

.btn-outline-secondary:hover {
    background: #F1F5F9 !important;
    color: var(--text-heading) !important;
    border-color: #94A3B8 !important;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 7px;
}

/* Forms & Inputs */
.form-control, .form-select {
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    font-size: 13.5px;
    padding: 9px 13px;
    color: var(--text-heading);
    transition: all 0.2s ease;
    background-color: #FFFFFF;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
    outline: none;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

/* DataTables Styling */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    padding: 6px 12px;
    font-size: 13px;
    margin-left: 8px;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 4px 10px !important;
    margin: 0 2px !important;
    border: 1px solid transparent !important;
    font-size: 12.5px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-primary) !important;
}

/* Footer */
.admin-footer {
    margin-top: auto;
    padding: 24px 28px !important;
}

.admin-footer-inner {
    padding: 16px 22px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    font-size: 12.5px;
    color: var(--text-muted);
}

.admin-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.admin-footer a:hover {
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
