/* =========================================
   FUTURISTIC NAVBAR
========================================= */

#dashboardNAV {
    min-height: 84px;
}

body:not(.cbfunker-embed-mode) .page-content {
    padding-top: .85rem;
}

.navbar {

    background: var(--cb-navbar-bg) !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;

    backdrop-filter: blur(18px);
    transition: padding .18s ease, box-shadow .18s ease, backdrop-filter .18s ease, border-color .18s ease;

    border-bottom:
        1px solid var(--cb-navbar-border);

    box-shadow:
        var(--cb-navbar-shadow);

    padding:
        .6rem 1rem;
}

@media (max-width: 991px) {
    #dashboardNAV {
        min-height: 76px;
    }

    body:not(.cbfunker-embed-mode) .page-content {
        padding-top: .7rem;
    }
}

/* =========================================
   LOGO
========================================= */

.navbar-brand img {

    width: 60px;
    display: block;

    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, .2));

    transition: all .25s ease;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    flex: 0 0 auto;
    transition: opacity .18s ease, transform .18s ease, width .18s ease, margin .18s ease;
}

.navbar.is-scrolled .navbar-brand {
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    transform: scale(.92);
}

.navbar-brand img:hover {

    transform:
        scale(1.05) rotate(-2deg);
}

/* =========================================
   BUTTONS
========================================= */

.navbar .btn {

    border-radius: 14px;

    font-weight: 600;

    transition: all .2s ease;

    border:
        1px solid var(--cb-navbar-btn-border);

    backdrop-filter: blur(10px);
}

/* =========================================
   HOVER
========================================= */

.navbar .btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(255, 255, 255, .08);
}

.navbar,
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle,
.navbar .dropdown-item,
.navbar .navbar-text {
    color: var(--cb-body-text);
}

.dropdown-menu,
.dropdown-menu-dark,
.offcanvas-header,
.offcanvas-body {
    background: var(--cb-dropdown-bg) !important;
    color: var(--cb-dropdown-color) !important;
    border: 1px solid var(--cb-surface-border);
}

.dropdown-item {
    color: var(--cb-dropdown-color);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--cb-dropdown-hover);
    color: var(--cb-dropdown-color);
}

.card {
    background: var(--cb-card-bg);
    border-color: var(--cb-card-border);
    box-shadow: var(--cb-card-shadow);
}

.form-control,
.form-select,
.nav-status-select {
    background: var(--cb-input-bg) !important;
    border-color: var(--cb-input-border) !important;
    color: var(--cb-input-text) !important;
}

.form-control::placeholder {
    color: var(--cb-muted-text);
}

.form-select option {
    color: #0f172a;
}

[data-cbf-theme="dark"] .form-select option {
    color: #e2e8f0;
    background: #0f172a;
}

/* =========================================
   SUCCESS
========================================= */

.navbar .btn-success {

    background:
        linear-gradient(135deg,
            #22c55e,
            #16a34a);

    border: none;
}

/* =========================================
   PRIMARY
========================================= */

.navbar .btn-primary {

    background:
        linear-gradient(135deg,
            #2563eb,
            #1d4ed8);

    border: none;
}

/* =========================================
   WARNING
========================================= */

.navbar .btn-outline-warning {

    border:
        1px solid rgba(250, 204, 21, .4);

    color: #facc15;
}

.navbar .btn-outline-warning:hover {

    background:
        linear-gradient(135deg,
            #facc15,
            #f59e0b);

    color: #111 !important;
}

/* =========================================
   DANGER
========================================= */

.navbar .btn-danger {

    background:
        linear-gradient(135deg,
            #ef4444,
            #dc2626);

    border: none;
}

/* =========================================
   DROPDOWNS
========================================= */

.dropdown-menu {

    background:
        rgba(15, 23, 42, .96);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 18px;

    backdrop-filter: blur(16px);

    padding: .5rem;
}

/* =========================================
   DROPDOWN ITEMS
========================================= */

.dropdown-item {

    color: #fff;

    border-radius: 10px;

    transition: all .15s ease;

    margin-bottom: 2px;
}

.dropdown-item:hover {

    background:
        rgba(255, 255, 255, .08);

    color: #fff;

    transform:
        translateX(3px);
}

[data-cbf-theme="light"] .dropdown-item,
[data-cbf-theme="light"] .dropdown-item:visited,
[data-cbf-theme="light"] .dropdown-item:hover,
[data-cbf-theme="light"] .dropdown-item:focus,
[data-cbf-theme="light"] .dropdown-item:active,
[data-cbf-theme="light"] .dropdown-item.sdr-item,
[data-cbf-theme="light"] .dropdown-item.sdr-item:hover,
[data-cbf-theme="light"] .dropdown-item.sdr-item:focus,
[data-cbf-theme="light"] .dropdown-item.radio-item,
[data-cbf-theme="light"] .dropdown-item.radio-item:hover,
[data-cbf-theme="light"] .dropdown-item.radio-item:focus {
    color: #0f172a !important;
}

[data-cbf-theme="light"] .dropdown-item:hover,
[data-cbf-theme="light"] .dropdown-item:focus,
[data-cbf-theme="light"] .dropdown-item:active,
[data-cbf-theme="light"] .dropdown-item.sdr-item:hover,
[data-cbf-theme="light"] .dropdown-item.sdr-item:focus,
[data-cbf-theme="light"] .dropdown-item.radio-item:hover,
[data-cbf-theme="light"] .dropdown-item.radio-item:focus {
    background: rgba(37, 99, 235, 0.10) !important;
    transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* =========================================
   FORM CONTROLS
========================================= */

.navbar .form-control,
.navbar .form-select {

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(255, 255, 255, .08);

    color: #fff;

    border-radius: 12px;
}

.navbar .form-control:focus,
.navbar .form-select:focus {

    border-color:
        rgba(59, 130, 246, .55);

    box-shadow:
        0 0 0 .2rem rgba(59, 130, 246, .2);

    background:
        rgba(255, 255, 255, .10);

    color: #fff;
}

/* =========================================
   BADGES
========================================= */

.badge {

    box-shadow:
        0 0 10px rgba(239, 68, 68, .45);
}

/* =========================================
   TOGGLER
========================================= */

.navbar-toggler {

    border:
        1px solid rgba(255, 255, 255, .12);

    background:
        rgba(255, 255, 255, .05);

    border-radius: 12px;
}

/* =========================================
   OFFCANVAS BUTTON
========================================= */

.offcanvas-toggle {

    position: relative;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:991px) {

    .navbar-collapse {

        margin-top: 1rem;

        background:
            rgba(15, 23, 42, .96);

        border-radius: 18px;

        padding: 1rem;

        backdrop-filter: blur(20px);
    }

    .navbar .btn {

        width: 100%;
    }

    .navbar .nav-item {

        width: 100%;
    }

    .dropdown-menu {

        background:
            rgba(30, 41, 59, .96);
    }
}

/* Button Upgrade */
.sdr-btn {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
    transition: 0.3s;
}

.sdr-btn:hover {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.9);
    transform: translateY(-1px);
}

/* Dropdown Glass Look */
.sdr-dropdown {
    backdrop-filter: blur(12px);
    background: rgba(20, 20, 30, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 260px;
}

/* Items */
.sdr-item {
    transition: 0.2s;
    border-radius: 8px;
}

/* Hover Effekt */
.sdr-item:hover {
    background: rgba(13, 110, 253, 0.2);
    color: #fff;
    transform: translateX(4px);
}

/* Neon Accent fuer Funk-Style */
.sdr-item:hover::before {
    content: ">> ";
    color: #00ffcc;
}

/* Navigation Cleanup */
.navbar {
    --nav-line: rgba(255, 255, 255, .12);
    --nav-soft: rgba(255, 255, 255, .08);
    --nav-text: #eef5ff;
    --nav-muted: #a9b7c8;
    background: var(--cb-navbar-bg) !important;
    padding: .55rem .85rem;
}

[data-cbf-theme="light"] .navbar {
    --nav-line: rgba(148, 163, 184, .28);
    --nav-soft: rgba(255, 255, 255, .72);
    --nav-text: #0f172a;
    --nav-muted: #64748b;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: gap .18s ease;
}

.navbar-collapse {
    align-items: center;
}

.navbar-nav {
    align-items: center;
    gap: .35rem;
    margin-bottom: 0;
}

.main-nav {
    flex-wrap: wrap;
    align-content: center;
    margin: 0;
    padding-left: 0;
}

.nav-link-btn,
.navbar .btn.nav-link-btn {
    min-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 999px;
    border: 1px solid var(--nav-line);
    background: var(--nav-soft);
    color: var(--nav-text) !important;
    font-size: .86rem;
    font-weight: 650;
    padding: .4rem .76rem;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    transition: min-height .18s ease, height .18s ease, padding .18s ease, font-size .18s ease, gap .18s ease, border-radius .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.navbar.is-scrolled .nav-link-btn,
.navbar.is-scrolled .navbar .btn.nav-link-btn {
    min-height: 30px;
    height: 30px;
    font-size: .72rem;
    padding: .18rem .48rem;
    gap: .24rem;
}

.nav-link-btn:hover,
.navbar .btn.nav-link-btn:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

[data-cbf-theme="light"] .nav-link-btn:hover,
[data-cbf-theme="light"] .navbar .btn.nav-link-btn:hover {
    background: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    color: inherit !important;
}

.nav-home {
    background: #1f7a4d !important;
}

.nav-menu {
    background: #1e5f8f !important;
}

.nav-station-select {
    min-height: 40px;
    height: 40px;
    width: 250px;
    max-width: 250px;
    border-radius: 999px;
    border: 1px solid var(--nav-line);
    background-color: #1e5f8f;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    padding: .35rem 2rem .35rem .78rem;
    box-shadow: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: min-height .18s ease, height .18s ease, width .18s ease, max-width .18s ease, font-size .18s ease, padding .18s ease;
}

.navbar.is-scrolled .nav-station-select {
    min-height: 30px;
    height: 30px;
    width: 188px;
    max-width: 188px;
    font-size: .7rem;
    padding: .14rem 1.55rem .14rem .52rem;
}

.nav-station-select:focus {
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 0 0 .18rem rgba(14, 165, 233, .18);
}

.nav-mini-chat-link {
    position: relative;
}

.nav-mini-chat-badge {
    position: absolute;
    top: -1px;
    right: -5px;
    min-width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid rgba(15, 23, 42, 0.92);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
    align-items: center;
    justify-content: center;
    display: inline-flex;
    font-size: 0;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    pointer-events: none;
}

.nav-mini-chat-badge.has-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
    font-size: 0.68rem;
}

.nav-mini-chat-badge.has-mention {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

[data-cbf-theme="light"] .nav-mini-chat-badge {
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.nav-feature {
    background: #514392 !important;
}

.nav-log {
    background: linear-gradient(135deg, #f59e0b, #b45309) !important;
    border-color: rgba(251, 191, 36, .75) !important;
    color: #fff7ed !important;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), 0 10px 24px rgba(180, 83, 9, .28);
}

.nav-action {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    border-color: rgba(248, 113, 113, .75) !important;
    color: #fff1f2 !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, .25), 0 10px 24px rgba(185, 28, 28, .3);
}

.nav-log:hover,
.nav-action:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 28px rgba(0, 0, 0, .34);
}

.nav-sdr {
    background: #155e75 !important;
}

.nav-points {
    background: linear-gradient(135deg, #facc15, #ea580c) !important;
    border-color: rgba(254, 240, 138, .8) !important;
    color: #1f2937 !important;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, .26), 0 10px 24px rgba(234, 88, 12, .28);
    font-weight: 800;
}

.nav-points:hover {
    filter: brightness(1.04);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .24), 0 12px 28px rgba(0, 0, 0, .28);
}

[data-cbf-theme="light"] .nav-log:hover,
[data-cbf-theme="light"] .nav-action:hover,
[data-cbf-theme="light"] .nav-points:hover {
    filter: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

[data-cbf-theme="light"] .nav-link-btn:focus,
[data-cbf-theme="light"] .nav-link-btn:active,
[data-cbf-theme="light"] .navbar .btn.nav-link-btn:focus,
[data-cbf-theme="light"] .navbar .btn.nav-link-btn:active,
[data-cbf-theme="light"] .nav-log:focus,
[data-cbf-theme="light"] .nav-log:active,
[data-cbf-theme="light"] .nav-action:focus,
[data-cbf-theme="light"] .nav-action:active,
[data-cbf-theme="light"] .nav-points:focus,
[data-cbf-theme="light"] .nav-points:active {
    background: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    color: inherit !important;
}

[data-cbf-theme="light"] .nav-home {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    color: #14532d !important;
    border-color: rgba(34, 197, 94, .28) !important;
}

[data-cbf-theme="light"] .nav-menu {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
    color: #1e3a8a !important;
    border-color: rgba(59, 130, 246, .28) !important;
}

[data-cbf-theme="light"] .nav-station-select {
    background-color: #dbeafe;
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, .28);
}

[data-cbf-theme="light"] .nav-feature {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important;
    color: #5b21b6 !important;
    border-color: rgba(124, 58, 237, .24) !important;
}

[data-cbf-theme="light"] .nav-sdr {
    background: linear-gradient(135deg, #ccfbf1, #a5f3fc) !important;
    color: #155e75 !important;
    border-color: rgba(8, 145, 178, .26) !important;
}

[data-cbf-theme="light"] .nav-log {
    color: #78350f !important;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .18), 0 10px 20px rgba(180, 83, 9, .14);
}

[data-cbf-theme="light"] .nav-action {
    color: #7f1d1d !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, .16), 0 10px 20px rgba(185, 28, 28, .14);
}

[data-cbf-theme="light"] .nav-points {
    color: #7c2d12 !important;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, .18), 0 10px 20px rgba(234, 88, 12, .14);
}

.nav-new-badge {
    font-size: .58rem;
    letter-spacing: .02em;
}

.dropdown-menu {
    min-width: 270px;
    max-height: min(76vh, 620px);
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

[data-cbf-theme="light"] .dropdown-menu {
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
}

.dropdown-header {
    color: var(--nav-muted);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nav-auth,
.nav-user-tools {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-auth {
    flex-wrap: nowrap;
}

.nav-auth-form {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-auth-list {
    margin: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: nowrap;
}

.nav-status-select {
    width: 155px;
}

.nav-status-wide {
    width: 190px;
}

.navbar.is-scrolled .nav-status-select {
    width: 122px;
}

.navbar.is-scrolled .nav-status-wide {
    width: 150px;
}

@media (min-width: 992px) {
    #dashboardNAV {
        min-height: 70px;
    }

    body:not(.cbfunker-embed-mode) .page-content {
        padding-top: 1rem;
    }

    #dashboardNAV:has(.navbar.is-scrolled) {
        min-height: 42px;
    }

    .navbar.is-scrolled {
        padding: 0 .48rem;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
        backdrop-filter: blur(22px);
    }

    .navbar.is-scrolled .container-fluid {
        gap: .3rem;
        min-height: 42px;
    }

    .navbar.is-scrolled .nav-auth,
    .navbar.is-scrolled .nav-user-tools,
    .navbar.is-scrolled .nav-auth-list,
    .navbar.is-scrolled .navbar-nav {
        gap: .18rem;
        min-height: 30px;
        align-items: center;
    }
}

.navbar .form-control,
.navbar .form-select {
    min-height: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: .86rem;
    box-sizing: border-box;
}

.sdr-dropdown {
    min-width: 300px;
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: .9rem;
    }

    .navbar-collapse {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-width: 0;
        gap: .75rem;
    }

    .main-nav {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        align-self: center;
    }

    .main-nav > .nav-item,
    .nav-user-tools > .nav-item {
        display: flex;
        align-items: center;
    }

    .nav-auth-form {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
        margin: 0 0 0 auto;
        padding: 0;
        margin-left: 1rem;
        background: transparent;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
        justify-self: end;
    }

    .nav-auth-form:has(.nav-user-tools) {
        padding: .2rem .2rem .2rem 1.15rem;
        border-left: 1px solid rgba(255, 255, 255, .12);
        background: transparent;
        border-radius: 999px;
        box-shadow: none;
    }

    .nav-user-tools {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: .5rem;
    }

    .nav-auth-list,
    .main-nav,
    .nav-user-tools {
        align-items: center;
        align-self: center;
    }

    .nav-auth-list {
        justify-content: flex-end;
        width: max-content;
        margin-left: auto;
    }

    [data-cbf-theme="light"] .nav-auth-form:has(.nav-user-tools) {
        border-left-color: rgba(148, 163, 184, .28);
        background: transparent;
        box-shadow: none;
    }

    .nav-user-tools > .nav-item {
        margin-right: 0 !important;
    }

    .nav-mobile-station {
        flex: 0 0 250px;
    }
}

.sdr-item:hover::before {
    content: "";
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: .8rem;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 16px;
        padding: .9rem;
        display: grid;
        gap: .85rem;
    }

    [data-cbf-theme="light"] .navbar-collapse {
        border-color: rgba(148, 163, 184, .24);
        background: rgba(255, 255, 255, .84);
    }

    .nav-mobile-section-label {
        display: block;
        margin: .15rem 0 .2rem;
        font-size: .74rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--nav-muted);
        font-weight: 700;
    }

    .navbar-nav,
    .main-nav,
    .nav-auth,
    .nav-user-tools {
        width: 100%;
        align-items: stretch;
    }

    .main-nav {
        gap: .45rem;
    }

    .main-nav > .nav-item + .nav-item {
        margin-top: 0;
    }

    .navbar .nav-item,
    .nav-link-btn,
    .navbar .btn.nav-link-btn,
    .nav-status-select,
    .nav-status-wide {
        width: 100%;
    }

    .nav-auth {
        margin-top: .75rem;
    }

    .nav-user-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
        margin-top: .15rem;
    }

    .nav-user-tools > .nav-item {
        margin-right: 0 !important;
    }

    .nav-mobile-station,
    .nav-mobile-points,
    .nav-mobile-profile,
    .nav-mobile-logout {
        grid-column: 1 / -1;
    }

.nav-settings-group .dropdown-toggle {
    justify-content: flex-start;
}

.nav-settings-group .dropdown-toggle::after {
    margin-left: auto;
}

    .dropdown-menu {
        max-height: 55vh;
    }

    .nav-settings-group {
        display: block;
        width: 100%;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .nav-settings-group .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        margin-top: .35rem;
    }
}
