/* EldoHub theme for space (matches eldohub.co.ke). Loaded after adminlte.min.css on every page.
   Palette: primary #008E80 · primary-dark #0C3B2E · secondary #D4AF37. Fonts are self-hosted (OFL). */
@font-face { font-family: "DM Sans"; src: url("../fonts/eldohub/DMSans.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/eldohub/Montserrat.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root { --eh-primary: #008E80; --eh-dark: #0C3B2E; --eh-gold: #D4AF37; --eh-gold-dark: #B89024; --eh-muted: #F3F8F6; }

body, .btn, .form-control, .main-sidebar, .content-wrapper, .card, .table { font-family: "DM Sans", "Source Sans Pro", sans-serif; }
h1, h2, h3, h4, .login-logo, .brand-text, .content-header h1 { font-family: "Montserrat", sans-serif; letter-spacing: -0.01em; }

a, .text-primary, .btn-link { color: var(--eh-primary); }
a:hover, .btn-link:hover { color: var(--eh-dark); }
.btn-primary, .bg-primary, .badge-primary, .page-item.active .page-link,
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--eh-primary) !important; border-color: var(--eh-primary) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: var(--eh-dark) !important; border-color: var(--eh-dark) !important; }
.btn-warning, .bg-warning, .badge-warning { background-color: var(--eh-gold) !important; border-color: var(--eh-gold) !important; color: var(--eh-dark) !important; }
.btn-info, .bg-info, .badge-info { background-color: #0E6E64 !important; border-color: #0E6E64 !important; }
.form-control:focus { border-color: var(--eh-primary); box-shadow: 0 0 0 0.2rem rgba(0, 142, 128, 0.2); }
.card-primary:not(.card-outline) > .card-header { background-color: var(--eh-primary); }
.card-primary.card-outline { border-top-color: var(--eh-primary); }
.page-link { color: var(--eh-primary); }

/* sidebar and top bar */
[class*="sidebar-dark-"], .main-sidebar { background: linear-gradient(180deg, var(--eh-dark), #08281F) !important; }
[class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active { background-color: var(--eh-primary) !important; color: #fff !important; }
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active { background-color: rgba(212, 175, 55, 0.18) !important; color: #fff !important; }
.brand-link { border-bottom-color: rgba(212, 175, 55, 0.35) !important; }
.main-header.navbar { border-bottom: 3px solid var(--eh-gold); }

/* login / register / reset pages */
body.login-page, body.register-page { background: linear-gradient(135deg, #0C3B2E 0%, #0C3B2E 45%, #008E80 100%) !important; }
.login-logo, .login-logo a, .register-logo a { color: #fff !important; }
.login-card-body .btn-primary, .register-card-body .btn-primary { border-radius: 999px; font-weight: 600; }

/* sidebar text must read on the dark green */
[class*="sidebar-dark-"] .nav-sidebar .nav-link, [class*="sidebar-dark-"] .nav-sidebar .nav-link p,
[class*="sidebar-dark-"] .nav-sidebar .nav-link i, .sidebar .user-panel .info a, .sidebar .user-panel .info { color: rgba(255, 255, 255, 0.88) !important; }
[class*="sidebar-dark-"] .nav-sidebar .nav-link:hover { background-color: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }
[class*="sidebar-dark-"] .nav-header { color: var(--eh-gold) !important; }
.sidebar .form-control-sidebar, .sidebar .btn-sidebar { background-color: rgba(255, 255, 255, 0.92) !important; }
/* the sidebar is AdminLTE's "light" variant painted green above, so its text needs the same treatment */
.main-sidebar .nav-sidebar .nav-link, .main-sidebar .nav-sidebar .nav-link p, .main-sidebar .nav-sidebar .nav-link i,
.main-sidebar .user-panel .info, .main-sidebar .user-panel .info a { color: rgba(255, 255, 255, 0.9) !important; }
.main-sidebar .nav-sidebar .nav-link:hover { background-color: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }
.main-sidebar .nav-sidebar > .nav-item > .nav-link.active { background-color: var(--eh-primary) !important; color: #fff !important; }
.main-sidebar .nav-treeview > .nav-item > .nav-link.active { background-color: rgba(212, 175, 55, 0.22) !important; }
