.fixed-table-body::-webkit-scrollbar, html::-webkit-scrollbar, body::-webkit-scrollbar .chat-list::-webkit-scrollbar, .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}
html, body, .fixed-table-body, .chat-list{
    scrollbar-width: thin; /* 可选值：auto（默认）、thin（细）、none（无） */
    scrollbar-color: #888888 #f0f0f0; /* 滚动条颜色和轨道颜色 */
}
/* 滚动条 */
.fixed-table-body:-webkit-scrollbar-thumb,html:-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, .dropdown-menu::-webkit-scrollbar-thumb, select::-webkit-scrollbar-thumb, .chat-list::-webkit-scrollbar-thumb {
    background-color: #888888;
    border-radius: 4px;
}

.dark-mode .fixed-table-body, .dark-mode .dropdown-menu, .dark-mode .chat-list {
    scrollbar-width: thin;
    scrollbar-color: #252c2fdd #2c3e50;
    /* 滚动条颜色和轨道颜色 */
}

.dark-mode select::-webkit-scrollbar {
    width: 12px;
}

.dark-mode .fixed-table-body::-webkit-scrollbar-thumb, .dark-mode .dropdown-menu::-webkit-scrollbar-thumb, .dark-mode .chat-list::-webkit-scrollbar-thumb {
    background-color: #2c3e50;
}
.dark-mode option:hover {
    border: 1px solid #2c3e50 !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    html, body{
    scrollbar-width: none;
    }
    
    /* Remove container-fluid padding on mobile */
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.navbar {
    background-color: #5a8261;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: env(safe-area-inset-top);
}
.navbar-nav .dropdown-menu {
    transition: opacity 0.3s transition 0.3s;
    background-color: #5a8261;
    border: none;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}
.dropdown-toggle:hover {
    text-decoration: none !important;
}
.navbar .navbar-brand img {
    max-height: 70px;
}
.navbar .nav-links {
    display: flex;
    align-items: center;
}
.navbar .nav-link {
    color: white !important;
    margin-right: 10px;
    font-size: medium;
}
#navbarContent .nav-link {
    white-space: nowrap;
}
.navbar .nav-link:hover {
    text-decoration: underline;
}
.btn-green {
    background-color: #5a8261;
    color: white !important;
}
.btn-green:hover {
    background-color: #4a6b51;
    color: white !important;
    filter: brightness(1.1) !important;
}
.btn-green:disabled {
    background-color: #5a8261;
    border-color: #5a8261;
    color: white;
    opacity: 0.8 !important;
    cursor: not-allowed;
}
.btn-green:active {
    background-color: #4a6b51 !important;
    filter: brightness(0.9) !important;
}
.mode .btn-dark-blue {
    background-color: #1a252f;
    color: white !important;
}
.mode .btn-dark-blue:hover {
    background-color: #1a252f;
    filter: brightness(1.1) !important;
    color: white !important;
}
.mode .btn-dark-blue:disabled {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
    opacity: 0.8 !important;
    cursor: not-allowed;
}
.mode .btn-dark-blue:active {
    background-color: #1a252f !important;
    filter: brightness(0.9) !important;
}
.dark-mode .btn-dark-blue {
    background-color: #1abc9c !important;
    border: var(--bs-btn-border-width) solid #1abc9c;
    color: #ffffff;
}
.dark-mode .btn-dark-blue:hover {
    background-color: #1abc9c !important;
    filter: brightness(1.1) !important;
    color: #ffffff !important;
}
.dark-mode .btn-dark-blue:disabled {
    background-color: #1abc9c;
    border-color: #1abc9c;
    color: #ffffff;
    opacity: 0.8 !important;
    cursor: not-allowed;
}
.dark-mode .btn-dark-blue:active {
    background-color: #1abc9c !important;
    filter: brightness(0.9) !important;
}
   
.btn-link-custom {
    color: white !important;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.btn-link-custom:hover {
    text-decoration: underline;
}
body.side-nav-active .navbar {
    display: none;
}
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}
.dark-mode .dropdown-menu,
.dark-mode .navbar,
.dark-mode nav.side-nav,
.dark-mode footer {
    background-color: #1f1f1f;
}
.dark-mode .nav-link,
.dark-mode .footer a,
.dark-mode {
    color: #e0e0e0;
}
.dark-mode .nav-link:hover,
.dark-mode .footer a:hover {
    text-decoration: underline;
} 
.dark-mode,
.dark-mode .card {
    background-color: #2c3e50;
    color: #ecf0f1;
}
.dark-mode .container-energy,
.dark-mode .card-header {
    background-color: #34495e;
}

.dark-mode .alert-success {
    --bs-alert-bg: #1abc9c;
}
.dark-mode .table {
    --bs-table-bg: #34495e;
    border: var(--bs-border-width) solid #2c3e50;
}
.benefits-container,
.dark-mode .benchmark-text,
.dark-mode .analyse-text,
.dark-mode .result-section,
.dark-mode #coupon_code_input,
.dark-mode #global-price-info,
.dark-mode .password-requirements,
.dark-mode .signup-container,
.dark-mode .accordion-item,
.dark-mode .accordion-button,
.dark-mode .help-main,
.dark-mode .help-sidebar,
.dark-mode .ticker-container,
.dark-mode .heating-entry,
.dark-mode .ki-hinweis,
.dark-mode .energy-header p,
.dark-mode .pac-container,
.dark-mode .result-container,
.dark-mode .kpi-item,
.dark-mode .bootstrap-select>.dropdown-toggle,
.dark-mode .input-group .btn,
.dark-mode header,
.dark-mode .custom-file-label,
.dark-mode .list-group-item,
.dark-mode .bg-light,
.dark-mode .form-control .search-input,
.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode .sidebar {
    background-color: #34495e !important;
    border: var(--bs-border-width) solid #2c3e50;
    color: #ecf0f1;
}
.dark-mode .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-color-type: #ffffff;
    --bs-table-bg-type: var(--bs-table-striped-bg);
}

.dark-mode .dropdown-menu {
    --bs-dropdown-link-active-bg: #34495e;
    --bs-dropdown-link-hover-bg: #34495e;
}

.dark-mode .page-link,
.dark-mode .dropdown-item,
.dark-mode .benchmark-text,
.dark-mode .analyse-text,
.dark-mode main h1,
.dark-mode .text-muted {
    --bs-text-opacity: 1;
    color:  #ffffff !important;
}
.dark-mode .form-label,
.dark-mode .text-center,
.dark-mode .help-section h2,
.dark-mode .help-section h3,
.dark-mode .help-sidebar ul li a,
.dark-mode .ticker,
.dark-mode .pac-item,
.dark-mode .pac-item-query,
.dark-mode .details-modal p span,
.dark-mode .table>:not(caption)>*>* ,
.dark-mode .kpi-item span,
.dark-mode .negative,
.dark-mode .positive,
.dark-mode .input-field label,
.dark-mode .diagram-title,
.dark-mode .section-header,
.dark-mode .table-view .table th,
.dark-mode .table-view .table td,
.dark-mode .form-control::placeholder,
.dark-mode .description,
.dark-mode #address::placeholder,
.dark-mode #user-input::placeholder {
    color:  #ffffff !important;
}
.dark-mode .sidebar .nav-link {
    background-color: #34495e;
    color: #ecf0f1;
    white-space: nowrap;
}

.mode .card {
    background-color: #ffffffbc;
}

.dark-mode .dropdown-item.active,
.dark-mode .active>.page-link,
.dark-mode .pac-item:hover,
.dark-mode .sidebar .nav-link:hover {
    background-color:#2e6aa8;
    color: #ffffff;
}
.dark-mode .border {
    border: var(--bs-border-width) var(--bs-border-style) solid #34495e !important;
}
.dark-mode .qr-code-container,
.dark-mode .page-link,
.dark-mode .modal-content,
.dark-mode .section,
.dark-mode .immobilien-list,
.dark-mode .input-group-text {
    background-color: #2c3e50;
    border: var(--bs-border-width) solid #34495e;
    color: #ecf0f1;
}
.dark-mode .bg-white{
    background-color: #34495e !important;
}
.dark-mode .help-content {
    background-color: #34495e;
}
.dark-mode .navbar-toggler, .dark-mode .hamburger {
    background-color: #2c3e50;
    border-color: #34495e;
}

.mode .sidebar .nav-link:hover {
    background-color: #5a8261;
    color: #ffffff;
}

.content-container {
    flex: 1;
    padding-top: 80px;
    padding-left: 10px;
    padding-right: 15px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}
.navbar-nav .dropdown-menu.show {
    opacity: 1;
}
body.side-nav-active .content-container {
    padding-left: 100px;
}
footer {
    background-color: #5a8261;
    color: white;
    padding: 20px 0;
    text-align: center;
    bottom: 0;
}
footer ul {
    padding: 0;
    margin: 10px 0;
    list-style: none;
}
footer ul li {
    display: inline;
    margin: 0 10px;
}
footer ul li a {
    color: white;
    text-decoration: none;
}
footer ul li a:hover {
    text-decoration: underline;
}
footer .footer-user-info {
    margin-top: 10px;
    font-size: 14px;
}
footer .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
footer .social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    border: none;
    outline: none;
}
footer .social-icons a:hover {
    color: #d1d1d1;
}
.mode .btn:hover {
    filter: brightness(1.1);
}
.dark-mode .btn:hover {
    filter: brightness(0.95);
}
.alert-container {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 20000;
    width: auto;
    max-width: 320px;
}
@media (max-width: 992px) {
    .content-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 0 !important;
    }
    #top-nav {
        position: relative !important;
    }
    .navbar {
        padding: 0 0 !important;
    }
    #top-nav {
        display: block !important;
    }
    th, td {
        font-size: small !important;
    }
}
@media (max-width: 1500px) and (min-width: 992px) {
    h1 { font-size: 2.1rem !important; }
    h2 { font-size: 1.9rem !important; }
    h3 { font-size: 1.7rem !important; }
    h4 { font-size: 1.5rem !important; }
    h5 { font-size: 1.4rem !important; }
    h6 { font-size: 1.2rem !important; }
}
@media (max-width: 992px) {
    h1 { font-size: 1.9rem !important; }
    h2 { font-size: 1.7rem !important; }
    h3 { font-size: 1.6rem !important; }
    h4 { font-size: 1.4rem !important; }
    h5 { font-size: 1.3rem !important; }
    h6 { font-size: 1.1rem !important; }
}
.mode .notice_style {
    background-color: #fff3cd;
    border-color: #ffeeba;
    padding: 10px;
    font-size: small;
}
.dark-mode .notice_style {
    border-color: #ffeeba;
    color: #fff3cd;
    padding: 10px;
    font-size: small;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.08); 
    z-index: 40000;
    pointer-events: auto;
    display: none;
    animation: fadeIn 0.3s ease-in forwards;
}

.loader::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -40px;
    border: 10px solid rgba(243,243,243,0.3);
    border-top: 10px solid #5a8261;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(90,130,97,0.5);
    z-index: 40001;
}

    
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}