/* Remove default list bullet the theme CSS forgot to clear */
.dropmenu ul {
    list-style: none;
    padding: 0;
}

/* Flex item in navbar — stretches to full navbar height */
.lang-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin-left: 12px;
    cursor: pointer;
}

/* Visible trigger: the current language label shown at all times */
.lang-trigger {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: inherit;
    white-space: nowrap;
}

/* Dropdown list — hidden by default, opens below the trigger */
.lang-dropdown ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    right: 0;
    border: 1px solid rgba(172, 179, 194, 0.4);
    border-radius: 4px;
    background: #fff;
    min-width: 44px;
    z-index: 20;
}

/* Show dropdown on hover */
.lang-dropdown:hover ul {
    display: block;
}

.lang-dropdown ul li {
    padding: 4px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown ul li:last-child {
    border-bottom: none;
}

.lang-dropdown ul li:hover {
    background-color: #f5f5f5;
}

.lang-dropdown ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    text-transform: uppercase;
    font-size: 0.72rem;
    white-space: nowrap;
}

.lang-dropdown ul li a.active {
    font-weight: 700;
}

/* ── Keep language dropdown in the navbar on mobile (left of hamburger) ── */
@media (max-width: 840px) {
    /* Override the theme rule that hides the whole right-side section on mobile */
    #header .navbar-section.desktop-menu {
        display: flex;
        /* Leave room for the absolutely-positioned hamburger button (28px @ right:1rem) */
        padding-right: 3.5rem;
        margin-right: 0;
    }
    /* Hide the nav links and login wrapper — only the language dropdown stays */
    #header .navbar-section.desktop-menu .dropmenu,
    #header .navbar-section.desktop-menu .login-status-wrapper {
        display: none;
    }
    /* Language trigger sits to the very right of the (padded) section */
    #header .navbar-section.desktop-menu .lang-dropdown {
        margin-left: auto;
    }
}

/* ── Mobile language switcher (shown inside the hamburger overlay) ── */
.mobile-lang {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

/* Hide the desktop trigger in mobile context */
.mobile-lang .lang-trigger {
    display: none;
}

/* Show the ul flat (not as a dropdown) */
.mobile-lang ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-lang ul li {
    display: block;
    padding: 0;
    border-bottom: none;
}

.mobile-lang ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

/* Highlight the active language */
.mobile-lang ul li a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

/* Custom Table Styling */
table {
    width: 100% !important;
    border-collapse: collapse !important;
}
table th, table td {
    text-align: left !important;
    padding: 0.5rem !important;
}
table th {
    background-color: rgba(128, 128, 128, 0.15) !important;
}
table tr:nth-child(even) {
    background-color: rgba(128, 128, 128, 0.05) !important;
}
