/* maran.css — equivalent to assets/css/style.css custom overrides */

/* ===== Gender kleur-classes (chatters tabel) ===== */
a.man, span.man, i.man { color: #3498db; text-decoration: none; }
a.vrouw, span.vrouw, i.vrouw { color: #e91e63; text-decoration: none; }
a.stel, span.stel, i.stel { color: #ff9800; text-decoration: none; }
a.onz, span.onz, i.onz { color: #6c757d; text-decoration: none; }

/* Rij-achtergrond (tr-niveau) */
tr.man { background-color: #eaf4fd !important; }
tr.vrouw { background-color: #fdeaf0 !important; }
tr.stel { background-color: #fff8e8 !important; }
tr.onz { background-color: #f4f4f4 !important; }

/* Bootstrap's .table zet background-color + striping box-shadow rechtstreeks op elke
   <td>/<th>, wat de tr-achtergrond hierboven anders volledig aan het zicht onttrekt
   (ook zonder table-striped). Cellen forceren om de kleur van hun rij over te nemen. */
tr.man > *, tr.vrouw > *, tr.stel > *, tr.onz > * { background-color: inherit !important; }

/* CKEditor 5 floating panels (toolbar dropdowns, link balloon) boven Bootstrap modal */
.ck-body-wrapper { z-index: 10000 !important; }

/* CKEditor editable hoogte in modal */
.ck-editor__editable_inline { min-height: 350px; }

.verborgen {
    display: none !important;
}

.height850 {
    height: 850px;
    overflow-y: auto;
}

.height770 {
    height: 770px;
    overflow-y: auto;
}

.flexdiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rowcontainer {
    padding: 0;
}

/* Go-to-top button */
.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.go-to-top a {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
}

.go-to-top a:hover {
    opacity: 1;
}

/* ===== Sidebar layout ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.app-menu {
    width: 240px;
    min-width: 240px;
    background: #313a46;
    color: #9097a7;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    transition: width 0.25s, min-width 0.25s;
}

.app-menu .scrollbar {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.app-menu .scrollbar::-webkit-scrollbar {
    width: 4px;
}
.app-menu .scrollbar::-webkit-scrollbar-thumb {
    background: #4e5d6c;
    border-radius: 2px;
}

.content-page {
    margin-left: 240px;
    flex: 1;
    min-width: 0;
    padding: 16px;
    /* margin-top wordt gezet in de topbar-sectie verderop */
}

/* Logo box */
.app-menu .logo-box {
    padding: 14px 20px;
    border-bottom: 1px solid #3e4853;
    flex-shrink: 0;
}
.app-menu .logo-box img {
    max-height: 36px;
}

/* Menu list */
.app-menu .menu {
    list-style: none;
    padding: 8px 0 20px;
    margin: 0;
}
.app-menu .menu-item {
    position: relative;
}
.app-menu .menu-title {
    padding: 14px 20px 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    pointer-events: none;
}
.app-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 9px 20px;
    color: #9097a7;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.app-menu .menu-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.app-menu .menu-link:not([data-bs-toggle]):active {
    color: #38bdf8;
}
.app-menu .menu-icon {
    width: 22px;
    margin-right: 10px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.app-menu .menu-text {
    flex: 1;
}
.app-menu .menu-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.app-menu .menu-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(90deg);
}

/* Submenu */
.app-menu .sub-menu {
    list-style: none;
    padding: 2px 0 6px;
    margin: 0;
    background: rgba(0,0,0,0.12);
}
.app-menu .sub-menu .menu-link {
    padding-left: 52px;
    font-size: 0.82rem;
    padding-top: 7px;
    padding-bottom: 7px;
}

/* Top bar for mobile toggle (minimal) */
.topbar {
    background: #313a46;
    padding: 8px 16px;
    display: none;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}
.topbar .logo img {
    max-height: 30px;
}
.topbar-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    margin-right: 12px;
}

/* ===== Desktop navbar-custom (topbar) ===== */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #313a46;
    border-bottom: 1px solid #3e4853;
    z-index: 1100;
    transition: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.navbar-custom .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    background: transparent;
    position: static;
    border: none;
}
.navbar-custom .topbar-menu {
    display: flex;
    align-items: center;
}
.logo-box {
    width: 240px;
    min-width: 240px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
}
.button-toggle-menu {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9097a7;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.15s;
}
.button-toggle-menu:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.opbrengsten-box {
    border: 1px solid #4e5d6c;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 220px;
}
.opbr-label {
    font-size: 0.7rem;
    color: #9097a7;
    display: block;
    line-height: 1.2;
}
.opbr-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    display: block;
    line-height: 1.4;
}
.nav-icon-btn {
    color: #9097a7;
    text-decoration: none;
    font-size: 1rem;
    padding: 6px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.15s, background 0.15s;
}
.nav-icon-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.noti-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    padding: 2px 4px;
}
.font-18 { font-size: 1.1rem !important; }
.font-22 { font-size: 1.35rem !important; }

/* Content page moet topbar hoogte compenseren */
.content-page {
    margin-left: 240px;
    margin-top: 60px;
    flex: 1;
    min-width: 0;
    padding: 16px;
    transition: margin-left 0.25s;
}

/* ===== Sidebar collapsed state ===== */
body.sidebar-collapsed .app-menu {
    width: 60px;
    min-width: 60px;
}
body.sidebar-collapsed .app-menu .menu-text,
body.sidebar-collapsed .app-menu .menu-arrow,
body.sidebar-collapsed .app-menu .logo-box img {
    display: none;
}
body.sidebar-collapsed .app-menu .menu-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
body.sidebar-collapsed .app-menu .menu-icon {
    margin-right: 0;
}
body.sidebar-collapsed .app-menu .sub-menu {
    display: none !important;
}
body.sidebar-collapsed .navbar-custom {
    left: 0;
}
body.sidebar-collapsed .content-page {
    margin-left: 60px;
}

/* ===== Dark mode ===== */
body.dark-mode {
    background: #1e2533;
    color: #cdd3e0;
}
body.dark-mode .navbar-custom {
    background: #252d3b;
    border-color: #3a4252;
}
body.dark-mode .nav-link,
body.dark-mode .nav-link span { color: #9097a7; }
body.dark-mode .button-toggle-menu,
body.dark-mode .nav-icon-btn {
    color: #9097a7;
}
body.dark-mode .button-toggle-menu:hover,
body.dark-mode .nav-icon-btn:hover {
    background: #3a4252;
    color: #fff;
}
body.dark-mode .opbrengsten-box {
    border-color: #3a4252;
}
body.dark-mode .opbr-label { color: #9097a7; }
body.dark-mode .opbr-value { color: #e2e8f0; }
body.dark-mode .content-page { background: #1e2533; }
body.dark-mode .card {
    background: #252d3b;
    border-color: #3a4252;
    color: #cdd3e0;
}
body.dark-mode .table {
    color: #cdd3e0;
}

/* ===== Algemene tekst content-area — donkerblauw i.p.v. zwart ===== */
.content-page {
    color: #0e3a67;
}

/* ===== Overzichtstabellen — iets kleiner, Bootstrap CSS-variabelen overschrijven ===== */
/* Bootstrap 5 gebruikt --bs-table-color voor td/th, niet color-inheritance */
.content-page .table {
    --bs-table-color: #0e3a67;
    font-size: 0.95rem;
}
.content-page .table thead th {
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .app-menu {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }
    .app-menu.show {
        transform: translateX(0);
    }
    .navbar-custom {
        left: 0;
    }
    .content-page {
        margin-left: 0;
        margin-top: 60px;
    }
}
