/* Admin multi-site — dark theme + lime accent (#a4f407 / rgb(164,244,7)) */
:root,
html[data-bs-theme="dark"] {
    --admin-accent: #a4f407;
    --admin-accent-rgb: 164, 244, 7;
    --admin-bg: #0a0a0a;
    --admin-bg-elevated: #141414;
    --admin-bg-card: #111111;
    --admin-border: rgba(164, 244, 7, 0.25);
    --admin-primary: #a4f407;
    --admin-primary-hover: #8fd600;
    --bs-primary: #a4f407;
    --bs-primary-rgb: 164, 244, 7;
    --app-main-bg: #0a0a0a;
    --app-sidebar-bg: #0a0a0a;
    --app-sidebar-menu-hover-bg: #161616;
    --app-sidebar-header-border: rgba(164, 244, 7, 0.15);
}

html[data-bs-theme="dark"],
html[data-bs-theme="dark"] body {
    background-color: #0a0a0a !important;
    color: rgba(255, 255, 255, 0.88);
}

html[data-bs-theme="dark"] .app-sidebar {
    background-color: #0a0a0a;
    border-right: 1px solid var(--admin-border);
}

html[data-bs-theme="dark"] .app-header {
    background-color: #0a0a0a;
    border-bottom: 1px solid rgba(164, 244, 7, 0.35);
}

html[data-bs-theme="dark"] .card {
    background-color: var(--admin-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .app-sidebar-menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid transparent;
    border-radius: 6.4px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html[data-bs-theme="dark"] .app-sidebar-menu-item > .menu-link:hover {
    color: #a4f407;
    background: rgba(164, 244, 7, 0.06);
    border-color: rgba(164, 244, 7, 0.2);
}

html[data-bs-theme="dark"] .app-sidebar-menu-item.active > .menu-link {
    background: #a4f407 !important;
    border: 1px solid #a4f407 !important;
    border-radius: 6.4px;
    color: #0a0a0a !important;
}

html[data-bs-theme="dark"] .app-sidebar-menu-item.active > .menu-link .menu-title,
html[data-bs-theme="dark"] .app-sidebar-menu-item.active > .menu-link .menu-icon {
    color: #0a0a0a !important;
}

html[data-bs-theme="dark"] .app-sidebar-menu-item.active > .menu-link svg,
html[data-bs-theme="dark"] .app-sidebar-menu-item.active > .menu-link svg path {
    stroke: #0a0a0a !important;
    color: #0a0a0a !important;
}

.sidebar-connected-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a4f407;
    display: inline-block;
}

/* Override conca.js menu-current / a.active — only server li.active counts */
html[data-bs-theme="dark"] .app-sidebar-menu ul li a.menu-current,
html[data-bs-theme="dark"] .app-sidebar-menu ul li a.active:not(.menu-link-force) {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .app-sidebar-menu-item:not(.active) > .menu-link {
    background: transparent !important;
    box-shadow: none !important;
}

.btn-primary {
    --bs-btn-bg: #a4f407;
    --bs-btn-border-color: #a4f407;
    --bs-btn-color: #0a0a0a;
    --bs-btn-hover-bg: #8fd600;
    --bs-btn-hover-border-color: #8fd600;
    --bs-btn-hover-color: #0a0a0a;
    --bs-btn-active-bg: #7bc200;
    --bs-btn-active-border-color: #7bc200;
}

.btn-outline-primary {
    --bs-btn-color: #a4f407;
    --bs-btn-border-color: #a4f407;
    --bs-btn-hover-bg: #a4f407;
    --bs-btn-hover-border-color: #a4f407;
    --bs-btn-hover-color: #0a0a0a;
}

.text-primary,
a.text-primary,
.footer-link.text-primary {
    color: #a4f407 !important;
}

.bg-glow-primary,
.btn-icon.bg-glow-primary {
    background: rgba(164, 244, 7, 0.12);
    color: #a4f407;
}

.form-control:focus,
.form-select:focus {
    border-color: #a4f407;
    box-shadow: 0 0 0 0.2rem rgba(164, 244, 7, 0.2);
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select {
    background-color: #141414;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

html[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: rgba(255, 255, 255, 0.88);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.badge.bg-label-primary {
    background: rgba(164, 244, 7, 0.15) !important;
    color: #a4f407 !important;
}

.site-switcher-pill {
    border: 1px solid rgba(164, 244, 7, 0.35);
    border-radius: 6.4px;
    background: rgba(164, 244, 7, 0.06);
    color: #a4f407;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.auth-main {
    background-color: #0a0a0a;
    min-height: 100vh;
}

html[data-bs-theme="dark"] .auth-card .card {
    background: #111111;
    border: 1px solid rgba(164, 244, 7, 0.2);
}

.page-link.active,
.page-item.active .page-link {
    background-color: #a4f407;
    border-color: #a4f407;
    color: #0a0a0a;
}
