:root {
    --jobulus-primary: #16243f;
    --jobulus-secondary: #06b6d4;
    --jobulus-accent: #8b5cf6;
    --jobulus-dark: #0f172a;
    --jobulus-font-sans: 'Poppins', sans-serif;
    --jobulus-font-heading: 'Syne', sans-serif;
}

body {
    font-family: var(--jobulus-font-sans) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bolder {
    font-family: var(--jobulus-font-heading) !important;
}

/* Base Primary Overrides */
.btn-primary {
    background-color: var(--jobulus-primary) !important;
    border-color: var(--jobulus-primary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1a2e51 !important;
    /* Slightly lighter and bluer on hover for visibility */
    border-color: #1a2e51 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 36, 63, 0.4) !important;
}

/* Gradients */
.bg-jobulus-gradient {
    background: linear-gradient(135deg, var(--jobulus-primary) 0%, var(--jobulus-secondary) 100%) !important;
}

/* Sidebar Styling */
.app-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #16243f 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.menu-link.active {
    background-color: rgba(22, 36, 63, 0.4) !important;
    color: #4facfe !important;
    /* Vibrant cyan-blue for active */
}

.menu-link.active .menu-title {
    color: #4facfe !important;
}

.menu-link.active .menu-icon i {
    color: #4facfe !important;
}

.menu-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Mesh Gradient & Glassmorphism */
.mesh-gradient {
    background-color: #0f172a;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)),
        url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glass-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.2);
    border-radius: 28px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--jobulus-secondary) !important;
}

[data-theme="dark"] .glass-card {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Table Design */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1.25rem 1rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 0.875rem !important;
}

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

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

/* Pagination Design */
.pagination {
    margin-top: 1.5rem !important;
    gap: 5px;
}

.page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 0.5rem 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.page-item.active .page-link {
    background-color: var(--jobulus-primary) !important;
    border-color: var(--jobulus-primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(22, 36, 63, 0.25) !important;
}

.page-item:not(.active):hover .page-link {
    background-color: #f1f5f9 !important;
    color: var(--jobulus-primary) !important;
}

/* Dark Mode Overrides */
[data-theme="dark"] .table thead th {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .table tbody td {
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .page-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--jobulus-primary) !important;
    color: white !important;
}

[data-theme="dark"] .page-item:not(.active):hover .page-link {
    background-color: #334155 !important;
    color: white !important;
}

/* Dashboard Specifics */
.dash-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.dash-chart-container {
    height: 60px;
    width: 100%;
    margin-top: 10px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}