@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. GLOBAL ROOT VARIABLES & TYPOGRAPHY
   ========================================================================== */

:root {
    --default-font: 'Outfit', sans-serif;
    --tecclub-brand: #0E59F2;
    --tecclub-secondary: #7B2FF7;
    --tecclub-gradient: linear-gradient(120deg, #0E59F2 0%, #7B2FF7 100%);
    --tecclub-dark-obsidian: #09090B;
    --tecclub-dark-card: #111a2e;
    --tecclub-shadow: 0px 14px 34px 0px rgba(14, 89, 242, 0.22);
}

*,
body,
html,
input,
button,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, label, table,
.btn, .badge, .form-control, .form-select,
.sidebar, .dashboard-main, .navbar, .card {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. LOADERS & MICRO-ANIMATION UTILITIES
   ========================================================================== */

.loader {
    width: 100%;
    height: 3px;
    background-color: rgb(15, 15, 15);
    border-radius: 20px;
    overflow: hidden;
}

.child {
    width: 60%;
    height: 3px;
    background-color: rgb(107, 27, 255);
    border-radius: 20px;
    z-index: 0;
    margin-left: -60px;
    animation: go 1s 0s infinite;
}

@keyframes go {
    from {
        margin-left: -100px;
        width: 80px;
    }
    to {
        width: 30px;
        margin-left: 110px;
    }
}

.text {
    width: 100px;
    height: 30px;
    background-color: transparent;
    margin-top: 20px;
    text-align: center;
    color: #000;
}

.text::before {
    content: "Loading";
    animation: text 1s 0s infinite;
}

@keyframes text {
    0% { content: "Loading"; }
    30% { content: "Loading."; }
    60% { content: "Loading.."; }
    100% { content: "Loading..."; }
}

.loading-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   3. SELECT2 PLUGIN STYLES
   ========================================================================== */

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#select2-tags .select2 {
    width: 100% !important;
    display: block !important;
}

span.selection {
    width: 100% !important;
}

.select2-dropdown {
    color: #000 !important;
}

.select2-selection,
.select2-search {
    color: #000 !important;
}

/* ==========================================================================
   4. BLOG & CONTENT FORM SPECIFIC COMPONENTS
   ========================================================================== */

.sidebar-card .card-header h6,
.content-card .card-header h6 {
    display: inline-flex;
    align-items: center;
}

.sidebar-card .card-header h6 iconify-icon,
.content-card .card-header h6 iconify-icon {
    display: inline-flex;
    flex-shrink: 0;
}

html[data-theme="dark"] .publish-toggle {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .publish-toggle:hover {
    border-color: var(--bs-primary);
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .publish-toggle.active {
    background: rgba(var(--bs-primary-rgb), 0.15);
    border-color: var(--bs-primary);
}

html[data-theme="dark"] .thumbnail-upload-zone {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .thumbnail-upload-zone:hover,
html[data-theme="dark"] .thumbnail-upload-zone.dragover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

html[data-theme="dark"] .thumbnail-preview {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .content-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sidebar-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   5. EXECUTIVE HERO HEADER & DASHBOARD LAYOUT
   ========================================================================== */

.dashboard-hero-header {
    background: linear-gradient(135deg, rgba(14, 89, 242, 0.08) 0%, rgba(123, 47, 247, 0.05) 100%);
    border: 1px solid rgba(14, 89, 242, 0.15) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    margin-bottom: 24px !important;
}

html[data-theme="dark"] .dashboard-hero-header {
    background: linear-gradient(135deg, rgba(14, 89, 242, 0.12) 0%, rgba(123, 47, 247, 0.06) 100%);
    border-color: rgba(14, 89, 242, 0.25) !important;
}

/* ==========================================================================
   6. METRIC STAT CARDS & GLOWING ICON BADGES
   ========================================================================== */

.metric-stat-card {
    border-radius: 14px !important;
    padding: 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

html[data-theme="dark"] .metric-stat-card {
    background: #111a2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.metric-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="dark"] .metric-stat-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(14, 89, 242, 0.35) !important;
}

.metric-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #64748b;
    margin-bottom: 6px;
}

html[data-theme="dark"] .metric-label {
    color: #94a3b8 !important;
}

.metric-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.metric-icon-indigo {
    background: rgba(14, 89, 242, 0.12);
    color: #0E59F2;
}

.metric-icon-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.metric-icon-sky {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.metric-icon-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.metric-icon-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

/* Glowing Neon Stat Badges in Dark Mode */
html[data-theme="dark"] .metric-icon-indigo,
[data-theme="dark"] .metric-icon-indigo {
    background: rgba(14, 89, 242, 0.22) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(14, 89, 242, 0.35) !important;
    box-shadow: 0 0 15px rgba(14, 89, 242, 0.15);
}

html[data-theme="dark"] .metric-icon-emerald,
[data-theme="dark"] .metric-icon-emerald {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

html[data-theme="dark"] .metric-icon-sky,
[data-theme="dark"] .metric-icon-sky {
    background: rgba(14, 165, 233, 0.22) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

html[data-theme="dark"] .metric-icon-amber,
[data-theme="dark"] .metric-icon-amber {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

html[data-theme="dark"] .metric-icon-purple,
[data-theme="dark"] .metric-icon-purple {
    background: rgba(139, 92, 246, 0.22) !important;
    color: #c084fc !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.metric-pill {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 50px !important;
}

/* ==========================================================================
   7. STATUS & PILL BADGES
   ========================================================================== */

.badge-pill-modern {
    padding: 5px 12px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-published {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-draft {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-confirmed {
    background: rgba(14, 89, 242, 0.12);
    color: #0E59F2;
    border: 1px solid rgba(14, 89, 242, 0.3);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   8. UNIVERSAL CARDS & CONTAINERS
   ========================================================================== */

.card {
    border-radius: 14px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-header {
    padding: 14px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: transparent !important;
}

.card-body {
    padding: 20px !important;
}

/* ==========================================================================
   9. UNIVERSAL FORM CONTROLS & BUTTONS
   ========================================================================== */

.form-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control, .form-select, textarea {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
    color: #0f172a !important;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: #0E59F2 !important;
    box-shadow: 0 0 0 3px rgba(14, 89, 242, 0.15) !important;
}

.btn {
    border-radius: 8px !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}

.btn-primary {
    background-color: #0E59F2 !important;
    border-color: #0E59F2 !important;
}

.btn-primary:hover {
    background-color: #0a4bcf !important;
    border-color: #0a4bcf !important;
}

/* ==========================================================================
   10. MODERN TABLES & DARK MODE TABLE FIXES
   ========================================================================== */

.table,
.table-modern {
    margin-bottom: 0;
    font-size: 0.825rem !important;
}

.table thead th,
.table-modern thead th {
    background: rgba(244, 244, 245, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #52525b;
    border-bottom: 1px solid #e4e4e7;
    padding: 10px 16px !important;
}

.table tbody td,
.table-modern tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

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

.table-modern tbody tr:hover td {
    background-color: rgba(14, 89, 242, 0.04) !important;
}

/* Eliminate white background leak in dark mode tables */
html[data-theme="dark"] .table,
html[data-theme="dark"] .table-modern,
html[data-theme="dark"] table,
html[data-theme="dark"] .table > :not(caption) > * > *,
[data-theme="dark"] .table,
[data-theme="dark"] .table-modern,
[data-theme="dark"] table,
[data-theme="dark"] .table > :not(caption) > * > * {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-color: #f1f5f9 !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.07) !important;
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .table-modern tbody td,
html[data-theme="dark"] .table tbody td,
[data-theme="dark"] .table-modern tbody td,
[data-theme="dark"] .table tbody td {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .table-modern thead th,
html[data-theme="dark"] .table thead th,
[data-theme="dark"] .table-modern thead th,
[data-theme="dark"] .table thead th {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}

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

/* ==========================================================================
   11. SIDEBAR BRANDING & COLLAPSED ANTI-HOVER RULES
   ========================================================================== */

.sidebar-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 20px !important;
    height: 70px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .sidebar-logo {
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-logo img {
    max-height: 32px;
    width: auto;
}

/* Single Logo Visibility Control */
html[data-theme="light"] .sidebar-logo img.light-logo {
    display: block !important;
}

html[data-theme="light"] .sidebar-logo img.dark-logo,
html[data-theme="light"] .sidebar-logo img.logo-icon {
    display: none !important;
}

html[data-theme="dark"] .sidebar-logo img.dark-logo {
    display: block !important;
}

html[data-theme="dark"] .sidebar-logo img.light-logo,
html[data-theme="dark"] .sidebar-logo img.logo-icon {
    display: none !important;
}

/* Collapsed Sidebar Logo State */
.sidebar.active .sidebar-logo img.light-logo,
.sidebar.active .sidebar-logo img.dark-logo {
    display: none !important;
}

.sidebar.active .sidebar-logo img.logo-icon {
    display: block !important;
    max-height: 28px !important;
}

/* Strictly Suppress Hover-Expansion When Sidebar is Closed */
.sidebar.active:hover {
    width: auto !important;
}

.sidebar.active:hover .sidebar-logo img.light-logo,
.sidebar.active:hover .sidebar-logo img.dark-logo {
    display: none !important;
}

.sidebar.active:hover .sidebar-logo img.logo-icon {
    display: block !important;
}

.sidebar.active:hover .sidebar-menu li a span {
    display: none !important;
}

.sidebar.active:hover .sidebar-menu li.dropdown.dropdown-open .sidebar-submenu,
.sidebar.active:hover .sidebar-menu li.dropdown.open .sidebar-submenu {
    display: none !important;
}

.sidebar.active:hover .sidebar-menu li.sidebar-menu-group-title {
    display: none !important;
}

.sidebar.active:hover .sidebar-menu li.dropdown a::after {
    display: none !important;
}

.sidebar-menu-area {
    padding: 12px 14px !important;
}

.sidebar-menu li a {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html[data-theme="light"] .sidebar-menu li a {
    color: #475569 !important;
}

.sidebar-menu li a:hover {
    background: rgba(14, 89, 242, 0.08) !important;
    color: #0E59F2 !important;
}

/* Active Sidebar Item */
.sidebar-menu li.active > a,
.sidebar-menu li a.active {
    background: #0E59F2 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(14, 89, 242, 0.35) !important;
    border-radius: 8px !important;
}

.sidebar-menu li.active > a span,
.sidebar-menu li a.active span,
.sidebar-menu li.active > a iconify-icon,
.sidebar-menu li a.active iconify-icon,
.sidebar-menu li.active > a i,
.sidebar-menu li a.active i {
    color: #ffffff !important;
}

.sidebar-menu-group-title {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #64748b !important;
    margin: 16px 0 8px 14px !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   12. SYLINK-INSPIRED EXECUTIVE SPLIT LOGIN CARD
   ========================================================================== */

.login-page-wrapper {
    min-height: 100vh;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-bg-glow-1 {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 89, 242, 0.35) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.login-bg-glow-2 {
    position: absolute;
    bottom: 15%;
    right: 20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.login-split-card {
    width: 100%;
    max-width: 920px;
    min-height: 360px;
    background: rgba(13, 19, 34, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-left-brand-panel {
    background: radial-gradient(circle at 50% 50%, rgba(14, 89, 242, 0.2) 0%, rgba(9, 13, 22, 0) 70%),
                linear-gradient(135deg, #0a101f 0%, #0d1527 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.login-brand-glow-backdrop {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(14, 89, 242, 0.4) 0%, rgba(123, 47, 247, 0.1) 70%);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.login-brand-logo-img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(14, 89, 242, 0.4));
}

.login-brand-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-brand-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
    opacity: 0.8;
}

.login-right-form-panel {
    background: rgba(13, 19, 34, 0.4);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.login-form-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.login-form-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

/* Seamless & Clean Pill Input Boxes */
html[data-theme="dark"] .input-group-pill,
.input-group-pill {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50px !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
}

html[data-theme="dark"] .input-group-pill:focus-within,
.input-group-pill:focus-within {
    border-color: #0E59F2 !important;
    box-shadow: 0 0 0 3px rgba(14, 89, 242, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .input-group-pill .input-group-text,
.input-group-pill .input-group-text {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    padding: 10px 8px !important;
}

html[data-theme="dark"] .input-group-pill .form-control,
html[data-theme="dark"] .input-group-pill .login-input-control,
.input-group-pill .form-control,
.input-group-pill .login-input-control {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #ffffff !important;
    padding: 10px 8px !important;
    font-size: 0.875rem !important;
}

html[data-theme="dark"] .input-group-pill .form-control:focus,
html[data-theme="dark"] .input-group-pill .login-input-control:focus,
.input-group-pill .form-control:focus,
.input-group-pill .login-input-control:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.login-remember-check {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.login-submit-btn,
.btn-pill-primary {
    background: linear-gradient(135deg, #0E59F2 0%, #0284C7 100%) !important;
    background-color: #0E59F2 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 24px rgba(14, 89, 242, 0.35) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.login-submit-btn span,
.btn-pill-primary span {
    color: #FFFFFF !important;
}

.login-submit-btn:hover,
.btn-pill-primary:hover {
    background: linear-gradient(135deg, #0B45BD 0%, #0274B3 100%) !important;
    background-color: #0B45BD !important;
    color: #FFFFFF !important;
    box-shadow: 0 12px 28px rgba(14, 89, 242, 0.5) !important;
    transform: translateY(-1px) !important;
}

.login-submit-btn:active,
.btn-pill-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 14px rgba(14, 89, 242, 0.3) !important;
}

.login-submit-btn:disabled,
.btn-pill-primary:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ==========================================================================
   13. COMPREHENSIVE DARK THEME COLOR SYSTEM
   ========================================================================== */

html[data-theme="dark"],
[data-theme="dark"] {
    --bs-body-bg: #090e1a;
    --bs-card-bg: #111a2e;
    --bs-border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .dashboard-main {
    background-color: #090e1a !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .sidebar {
    background-color: #0d1322 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .navbar-header {
    background-color: #0d1322 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .card,
[data-theme="dark"] .card {
    background-color: #111a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .border-light,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-light,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white {
    background-color: #111a2e !important;
}

html[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Dark Mode Typography Contrast */
html[data-theme="dark"] .text-primary-light,
[data-theme="dark"] .text-primary-light,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .text-secondary-light,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary-light,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .metric-value,
[data-theme="dark"] .metric-value {
    color: #ffffff !important;
}

html[data-theme="dark"] .form-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: #131c2e !important;
    color: #f1f5f9 !important;
}

/* Dark Mode Pill Badges Contrast */
html[data-theme="dark"] .bg-primary-100, [data-theme="dark"] .bg-primary-100 {
    background: rgba(14, 89, 242, 0.2) !important;
}
html[data-theme="dark"] .text-primary-600, [data-theme="dark"] .text-primary-600,
html[data-theme="dark"] .text-primary-700, [data-theme="dark"] .text-primary-700 {
    color: #60a5fa !important;
}

html[data-theme="dark"] .bg-success-100, [data-theme="dark"] .bg-success-100 {
    background: rgba(16, 185, 129, 0.2) !important;
}
html[data-theme="dark"] .text-success-600, [data-theme="dark"] .text-success-600,
html[data-theme="dark"] .text-success-700, [data-theme="dark"] .text-success-700 {
    color: #34d399 !important;
}

html[data-theme="dark"] .bg-warning-100, [data-theme="dark"] .bg-warning-100 {
    background: rgba(245, 158, 11, 0.2) !important;
}
html[data-theme="dark"] .text-warning-600, [data-theme="dark"] .text-warning-600,
html[data-theme="dark"] .text-warning-700, [data-theme="dark"] .text-warning-700 {
    color: #fbbf24 !important;
}

html[data-theme="dark"] .bg-danger-100, [data-theme="dark"] .bg-danger-100 {
    background: rgba(239, 68, 68, 0.2) !important;
}
html[data-theme="dark"] .text-danger-600, [data-theme="dark"] .text-danger-600,
html[data-theme="dark"] .text-danger-700, [data-theme="dark"] .text-danger-700 {
    color: #f87171 !important;
}

html[data-theme="dark"] .bg-info-100, [data-theme="dark"] .bg-info-100 {
    background: rgba(14, 165, 233, 0.2) !important;
}
html[data-theme="dark"] .text-info-600, [data-theme="dark"] .text-info-600,
html[data-theme="dark"] .text-info-700, [data-theme="dark"] .text-info-700 {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .bg-purple-100, [data-theme="dark"] .bg-purple-100 {
    background: rgba(139, 92, 246, 0.2) !important;
}
html[data-theme="dark"] .text-purple-600, [data-theme="dark"] .text-purple-600,
html[data-theme="dark"] .text-purple-700, [data-theme="dark"] .text-purple-700 {
    color: #c084fc !important;
}

/* ==========================================================================
   14. LIGHT THEME POLISH OVERRIDES
   ========================================================================== */

html[data-theme="light"] body,
html[data-theme="light"] .dashboard-main {
    background-color: #f8fafc !important;
    color: #0f172a;
}

html[data-theme="light"] .sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .navbar-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}