/* ---------------------------
   GLOBAL FONT (Poppins)
---------------------------- */
body, .sidebar, .nav-link, .brand-link, .brand-text {
    font-family: 'Poppins', sans-serif !important;
}

/* ---------------------------
   SIDEBAR BASE STYLE (White)
---------------------------- */
.main-sidebar {
    background-color: #ffffff !important;
    color: #1b3c87 !important;
    border-right: 1px solid #e6e6e6;
}

/* Brand (top area) */
.main-sidebar .brand-link {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e6e6e6;
    color: #1b3c87 !important;
}

/* Brand hover */
.main-sidebar .brand-link:hover {
    background-color: #f2f6ff !important;
}

/* ---------------------------
   USER PANEL
---------------------------- */
.user-panel .info a {
    color: #1b3c87 !important;
    font-weight: 600;
}

.user-panel:hover {
    background-color: #f2f6ff !important;
}

/* ---------------------------
   SIDEBAR MENU COLORS
---------------------------- */
.nav-sidebar > .nav-item > .nav-link {
    color: #1b3c87 !important;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 8px;
}

/* Hover */
.nav-sidebar > .nav-item > .nav-link:hover {
    background-color: #e9f0ff !important;
    color: #0d2a6d !important;
}

/* Active menu (selected) */
.nav-sidebar > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #1b3c87, #2c5cff) !important;
    color: #ffffff !important;
}

/* Active icon */
.nav-sidebar > .nav-item > .nav-link.active .nav-icon {
    color: #ffffff !important;
}

/* ---------------------------
   TREEVIEW (submenu)
---------------------------- */
.nav-treeview .nav-link {
    color: #1f4ba5 !important;
    font-weight: 400;
    margin-left: 20px;
    border-radius: 6px;
}

/* Submenu hover */
.nav-treeview .nav-link:hover {
    background-color: #edf3ff !important;
    color: #0b2a64 !important;
}

/* Submenu active */
.nav-treeview .nav-link.active {
    background-color: #dbe6ff !important;
    color: #1b3c87 !important;
    font-weight: 600;
}

/* Fix icon color in white sidebar */
.nav-icon {
    color: #1b3c87 !important;
}

/* ---------------------------
   SCROLLBAR MODERN
---------------------------- */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #c5d2f5;
    border-radius: 10px;
}

/* ---------------------------
   MOBILE RESPONSIVE FIX
---------------------------- */
@media (max-width: 768px) {
    .main-sidebar {
        background-color: #ffffff !important;
    }
    .nav-sidebar > .nav-item > .nav-link {
        margin: 2px 4px;
    }
}

/* ============================
   NAVBAR MODERN RAPI
============================ */
.modern-header {
    background: #1E90FF !important;
    border-radius: 0 0 18px 18px;
    padding: 6px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.modern-brand {
    display: flex;
    align-items: center;
}

.brand-logo-modern {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 10px;
}

.brand-title {
    line-height: 1.1;
}

.brand-main {
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.brand-sub {
    font-size: 12px;
    color: #d2e9ff;
}

.btn-login-modern {
    background: #005ecb;
    color: white !important;
    padding: 6px 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.25s;
}
.btn-login-modern:hover {
    background: #0047a4;
}

/* ============================
           HERO TITLE
============================ */
.hero-title {
    margin-top: 15px;
    animation: fadeUp .8s ease;
}

.welcome-text {
    font-size: 17px;
    font-weight: 600;
    color: #004f8b;
}

.main-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #002f57;
}

.school-subtitle {
    color: #0059a8;
    font-weight: 600;
    font-size: 18px;
}

/* ============================
         MODERN FOOTER
============================ */
.modern-footer {
    background: #1E90FF;
    padding: 40px 0 28px;
    margin-top: 45px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
}

.footer-logo {
    width: 70px;
    border-radius: 12px;
}

.footer-title {
    margin-top: 12px;
    color: white;
    font-weight: 700;
}

.footer-sub {
    color: #dff1ff;
    margin-top: -5px;
}

.footer-bottom {
    margin-top: 10px;
    opacity: .9;
    color: white;
    font-size: 14px;
}

.footer-tag {
    margin-top: 4px;
    display: block;
    font-weight: 600;
    color: #c2e5ff;
}

/* Animations */
@keyframes fadeUp {
    from { transform: translateY(18px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Responsive Fixes */
@media(max-width: 768px) {
    .brand-logo-modern {
        width: 36px;
        height: 36px;
    }
    .brand-main { font-size: 16px; }
    .brand-sub { font-size: 11px; }
}

/* ==== FIX LOGO MENJADI BESAR (FINAL) ==== */
.brand-logo-modern,
.modern-header img,
.footer-logo,
.navbar-brand img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

/* khusus footer */
.footer-logo {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
}
/* Hentikan semua img global override AdminLTE */
.navbar-brand img,
.modern-header img,
.footer-logo {
    display: inline-block !important;
}

/* ==================================
   FOOTER MODERN – MATCH HEADER STYLE
================================== */

.footer-modern-simple {
    background: #1E90FF;
    padding: 35px 0 28px;
    margin-top: 50px;

    /* mirip header tapi di bagian atas */
    border-radius: 25px 25px 0 0;

    color: white;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.14);

    animation: fadeUpFooter .6s ease;
}

/* Title */
.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

/* Sub text */
.footer-sub {
    font-size: 15px;
    color: #eaf5ff;
    margin-top: -2px;
}

/* Bottom section */
.footer-bottom {
    margin-top: 15px;
    font-size: 14px;
    opacity: .9;
}

.footer-tag {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    color: #dff1ff;
}

/* Animasi */
@keyframes fadeUpFooter {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* RESPONSIVE FIX */
@media(max-width: 768px) {
    .footer-title { font-size: 20px; }
    .footer-sub { font-size: 14px; }
}

/* ================================
      FOOTER COMPACT & MINIMALIS
================================ */
.footer-compact {
    background: #1E90FF;
    padding: 15px 0 12px; /* kecil & ringkas */
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
    color: white;
    text-align: center;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.12);

    animation: footerCompactFade .4s ease;
}

/* Judul kecil */
.footer-mini-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

/* Subtext */
.footer-mini-text {
    font-size: 12px;
    color: #e8f4ff;
    opacity: .9;
}

/* Tag */
.footer-mini-tag {
    font-size: 11px;
    margin-top: 3px;
    font-weight: 600;
    color: #d7ecff;
}

/* Animasi */
@keyframes footerCompactFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-mini-title { font-size: 14px; }
    .footer-mini-text { font-size: 11px; }
    .footer-mini-tag { font-size: 10px; }
}

/* ====================================
   FOOTER ADMINLTE + WARNA HEADER
==================================== */
.footer-colored {
    background: #1E90FF !important;
    color: white !important;
    border-top: none !important;
    padding: 12px 15px;
}

/* warna teks */
.footer-colored a,
.footer-colored strong,
.footer-colored .float-right {
    color: white !important;
}

/* responsif: jarak kecil agar compact */
@media(max-width: 768px) {
    .footer-colored {
        text-align: center;
    }
    .footer-colored .float-right {
        float: none !important;
        display: block;
        margin-top: 3px;
    }
}
/* ====================================
   FIX FOOTER COLOR OVERRIDE ADMINLTE
==================================== */
footer.main-footer.footer-colored {
    background-color: #1E90FF !important;
    color: #ffffff !important;
    border: none !important;
    border-top: 0 !important;
}

footer.main-footer.footer-colored a,
footer.main-footer.footer-colored strong,
footer.main-footer.footer-colored .float-right {
    color: #ffffff !important;
}

@media(max-width: 768px) {
    footer.main-footer.footer-colored .float-right {
        float: none !important;
        display: block;
        margin-top: 4px;
        text-align: center;
    }
}


/* =============================
   MODERN FORM + CARD STYLE
   digunakan untuk Login & Daftar
============================= */

.modern-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    animation: fadeSlideIn 0.6s ease forwards;
    transform: translateY(10px);
    opacity: 0;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card-header {
    background: #1E90FF !important;
    color: #fff !important;
    padding: 18px;
}

.modern-card-header h5 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.modern-btn {
    background: #1E90FF !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s ease;
}

.modern-btn:hover {
    filter: brightness(0.9);
}

.img-form-banner {
    width: 100%;
    max-width: 350px;
    animation: fadeSlideIn 0.6s ease;
}

@media (max-width: 768px) {
    .img-form-banner {
        margin-bottom: 20px;
    }
}

/* COMPACT FORM INPUT STYLE */
.verify-table td {
    background: none !important;
    padding: 6px 0 !important;
}

.verify-table th {
    padding: 6px 0;
    font-weight: 600;
    font-size: 14px;
}

.input-box {
    width: 250px;
    height: 28px;
    border: 1px solid #000;
    border-radius: 4px;
}

.input-box-small {
    width: 80px;
    height: 28px;
    border: 1px solid #000;
    border-radius: 4px;
}

.textarea-box {
    width: 90%;
    height: 60px;
    border: 1px solid #000;
    border-radius: 4px;
}

.textarea-long {
    width: 100%;
    height: 120px;
    border: 1px solid #000;
    border-radius: 6px;
}

.note {
    font-size: 11px;
    color: #444;
    margin-top: 2px;
}
