/* ============================================================
   BAKELEARN JAZZMIN THEME - PINK & BLUE
============================================================ */

/* ------------------------------------------------------------
   PRIMARY COLORS
------------------------------------------------------------ */

:root {
    --bakelearn-pink: #ff6b9d;
    --bakelearn-pink-dark: #e5557a;
    --bakelearn-pink-light: #ffe4ee;
    --bakelearn-blue: #59b5f7;
    --bakelearn-blue-dark: #3d8ec9;
    --bakelearn-blue-light: #d6edff;
}

/* ------------------------------------------------------------
   NAVBAR - PINK
------------------------------------------------------------ */

.navbar-pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8aae 100%) !important;
    border-bottom: 2px solid #e5557a !important;
    box-shadow: 0 2px 15px rgba(255, 107, 157, 0.3) !important;
}

.navbar-pink .navbar-brand {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-pink .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.navbar-pink .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.navbar-pink .dropdown-menu {
    border: 1px solid #ff6b9d;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.15);
}

/* ------------------------------------------------------------
   SIDEBAR - BLUE
------------------------------------------------------------ */

.sidebar-light-blue {
    background: linear-gradient(180deg, #f0f9ff 0%, #e3f2fd 100%) !important;
    border-right: 1px solid #59b5f7 !important;
}

.sidebar-light-blue .nav-link {
    color: #2c3e50 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-light-blue .nav-link:hover {
    background: rgba(89, 181, 247, 0.15) !important;
    color: #59b5f7 !important;
}

.sidebar-light-blue .nav-link.active {
    background: rgba(89, 181, 247, 0.2) !important;
    color: #59b5f7 !important;
    font-weight: 600;
}

.sidebar-light-blue .nav-link i {
    color: #59b5f7 !important;
}

.sidebar-light-blue .nav-header {
    color: #ff6b9d !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ------------------------------------------------------------
   BUTTONS - PINK & BLUE
------------------------------------------------------------ */

.btn-pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8aae 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-pink:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4) !important;
}

.btn-info-blue {
    background: linear-gradient(135deg, #59b5f7 0%, #7ec8f9 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(89, 181, 247, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-info-blue:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(89, 181, 247, 0.4) !important;
}

/* ------------------------------------------------------------
   ACCENT - PINK
------------------------------------------------------------ */

.accent-pink .nav-link.active {
    background: rgba(255, 107, 157, 0.1) !important;
    color: #ff6b9d !important;
    border-left: 3px solid #ff6b9d !important;
}

.accent-pink .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #ff6b9d !important;
}

/* ------------------------------------------------------------
   DASHBOARD CARDS
------------------------------------------------------------ */

.card {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8aae 100%) !important;
    color: #ffffff !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem !important;
}

/* ------------------------------------------------------------
   STATS CARDS
------------------------------------------------------------ */

.small-box {
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.small-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.small-box.bg-pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8aae 100%) !important;
}

.small-box.bg-blue {
    background: linear-gradient(135deg, #59b5f7 0%, #7ec8f9 100%) !important;
}

.small-box .icon {
    opacity: 0.3 !important;
}

/* ------------------------------------------------------------
   TABLES
------------------------------------------------------------ */

.table thead th {
    background: linear-gradient(135deg, #59b5f7 0%, #7ec8f9 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 12px 15px !important;
}

.table tbody tr:hover {
    background: rgba(255, 107, 157, 0.05) !important;
}

/* ------------------------------------------------------------
   FORMS
------------------------------------------------------------ */

.form-control:focus {
    border-color: #ff6b9d !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25) !important;
}

.form-control {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 15px !important;
}

/* ------------------------------------------------------------
   BADGES
------------------------------------------------------------ */

.badge-pink {
    background: #ff6b9d !important;
    color: #ffffff !important;
}

.badge-blue {
    background: #59b5f7 !important;
    color: #ffffff !important;
}

/* ------------------------------------------------------------
   LOGIN PAGE
------------------------------------------------------------ */

.login-page {
    background: linear-gradient(135deg, #ff6b9d 0%, #59b5f7 100%) !important;
}

.login-box {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    padding: 30px !important;
}

.login-box .login-box-body {
    border-radius: 20px !important;
}

.login-box .btn-primary {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8aae 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.login-box .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4) !important;
}

/* ------------------------------------------------------------
   CUSTOM SCROLLBAR
------------------------------------------------------------ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d 0%, #59b5f7 100%) !important;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e5557a 0%, #3d8ec9 100%) !important;
}

/* ------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 768px) {
    .navbar-pink {
        background: linear-gradient(135deg, #ff6b9d 0%, #e5557a 100%) !important;
    }
    
    .sidebar-light-blue {
        background: #ffffff !important;
    }
}


/* ============================================================
   FORCE WHITE ADMIN BACKGROUND  (added per request)
   Keeps the admin background white even if the browser/phone
   is set to dark mode, and cleans up the content area.
   ============================================================ */
html[data-bs-theme="dark"] { color-scheme: light; }
html[data-bs-theme="dark"] body {
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
}

/* Main background + content area white */
body,
.wrapper,
.content-wrapper {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Cards / boxes on white */
.card,
.main-card,
.box,
.small-box .inner {
    background-color: #ffffff !important;
}

/* Login page background white with the logo on top */
.login-page,
body.login-page {
    background: #ffffff !important;
}
/* Login logo — target every selector Jazzmin/AdminLTE may use, with high
   specificity + !important to beat any inline width/height on the <img>. */
.login-page .login-logo img,
.login-box .login-logo img,
.login-logo img,
.site-logo img,
.login-logo a img,
img.login-brand-img,
.login-card-body img,
body.login-page img.brand-image,
.login-logo .brand-image {
    max-height: 72px !important;
    max-width: 240px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}
/* Constrain the logo container itself so a large image can't stretch it */
.login-logo {
    line-height: 1 !important;
    margin-bottom: 12px !important;
}
/* Sidebar brand logo — fit neatly in the compact brand bar */
.main-header .brand-image,
.brand-link .brand-image,
.brand-link img.brand-image,
.main-sidebar .brand-image {
    max-height: 34px !important;
    max-width: 34px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin-right: 8px !important;
    margin-top: -2px !important;
    opacity: 1 !important;
    border-radius: 6px;
}
.brand-link {
    display: flex !important;
    align-items: center !important;
}
.brand-link .brand-text {
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Keep the light sidebar clean */
.main-sidebar.sidebar-light-blue {
    background-color: #ffffff !important;
}


/* ============================================================
   LOGIN LOGO DEDUPE + SIZE
   The login page extends registration/base.html (NOT base_site.html),
   so only this custom_css file + JAZZMIN_SETTINGS affect it. Jazzmin
   renders TWO <img> in .login-logo only when login_logo_dark is set;
   with login_logo_dark=None there is one. This CSS is a belt-and-braces
   guard: size the logo and hide any 2nd child regardless of tag.
   ============================================================ */
/* Dedupe only — sizing handled by the high-specificity block above. */
.login-logo > *:not(:first-child) { display: none !important; }
.login-logo img:not(:first-of-type) { display: none !important; }
