html[data-color-theme="dark"] #top-navbar {
    background-color: #1a1d21;
}

html[data-color-theme="dark"] body.navbar-top {
    padding-top: 7.5rem;
}

html[data-color-theme="dark"] .page-header-light,
html[data-color-theme="dark"] .card {
    --card-bg: #252b31;
    background-color: var(--card-bg);
}

html[data-color-theme="dark"] .page-header-light {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-color-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    color: #fff;
}

html[data-color-theme="dark"] .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

html[data-color-theme="dark"] .text-body,
html[data-color-theme="dark"] h1,
html[data-color-theme="dark"] h2,
html[data-color-theme="dark"] h3,
html[data-color-theme="dark"] h4,
html[data-color-theme="dark"] h5,
html[data-color-theme="dark"] h6 {
    color: #ececec !important;
}

html[data-color-theme="dark"] .bg-light-custom {
    background-color: #1a1d21 !important;
}

html[data-color-theme="dark"] .bg-card {
    background-color: #252b31 !important;
}

html[data-color-theme="dark"] .form-control,
html[data-color-theme="dark"] .form-select,
html[data-color-theme="dark"] .input-group-text {
    background-color: #1a1d21;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

html[data-color-theme="dark"] .form-control:focus,
html[data-color-theme="dark"] .form-select:focus {
    background-color: #1a1d21;
    color: #fff;
    border-color: #01476b;
}

html[data-color-theme="dark"] .table {
    --table-color: #ececec;
    --table-bg: transparent;
    --table-border-color: rgba(255, 255, 255, 0.1);
    --table-striped-bg: rgba(255, 255, 255, 0.02);
    --table-hover-bg: rgba(255, 255, 255, 0.04);
    color: var(--table-color);
}

#top-navbar {
    background-color:#01476b;
    min-height: 80px; /* Sicherstellen, dass die Navbar hoch genug für das Logo ist */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#top-navbar .navbar-brand img {
    height: 60px;
    width: auto;
    max-height: none;
}

body.navbar-top {
    padding-top: 7rem;
}

/*
    .nav-link.active {
        color:#01476b;
    }
    .navbar-nav-link.active, .navbar-nav-link.show, .navbar-nav-link[aria-expanded="true"] {
        color:#01476b;
    }

    html[data-color-theme="dark"] .nav-link.active {
        color:#fff;
        background-color:#01476b;
    }

    html[data-color-theme="dark"] .navbar-nav-link.active, html[data-color-theme="dark"] .navbar-nav-link.show, html[data-color-theme="dark"] .navbar-nav-link[aria-expanded="true"] {
        color:#fff;
        background-color:#01476b;
    }

    html[data-color-theme="dark"] .btn-flat-secondary {
        color:#fff;
    }
    html[data-color-theme="dark"] .btn-white {
        color:#01476b;
    }
*/

#menu-navbar {
    background: rgba(255, 255, 255, 0.1); /* halbtransparent */
    backdrop-filter: blur(10px);          /* Weichzeichner-Effekt */
    -webkit-backdrop-filter: blur(10px);  /* Safari-Unterstützung */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* leichte Linie */
}


/*

.toolbar-icons .navbar-nav-link-icon i {
    color:#fff;
}
.toolbar-icons .navbar-nav-link-icon:hover i {
    color:#01476b;
}
.toolbar-icons .navbar-nav-link-icon:focus {
    background-color:#fff;
}
.toolbar-icons .navbar-nav-link-icon:focus i {
    color:#01476b;
}

*/

html:not([data-color-theme="dark"]) .page-header-light .btn-light,
html:not([data-color-theme="dark"]) .btn-light,
html:not([data-color-theme="dark"]) .btn-flat-light {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #333 !important;
}

html:not([data-color-theme="dark"]) .page-header-light .btn-light i,
html:not([data-color-theme="dark"]) .btn-light i,
html:not([data-color-theme="dark"]) .btn-flat-light i {
    color: #333 !important;
}

html:not([data-color-theme="dark"]) .page-header-light .btn-light:hover,
html:not([data-color-theme="dark"]) .btn-light:hover,
html:not([data-color-theme="dark"]) .btn-flat-light:hover {
    background-color: #ebebeb;
    border-color: #ccc;
}

html:not([data-color-theme="dark"]) .btn-yellow {
    color: #333 !important;
}

html:not([data-color-theme="dark"]) .btn-yellow i {
    color: #333 !important;
}

html:not([data-color-theme="dark"]) .page-header-light .btn-primary {
    color: #fff !important;
}

html:not([data-color-theme="dark"]) .page-header-light .btn-primary i {
    color: #fff !important;
}

html:not([data-color-theme="dark"]) .toolbar-icons .navbar-nav-link-icon i {
    /* alles außer dark */
    color:#fff;
}
html:not([data-color-theme="dark"]) .toolbar-icons .navbar-nav-link-icon:hover i {
    color:#01476b;
}
html:not([data-color-theme="dark"]) .toolbar-icons .navbar-nav-link-icon:focus {
    background-color:#fff;
}
html:not([data-color-theme="dark"]) .toolbar-icons .navbar-nav-link-icon:focus i {
    color:#01476b;
}


/* Nav Button: Mein BEVENT */
html:not([data-color-theme="dark"]) #button_my_bevent {
    color:#01476b!important;
}



.event_card  {
    overflow:hidden;
    width:100%;
}
.event_card .event_picture {
   transition: transform 0.2s;
   filter: grayscale(var(--image-grayscale)) opacity(var(--image-opacity));
}

.event_card:hover .event_picture {
    transform: scale(1.02);
}

.sidebar-main-resized-loading .sidebar-main {
    width: 3.5rem;
}

.sidebar-main-resized-loading .sidebar-main .sidebar-content {
    width: 3.5rem;
}

.sidebar-main.sidebar-main-resized .sidebar-resize-show,
.sidebar-main-resized-loading .sidebar-main .sidebar-resize-show {
    display: flex !important;
}

.sidebar-main.sidebar-main-resized .sidebar-resize-hide,
.sidebar-main-resized-loading .sidebar-main .sidebar-resize-hide {
    display: none !important;
}

.sidebar-main-resized-loading .sidebar-main .nav-sidebar .nav-link span {
    display: none !important;
}

.sidebar-main-resized-loading .sidebar-main .nav-sidebar .nav-item-submenu > .nav-link:after {
    display: none !important;
}

.event_card .event_title {
    /*
    color:#1f2937;
    */
}
.dark .event_card .event_title {
    /*
    color:#6db5ff;
    */
}
.event_card .text-muted .link {
    /*color:#6b7280;*/
}

.event_card .event_title:hover,
.event_card .text-muted .link:hover {
    /*color:#0962bf;*/
}

.mouse {
    cursor: pointer;
}

/* Neu fÃ¼r event_box */
.image-wrapper {
    position: relative;
    height: 360px;
    width: 100%;
    overflow: hidden;
}

.image-wrapper .foreground-image {
    position: relative;
    height: 100%;
    width: auto;
    z-index: 2;
    display: block;
    margin: 0 auto;
}

.image-wrapper .background-blur {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.1);
    z-index: 1;
}


.bvnt_participant_images .rounded-pill {
    border:1px solid #fff;
}


.bvnt_title {
    font-size:1.125rem;
    font-weight:600;
    line-height: 2;
}


/* confetti */
.confetti-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    pointer-events: none;
    z-index: 9999;
}


.confetti {
    position: absolute;
    width: 6px;
    height: 6px;
    opacity: 0.9;
    border-radius: 0px;
    animation: explode 1s forwards, fall 7s forwards 0.6s;

}

@keyframes explode {
    0% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(var(--dx), var(--dy)) rotate(180deg); }
    100% { transform: translate(var(--dx), var(--dy)) rotate(360deg); }

}

@keyframes fall {
    0% { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity:1; }
    100% { transform: translate(calc(var(--dx) + var(--wiggle)), 100vh) rotate(720deg); opacity:0; }
}

/* Smartphone-Optimierungen für den Header */
@media (max-width: 991.98px) {
    #top-navbar .container-fluid.container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    #top-navbar .navbar-brand {
        flex: 0 0 auto;
        margin-right: 0;
    }

    #top-navbar .nav.flex-row {
        margin-left: auto !important;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Sicherstellen, dass die Toolbar-Icons rechtsbündig sind */
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    /* Abstand zwischen den Icons auf Mobile etwas reduzieren falls nötig */
    #top-navbar .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Sekundäres Menü im Manager rechtsbündig auf Mobile */
    #menu-navbar .nav {
        justify-content: flex-end !important;
    }
}


/* Disable default accordion toggle icon within the filter sidebar */
/* Removed by user request - they want the toggler icons back but the filter stays open
#accordion_filter .accordion-button::after {
    display: none !important;
    background-image: none !important;
    content: none !important;
}
*/

/* Optional: restore right padding since no arrow is shown */
#accordion_filter .accordion-button {
    padding-right: 1rem; /* match left padding spacing */
}

/* Prevent filter sidebar from being affected by main sidebar resize (icon-only mode) */
/* Modified: We now support icon mode for the filter */
.sidebar-main.sidebar-main-resized #sidebar_filter_section .sidebar-resize-show {
    display: block !important;
}

.sidebar-main.sidebar-main-resized #sidebar_filter_section .sidebar-resize-hide {
    display: none !important;
}

.sidebar-main.sidebar-main-resized #sidebar_filter_section .ms-auto {
    display: none !important;
}

/* If the sidebar is resized, we want to make sure the filter remains readable if it's in the main sidebar */
/* Standard Limitless/Bootstrap behavior for resized sidebar often hides text or collapses widths */
/* We don't force display anymore as we use .sidebar-resize-hide/show classes */

/* Ensure filter content is visible even when sidebar is resized */
/* We don't force width anymore to allow icon-only mode */

/* Specific fix for the "icon-only" transformation */
.sidebar-main-resized #accordion_filter .accordion-button::after {
    position: absolute !important;
    right: 1rem !important;
    display: block !important;
}
