@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* rest of your existing CSS below */
body {
    font-family: 'Inter', sans-serif;
}
select,
input,
button,
textarea {
    font-family: inherit;
}
.header {
    padding: 0.5rem;
    background-color: var(--color-bg);
    border-bottom: 2px solid var(--menu-border-color);
}

.navbar-container {
    width: 100%;
    max-width: 100vw;
    padding: 1rem;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo img {
    height: 3.2rem;
    width: auto;
}

.header__logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    white-space: nowrap;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.header__user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Select container styling to match navbar */
.org-client-selector {
    background-color: var(--color-bg-primary);
    color: var(--menu-text-color);
    border: 1px solid var(--menu-border-color);
    border-radius: var(--menu-border-radius);
    padding: 8px 20px 8px 12px;
    min-width: max-content;
    transition: border-color var(--menu-hover-transition);
    font-weight: 500;
    font-size: 1.4rem;
}

.org-client-selector:hover {
    border-color: var(--color-main);
}

.org-client-selector option {
    background-color: var(--color-bg);
    color: var(--menu-text-color);
}

/* Header dropdown menu styling to match navbar */
.user-settings-dropdown-button {
    background: transparent;
    border: none;
    color: var(--menu-text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--menu-border-radius);
    transition: background-color var(--menu-hover-transition);
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
}

.user-settings-dropdown-button:hover {
    background-color: rgba(240, 211, 22, 0.1);
}

.user-settings-dropdown-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.left-navbar {
    padding: var(--menu-spacing-standard);
    border: 1px solid var(--menu-border-color);
    margin-top: 10px;
    background-color: var(--color-bg);
    color: var(--menu-text-color);
    border-radius: var(--menu-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* SIDEBAR NAVIGATION                                                         */
/* ═══════════════════════════════════════════════════════════════════════════ */

.sidebar {
    width: 220px;
    min-width: 220px;
    margin-left: 10px;
    padding: 20px 20px;
    transition: width 0.3s ease, min-width 0.3s ease;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Sidebar header — toggle + heading on same row */
.sidebar__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Spacer matches toggle button width to keep "Device Setup" aligned with nav text */
.sidebar__header-spacer {
    width: 28px;
    flex-shrink: 0;
}

.sidebar__heading {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__nav-list .sidebar__nav-link:not(:has(.sidebar__icon)):not(:has(.sidebar__fa-icon)) {
    padding-left: 42px;  /* 12px link padding + 18px icon + 12px gap */
}

.sidebar__nav-item {
    padding: 0;
    border-radius: var(--menu-border-radius);
    margin: 2px 0;
    font-weight: 500;
}

.sidebar__nav-link {
    text-decoration: none;
    color: var(--menu-text-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    padding-right: 20px;
    margin-right: -20px;
    border-radius: var(--menu-border-radius);
}

.sidebar__nav-link:hover {
    background-color: var(--menu-highlight-color);
    color: var(--menu-text-hover);
    margin-right: -20px;
    padding-right: 20px;
    border-radius: 4px 0 0 4px;
}

.sidebar__nav-link--active {
    background-color: rgba(240, 211, 22, 0.08);
    border-right: 3px solid var(--color-main);
    color: var(--color-main);
    margin-right: -20px;
    padding-right: 20px;
    border-radius: 4px 0 0 4px;
}

.sidebar__nav-text {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    white-space: nowrap;
}

.sidebar__icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 12px;
    opacity: 0.8;
    filter: invert(1);
    transition: transform 0.2s ease;
}

.sidebar__nav-link:hover .sidebar__icon {
    filter: brightness(0.5);
}

/* Font Awesome icons styled to match SVG sidebar__icon */
.sidebar__fa-icon {
    width: 18px;
    min-width: 18px;
    margin-right: 12px;
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
    color: #fff;
}

.sidebar__nav-link:hover .sidebar__fa-icon {
    opacity: 0.5;
}

.sidebar__arrow {
    transition: transform 0.2s ease;
}

.sidebar__arrow--open {
    transform: rotate(180deg);
}

.sidebar__hidden {
    display: none;
}

.sidebar__sub-links {
    background-color: #333333 !important;
}

/* Topics container (sidebar parent) */
.topics {
    position: relative;
    z-index: 1;
    background-color: #202020;
    box-shadow: #333333 0px 2px 4px;
    width: fit-content;
    flex-shrink: 0;
    border-right: 2px solid var(--menu-border-color);
}
.separator {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

.roomList{
            width:100%;
        border: 4px solid #202020;
}
.topics::after {
    content: '';
    position: absolute;
    top: 0px;
    right: 0;
    width: 3px;
    background: var(--color-main);
    opacity: 0.3;
    z-index: 2;
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* SIDEBAR TOGGLE BUTTON                                                       */
/* ═══════════════════════════════════════════════════════════════════════════ */

.sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sidebar__toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* SIDEBAR COLLAPSED STATE                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */

.sidebar--collapsed {
    width: 58px !important;
    min-width: 58px !important;
    padding: 20px 10px;
}

/* Header row when collapsed */
.sidebar--collapsed .sidebar__header {
    justify-content: center;      /* was flex-start */
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.sidebar--collapsed .sidebar__header h3 {
    display: none;
}

.sidebar--collapsed .sidebar__header-spacer {
    display: none;
}

/* Headings */
.sidebar--collapsed .sidebar__heading {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* Nav text */
.sidebar--collapsed .sidebar__nav-text {
    display: none;
}

/* Nav links — centered icons, no active border effect */
.sidebar--collapsed .sidebar__nav-link {
    justify-content: center;
    padding: 10px 0;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    border-radius: var(--menu-border-radius);
}

.sidebar--collapsed .sidebar__nav-link--active {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    background-color: rgba(240, 211, 22, 0.12);
    border-radius: var(--menu-border-radius);
}

.sidebar--collapsed .sidebar__nav-link:hover {
    margin-right: 0;
    padding-right: 0;
    border-radius: var(--menu-border-radius);
}

/* Icons — remove margin when collapsed */
.sidebar--collapsed .sidebar__icon {
    margin-right: 0;
}

.sidebar--collapsed .sidebar__fa-icon {
    margin-right: 0;
}

/* Text-only links (no icon) — reset padding */
.sidebar--collapsed .sidebar__nav-list .sidebar__nav-link:not(:has(.sidebar__icon)):not(:has(.sidebar__fa-icon)) {
    padding-left: 0;
}
.sidebar__sub__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                                  */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {
    .sidebar__icon {
        transform: scale(0.8);
        margin-right: 5px;
    }
    .sidebar__nav-link {
        padding: 6px 8px;
    }
    .sidebar__nav-text {
        font-size: 0.55rem;
    }
}

@media screen and (max-width: 1024px) {
    .sidebar__icon {
        transform: scale(0.8);
        margin-right: 5px;
    }
    .sidebar__nav-link {
        padding: 6px 8px;
    }
    .sidebar__nav-text {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 1366px) {
    .sidebar__icon {
        transform: scale(0.8);
        margin-right: 5px;
    }
    .sidebar__nav-link {
        padding: 6px 8px;
    }
    .sidebar__nav-text {
        font-size: 1rem;
    }
}