:root {
    /* Primary colors */
    --blue: #111B78;
    --primary-blue: #0570E0;
    
    /* Text colors */
    --text-dark: #1a1919;
    --text-gray: #797979;
    --text-medium: #333;
    
    /* Background colors */
    --bg-light: #F8F8F8;
    --bg-white: #ffffff;
    --bg-fafafa: #FAFAFA;
    --bg-f8f9fa: #f8f9fa;
    
    /* Border colors */
    --border-light: rgba(0,0,0,0.05);
    --border-medium: #e0e0e0;
    
    /* Shadow colors */
    --shadow-light: rgba(0,0,0,0.03);
    --shadow-medium: rgba(0,0,0,0.08);
    --shadow-dark: rgba(0,0,0,0.15);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

/* Layout */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Navigation */
.menu {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
    height: 60px;
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

/* Utility Classes */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar-left {
        width: 60px;
    }
    .page-inner {
        padding-left: 1rem;
    }
}

/* ===== LAYOUT STRUCTURE ===== */
.page {
    min-height: calc(100vh - 50px);
}

.page-inner {
    min-height: calc(100vh - 50px);
    min-width: 0;
}
nav img.img-fluid {
    top: 0px;
    position: relative;
}
.com-users-login.login, .com-users-remind.remind, .com-users-reset.reset {
    max-width: 550px;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background: white;
    padding: 50px;
    border: 1px solid #d9d9d9;
    min-width: 500px;
    border-radius: 10px;
}


/* ===== HEADER/MENU ===== */
.menu a  {
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    top: 0px !important;
    margin-right: 30px;
    font-weight: 500;
}

.menu a.account-dropdown {
    top: 5.5px !important;
    padding: 15px;
    border-radius:10px;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all 0.15s ease;
    margin-right: 0px !important;
}
.menu a.account-dropdown > span {
    transition: all 0.3s ease;
}
.menu a.account-dropdown:hover > span {
    color:#0570E0 !important;
}

.nav .nav-item > a:hover {
    color:#0570E0 !important;
}

.menu > a {
    top:5px !important;
}

.menu a:hover {
    color: var(--primary-blue);
}

.menu .dropdown-content a {
    top: 0px;
    margin-right: 0;
}
.profile-dropdown .metismenu-item {
    padding-bottom: 13px !important;
    padding-top: 0px !important;  
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.profile-dropdown .metismenu-item a {
    padding: 8px 15px !important;
    text-decoration: none !important;
    width: 100%;
    margin-right: 0;
    top: 6px !important;
}



.top-0 {
    top: 0;
}

.menu-right {
    background-color: var(--bg-light);
    padding-left: 15px;
    height: 52px;
    margin-bottom: -2px;
    min-width: 400px;
    max-width: 500px;
}

/* Menu module overrides */
.menu .nav {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.menu a.account-dropdown {
    background-color: var(--shadow-light);
}

.menu .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.menu .nav-link {
    padding: 0;
    margin-right: 30px;
    display: inline-block;
    line-height: 50px;
}

.top-menu-item {
    display: inline-block;
    line-height: 50px;
    margin-right: 30px;
}

/* ===== ACCOUNT DROPDOWN ===== */
.profile-dropdown {
    position: relative;
    display: inline-block;
    top: 2px;
}

.menu > a.account-dropdown {
    position: relative;
    top: 8px !important;
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.flex-grow-1.pl-50.menu-container {
    display: flex;
    align-items: center;
}
.mod--menu.mod-list.nav {
  flex-direction: row;
  flex:1;
}

.menu a.account-dropdown:hover {
    background-color: var(--shadow-light);
}

.menu a.account-dropdown span {
    position: relative;
    top: -1px;
}

.menu a.account-dropdown img {
    margin-right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
html .mod-list li.active > a {
  text-decoration:none !important;
}

.account-dropdown > span::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left:5px solid transparent;
    transition: transform 0.2s ease;
}

.profile-dropdown .metismenu {
    position: absolute;
    top: 47px;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
    z-index: 1000;
    padding: 0;
    border-radius: 4px;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: none;
    transform: translateY(10px) !important;
    min-width: 160px !important;
    margin-right: 20px !important;
}

.profile-dropdown .metismenu-item {
    border-bottom: 1px solid #eee;
    padding: 0;
}

.profile-dropdown .metismenu-item a {
    padding: 12px 20px;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.profile-dropdown .metismenu-item a:hover {
    color: var(--primary-blue);
    background-color: transparent;
}

.profile-dropdown .metismenu-item.divider {
    border-bottom: 1px solid #eee;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ===== SIDEBAR LEFT ===== */
.sidebar-left {
    background-color: var(--blue) !important;
    max-width: 50px !important;
    z-index: 1;
    position: fixed;
    height: 100vh;
    margin-top: 0px;
    top: 0;
}

.dropdown-content a {
    text-decoration: none !important;
}

header .menu .btn.btn-link.jmodedit {
  display: none !important;
}

.logout-item {
    bottom: 20px !important;
  position: relative !important;
  left: 7px !important;
}

.sidebar-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.sidebar-item:hover {
    opacity: 0.9;
}

.sidebar-item a {
    pointer-events: none;
}

.icon:hover, .logout-icon:hover {
    filter: brightness(0.85);
}

/* Sidebar Tooltip */
.sidebar-item .tooltip-text {
    visibility: hidden;
    width: auto;
    background-color: var(--bg-f8f9fa);
    color: var(--text-medium);
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 100;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.sidebar-item .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--bg-f8f9fa) transparent transparent;
}

.sidebar-item:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== SIDEBAR RIGHT ===== */
.sidebar-right, .menu-right {
    background-color: var(--bg-light);
    border-left: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: var(--shadow-light);
}

.sidebar-toggle img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sidebar-toggle:hover img {
    opacity: 1;
}

/* ===== MAP AREA ===== */
.map {
    height: 400px;
}

.map {
    background-color: var(--bg-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-light);
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer p {
    margin: 0;
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== TYPOGRAPHY ===== */
h2 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
}

/* ===== UTILITIES ===== */
.mt-neg-70 {
    margin-top: -70px;
}

.pl-50 {
    padding-left: 50px;
}
.pl-75 {
    padding-left:75px !important;
}

.pb-50 {
    padding-bottom: 50px;
}

.h-30 {
    height: 30px;
}

.items-center {
    align-items: center;
}

/* ===== BUTTONS ===== */
button {
    border: none;
    background: none;
    padding: 0;
}

/* ===== FONT WEIGHTS ===== */
.menu a, .menu a.account-dropdown, .menu .dropdown-content a,
.sidebar-item .tooltip-text {
    font-weight: 500;
}

/* ===== MENU ITEMS ===== */
.top-menu-item {
    margin-right: 30px;
}

/* Sidebar handling */
.no-sidebar .col-md {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
}

/* Sidebar visibility */
.no-sidebar .page-inner {
    margin-right: 0;
    flex: 1;
}

.no-sidebar .col-md {
    max-width: 100%;
}

.menu .dropdown-container .nav-item.parent:hover > a::after{
    transform: rotate(-90deg);
} 

/* Hide Chat voor when sidebar is hidden */
.no-sidebar .menu-right {
    display: none;
}

.auth-buttons .btn,
.auth-buttons .btn:focus {
    border-radius: 0px;
    border: 2px solid #10196b;
    background: #10196b;
    color: white;
    padding: 8px 16px;
      padding-top: 8px;
      padding-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    top: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 14px;
    margin-right: 0px;  
}

.auth-buttons .btn:hover {
    opacity: 0.8;
    background: #10196b;
}

.auth-buttons .btn-outline-primary {
    background: transparent;
    color: #10196b;
}

.auth-buttons .btn-outline-primary:hover {
    background: #10196b;
    color: white;
    opacity: 1;
}

.btn.btn-outline-primary:hover {
    opacity:0.9;
}

.menu a.btn.btn-primary.me-2:hover {
    color:white;
}

.choices__button_joomla {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.2em 0.7em;
    margin-left: 0.5em;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s;
  }
  .choices__button_joomla:hover,
  .choices__button_joomla:focus {
    background: #c0392b;
    outline: none;
  }

/* ===== JOOMLA MENU MODULES ===== */
.moduletable {
    display: inline-block;
    margin-right: 20px;
}

.moduletable ul.nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
}

.moduletable ul.nav li {
    margin: 0;
    padding: 0;
    position: relative;
}

.moduletable ul.nav li a {
    display: block;
    padding: 0 15px;
    line-height: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.moduletable ul.nav li a:hover {
    color: var(--primary-blue);
}

.moduletable ul.nav li.active > a {
    color: var(--primary-blue);
}

/* Dropdown styles */
.moduletable ul.nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 5px 0;
    border-radius: 4px;
    list-style: none;
}

.moduletable ul.nav li:hover > ul {
    display: block;
}

.moduletable ul.nav li ul li {
    display: block;
    width: 100%;
}

.moduletable ul.nav li ul li a {
    padding: 8px 15px;
    line-height: 1.5;
    white-space: nowrap;
}

.moduletable ul.nav li ul li a:hover {
    background-color: var(--bg-light);
}

/* Caret for parent items */
.moduletable ul.nav li.parent > a:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Right aligned menus */
.moduletable.align-right ul.nav li ul {
    left: auto;
    right: 0;
}

/* Dropdown styles */
.menu .nav-item ul {
    display: none;
    position: absolute;
    top: 10px !important;
    left: -15px !important;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    padding: 0 0 0px 0;
    border-radius: 8px;
    list-style: none;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0px;
    padding-left: 0px !important;
    display: block !important;
    padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Dropdown bridge */
.menu .nav-item .dropdown-bridge {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 7px;
    background: transparent;
    z-index: 999;
}

/* Dropdown hover area */
.menu .nav-item .dropdown-hover-area {
    position: absolute;
    top: -7px; /* Extend up to cover the gap */
    left: -20px; /* Extend left to create a larger hover area */
    right: -20px; /* Extend right to create a larger hover area */
    bottom: -100%; /* Extend down to cover the dropdown */
    background: transparent;
    pointer-events: auto;
    z-index: 999;
}

.menu .nav-item .dropdown-hover-area.active {
    pointer-events: auto;
}

.menu .nav-item .dropdown-hover-area.active ul {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



/* Dropdown wrapper */
.menu .nav-item .dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 7px;
    background: transparent;
    pointer-events: none;
}

.menu .nav-item:hover .dropdown-wrapper {
    pointer-events: auto;
}

/* Remove the old hover area */
.menu .nav-item::after {
    display: none;
}

.menu .nav-item ul li {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 7px;
}
.dropdown-container .dropdown-container .mod-menu__sub{
margin-top: 0 !important;
top: -54px !important;
left: 200px !important;
}

.menu .nav-item ul li a {
    padding: 12px 20px;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding-bottom: 0px;
    padding-top: 0px;
    top: 1px !important;
    margin-right: 0px !important;
}

.menu .nav-item ul li a:hover {
    color: var(--primary-blue);
    padding-left: 20px;
    background-color: transparent;
}

/* Caret for parent items */
.menu .nav-item.parent > a:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform 0.2s ease;
}



/* Right aligned menus */
.menu .nav-item.align-right ul {
    left: auto;
    right: 0;
}

/* Add subtle hover effect to parent items */
.menu .nav-item > a {
    position: relative;
    transition: color 0.2s ease;
}

/* Remove the hover underline effect */
.menu .nav-item > a:before {
    display: none;
}

.menu .nav-item:hover > a:before {
    display: none;
}

/* Dropdown Menu Styles */
.menu > div > ul {
    display: none;
    opacity: 0;
    position: absolute;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: 0 2px 5px var(--shadow-medium);
    border-radius: 4px;
    padding: 5px 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.menu > div > ul li {
    list-style: none;
    padding: 0;
}

.menu > div > ul li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-dark);
    text-decoration: none;
}

.dropdown-hover-area {
    position: absolute;
    top: -7px; /* Extend up to cover the gap */
    left: -20px; /* Extend left to create a larger hover area */
    right: -20px; /* Extend right to create a larger hover area */
    bottom: -100%; /* Extend down to cover the dropdown */
    background: transparent;
    pointer-events: auto;
    z-index: 999;
}

/* Remove any existing hover styles */
.menu a:hover,
.menu > div > ul li a:hover,
.menu .nav-item:hover,
.menu .nav-item:hover > a,
.menu .nav-item:hover > ul {
    /* Reset any hover effects */
    background: none;
    color: inherit;
    text-decoration: none;
}