/* =========================================
   STYLE UMUM ADMIN & HALAMAN LOGIN
   Lokasi: public/assets/css/style.css
========================================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
}

/* --- HALAMAN LOGIN --- */
body.login-page {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 35px 30px;
    box-shadow: 0 8px 24px rgba(14, 116, 144, 0.12);
}

.login-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    margin-bottom: 6px;
}

.login-subtitle {
    color: #334155;
    font-size: 14px;
    text-align: center;
    margin-bottom: 26px;
}

.login-box .form-label {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.login-box .form-control {
    background-color: #ffffff;
    border: 1px solid #93c5fd;
    color: #0f172a;
    padding: 10px 14px;
    border-radius: 8px;
}

.btn-login {
    background-color: #0284c7;
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 11px;
    border-radius: 8px;
    margin-top: 8px;
}

.btn-login:hover {
    background-color: #0369a1;
    color: #ffffff;
}

/* --- NAVBAR ADMIN (BIRU MUDA LEMBUT) --- */
.navbar-admin {
    background-color: #e0f2fe !important; /* Biru muda */
    border-bottom: 2px solid #bae6fd;
    padding: 10px 0;
}
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }


.navbar-admin .navbar-brand {
    color: #0369a1 !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.navbar-admin .nav-link {
    color: #0f172a !important; /* Teks gelap agar kontras terbaca */
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-admin .nav-link:hover,
.navbar-admin .nav-link.active {
    background-color: #bae6fd;
    color: #0369a1 !important;
    font-weight: 600;
}

/* --- FOOTER ADMIN --- */
.footer-admin {
    background-color: #e0f2fe;
    border-top: 1px solid #bae6fd;
    color: #334155;
    font-size: 13px;
}

/* --- CARD DASHBOARD & KONTEN --- */
.card-admin {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* =========================================
   PERBAIKAN TAMPILAN TOOLBAR SUMMERNOTE BS5
========================================= */
.note-editor.note-frame {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
}

.note-editor .note-toolbar {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.note-editor .note-btn-group {
    display: inline-flex !important;
    flex-wrap: wrap !important;
}

.note-editor .note-btn {
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.note-editor .note-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.note-editor .note-btn i,
.note-editor .note-btn span {
    color: #1e293b !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* =========================================
   MEMUNCULKAN IKON & LABEL TOOLBAR SUMMERNOTE
========================================= */
.note-editor .note-toolbar {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
}

.note-editor .note-btn {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    min-width: 28px;
}

.note-editor .note-btn:hover {
    background-color: #e0f2fe !important;
    border-color: #0284c7 !important;
}
/* Dropdown Multi-Level pada Navbar Admin */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -4px;
    margin-left: 0;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-submenu > a::after {
    content: "▸";
    float: right;
    margin-left: 8px;
}

/* Ganti ikon font yang kosong dengan simbol/teks yang jelas */
.note-icon-bold::before { content: "B"; font-weight: 800; font-style: normal; }
.note-icon-italic::before { content: "I"; font-style: italic; font-family: Georgia, serif; }
.note-icon-underline::before { content: "U"; text-decoration: underline; font-style: normal; }
.note-icon-strikethrough::before { content: "S"; text-decoration: line-through; font-style: normal; }
.note-icon-eraser::before { content: "Clear"; font-style: normal; }
.note-icon-font::before { content: "A"; font-style: normal; }
.note-icon-unorderedlist::before { content: "• List"; font-style: normal; }
.note-icon-orderedlist::before { content: "1. List"; font-style: normal; }
.note-icon-align-left::before { content: "Align"; font-style: normal; }
.note-icon-table::before { content: "Table"; font-style: normal; }
.note-icon-link::before { content: "Link"; font-style: normal; }
.note-icon-picture::before { content: "Img"; font-style: normal; }
.note-icon-video::before { content: "Video"; font-style: normal; }
.note-icon-minus::before { content: "HR"; font-style: normal; }
.note-icon-code::before { content: "</> HTML"; font-style: normal; }
.note-icon-arrows-alt::before { content: "Full"; font-style: normal; }
.note-icon-question::before { content: "?"; font-style: normal; }
.note-icon-magic::before { content: "Style"; font-style: normal; }
.note-icon-caret::before { content: " ▾"; font-style: normal; }
