/* =========================
   NAVBAR BASE
========================= */

.custom-navbar {
    background: #121212;
    border: 1px solid #2a2a2a;
    min-height: 88px;
    padding: 0.4rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* =========================
   BRAND
========================= */

.custom-navbar .navbar-brand {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    margin: 0;
}

/* =========================
   LINKS
========================= */

.custom-navbar .nav-link,
.custom-navbar .dropdown-toggle {
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 1rem 1.25rem !important;
}

.custom-navbar .nav-link:hover,
.custom-navbar .navbar-brand:hover {
    color: #dcdcdc !important;
}

.custom-navbar .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    border-bottom: 2px solid #ffffff;
}

/* =========================
   DESKTOP DISTRIBUTION
========================= */

.nav-distributed {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

/* =========================
   DROPDOWNS
========================= */

.custom-navbar .dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0.5rem 0;
}

.custom-navbar .dropdown-item {
    color: #ffffff;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
}

.custom-navbar .dropdown-item:hover {
    background-color: #2c2c2c;
    color: #ffffff !important;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* =========================
   TOGGLER
========================= */

.custom-toggler {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    min-width: 58px;
    min-height: 58px;
    margin-right: 0.5rem;
}

.custom-toggler .navbar-toggler-icon {
    filter: invert(1);
    width: 2rem;
    height: 2rem;
}

/* =========================
   DESKTOP HOVER
========================= */

@media (min-width: 992px) {
    .custom-navbar .nav-link:hover,
    .custom-navbar .dropdown-toggle:hover {
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 991px) {
    .custom-navbar {
        min-height: 104px;
        width: 100%;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none;
        border-right: none;
        padding: 0.5rem 0;
    }

    .custom-navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .custom-navbar .navbar-brand {
        font-size: 1.9rem;
        padding: 1.1rem 0.75rem;
    }

    .custom-navbar .navbar-toggler {
        padding: 0.9rem 1rem;
    }

    .custom-toggler {
        min-width: 62px;
        min-height: 62px;
        border-radius: 16px;
    }

    .custom-toggler .navbar-toggler-icon {
        width: 2.1rem;
        height: 2.1rem;
    }

    .custom-navbar .navbar-collapse {
        margin-top: 0.5rem;
        background-color: #181818;
        border-top: 1px solid #2f2f2f;
        padding: 0.25rem 0 0.5rem 0;
    }

    .nav-distributed {
        display: block;
        width: 100%;
    }

    .custom-navbar .nav-item {
        width: 100%;
    }

    .custom-navbar .nav-link,
    .custom-navbar .dropdown-toggle {
        display: block;
        width: 100%;
        font-size: 1.35rem;
        padding: 1.15rem 1.25rem !important;
        border-bottom: 1px solid #252525;
        border-radius: 0;
    }

    .custom-navbar .nav-link.active {
        background-color: #202020;
        border-bottom: 1px solid #252525;
    }

    .custom-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        background-color: #202020;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .custom-navbar .dropdown-item {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-bottom: 1px solid #2a2a2a;
    }
}

/* =========================
   NOTIFICATION BUBBLE
========================= */

.nav-notif-bubble {
    display: none; /* shown via JS */
    position: absolute;
    top: 6px;
    right: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e84545;
    border: 2px solid #121212; /* matches .custom-navbar background — creates the "ring" effect */
    pointer-events: none; /* don't interfere with the dropdown click */
}


/* =========================
   ELEMENTS
========================= */
.people-avatar {
    /*width: 38px;*/
    /*height: 38px;*/
    /*flex: 0 0 38px;*/
    border-radius: 8px;
    background: #16578f;
    /*color: #1a6fb5;*/
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(53, 118, 202, 0.6);
    user-select: none;
    overflow: hidden;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.people-avatar-large {
    width: 240px;
    height: 240px;
    font-size: 9rem;
    border: 4px solid #fff;
}

.people-avatar-medium {
    width: 100px;
    height: 100px;
    font-size: 3.4rem;
    border: 3px solid #fff;
}

.people-avatar-small {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;

}

.people-avatar-xs-small {
    width: 20px;
    height: 20px;
    font-size: 1.3rem;

}

.people-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   GLOBAL DARK MODE
========================= */

html.dark-mode,
html.dark-mode body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Generic page containers */
html.dark-mode main,
html.dark-mode .container,
html.dark-mode .container-fluid {
    background-color: #121212;
    color: #e0e0e0;
}

/* Cards */
html.dark-mode .card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .card-header {
    background-color: #2a2a2a !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .card-body {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Text */
html.dark-mode p,
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode span,
html.dark-mode label {
    color: #e0e0e0 !important;
}

html.dark-mode .text-muted {
    color: #9ca3af !important;
}

/* Tables */
html.dark-mode table,
html.dark-mode .table {
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

html.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #1a1a1a !important;
}

/* Forms */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select,
html.dark-mode .form-control,
html.dark-mode .form-select {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
    color: #6b7280 !important;
}

/* Buttons */
html.dark-mode .btn-secondary {
    background-color: #3a3a3a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .btn-light {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .btn-outline-secondary {
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

/* Modals */
html.dark-mode .modal-content {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

html.dark-mode .modal-header,
html.dark-mode .modal-footer {
    border-color: #333 !important;
}

html.dark-mode .btn-close {
    filter: invert(1);
}

/* List groups */
html.dark-mode .list-group-item {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

/* Badges */
html.dark-mode .badge.bg-light {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

/* Borders & dividers */
html.dark-mode .border,
html.dark-mode .border-bottom,
html.dark-mode .border-top {
    border-color: #333 !important;
}

/* Dropdown menus (non-navbar) */
html.dark-mode .dropdown-menu:not(.dropdown-menu-dark) {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

html.dark-mode .dropdown-item {
    color: #e0e0e0 !important;
}

html.dark-mode .dropdown-item:hover {
    background-color: #2c2c2c !important;
}

/* Toggle switch accent */
html.dark-mode .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}