/**
 * 7ED Sidebar Component Styles
 * Version: 4.5 — Icon strip + Hubs flattened + chevrons
 * Date: 25 February 2026
 */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    --sidebar-width: 230px;
    --sidebar-width-tablet: 220px;
    --icon-strip-width: 50px;
    --sidebar-total-width: calc(var(--icon-strip-width) + var(--sidebar-width));
    --sidebar-total-width-tablet: calc(var(--icon-strip-width) + var(--sidebar-width-tablet));
    --banner-height: 0px; /* Banner disabled - red 7ed logo indicates test */

    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-100: #ccfbf1;
    --teal-50: #f0fdfa;

    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;

    --rose-500: #f43f5e;
    --rose-100: #ffe4e6;

    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========== SIDEBAR WRAPPER (flex row: icon strip + sidebar) ========== */
.sidebar-wrapper {
    display: flex;
    position: fixed;
    top: var(--banner-height);
    left: 0;
    height: calc(100vh - var(--banner-height));
    z-index: 100;
    pointer-events: auto;
}

/* ========== ICON STRIP ========== */
.icon-strip {
    width: var(--icon-strip-width);
    background: #2EB8B8; /* 7ed logo colour */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--teal-500);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.icon-strip-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.75rem;
    gap: 0.25rem;
}

.icon-strip-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
    margin-top: auto; /* default: push to bottom */
}

.icon-strip-item {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    transition: all 0.15s;
    font-size: 1.15rem;
    user-select: none;
}

.icon-strip-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.icon-strip-item.active {
    background: rgba(255,255,255,0.3);
    color: white;
}

.icon-strip-separator {
    width: 24px;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 0.25rem 0;
}

/* ========== SIDEBAR CONTAINER ========== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* ========== SIDEBAR HEADER (Logo) ========== */
.sidebar-header {
    padding: 0.35rem 0.85rem;
    border-bottom: 1px solid var(--slate-100);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-logo-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    color: var(--slate-900);
}

.logo-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    color: #2EB8B8;
    font-weight: 700;
}

.logo-sector {
    display: block;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0.02em;
    margin-top: -0.15rem;
}

/* ========== MINI CALENDAR (Now at TOP of sidebar) ========== */
.sidebar-calendar {
    flex-shrink: 0;
    border-bottom: 1px solid var(--slate-200);
    padding: 0.25rem 0.5rem 0.3rem;
    background: #ffffff;
    user-select: none;
    position: relative;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.1rem;
}

.cal-nav-btn {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--slate-600);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}

.cal-nav-btn:hover {
    background: var(--slate-200);
    color: var(--slate-700);
}

.cal-month-label {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--slate-700);
    letter-spacing: 0.02em;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    text-align: center;
}

.cal-hdr {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--slate-600);
    padding: 0;
    line-height: 1.2;
}

.cal-day {
    font-size: 0.52rem;
    color: var(--slate-700);
    line-height: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.cal-day:hover:not(.empty) {
    background: var(--slate-200);
}

.cal-day.empty {
    visibility: hidden;
    cursor: default;
}

.cal-day.today {
    background: var(--teal-500);
    color: white;
    font-weight: 700;
}

.cal-day.today:hover {
    background: var(--teal-600);
}

.cal-day.has-event {
    font-weight: 700;
    color: var(--slate-900);
    background: var(--teal-50);
}

.cal-day.has-event:hover {
    background: var(--teal-100);
}

.cal-day.is-holiday {
    color: #e11d48;
    font-weight: 700;
    background: var(--rose-100);
}

.cal-day.is-holiday:hover {
    background: #fecdd3;
}

/* Event dots under the day number */
.cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    position: absolute;
    bottom: 1px;
    left: calc(50% - 4px);
}

.cal-dot-2 {
    left: calc(50% + 1px);
}

.cal-day.today .cal-dot {
    background: white !important;
}

/* Add event row */
.cal-add-row {
    text-align: center;
    margin-top: 0.1rem;
    padding-top: 0.1rem;
    border-top: 1px solid var(--slate-100);
}

.cal-add-btn {
    font-size: 0.55rem;
    color: var(--teal-600);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s;
}

.cal-add-btn:hover {
    color: var(--teal-500);
}

/* ========== CALENDAR POPUP (opens DOWNWARD now — calendar is at top) ========== */
.cal-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-height: 300px;
    overflow-y: auto;
    z-index: 110;
}

.cal-popup.open {
    display: block;
}

.cal-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--slate-100);
    position: sticky;
    top: 0;
    background: var(--white);
}

.cal-popup-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-700);
}

.cal-popup-close {
    cursor: pointer;
    color: var(--slate-400);
    font-size: 0.85rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-popup-close:hover {
    background: var(--slate-100);
    color: var(--slate-600);
}

.cal-popup-events {
    padding: 0.4rem 0.5rem;
}

.cal-no-events {
    font-size: 0.72rem;
    color: var(--slate-400);
    text-align: center;
    padding: 0.6rem;
}

.cal-event-item {
    padding: 0.4rem 0.5rem;
    border-left: 3px solid var(--teal-500);
    margin-bottom: 0.35rem;
    border-radius: 0 4px 4px 0;
    background: #ffffff;
}

.cal-event-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}

.cal-event-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-800);
}

.cal-event-time {
    font-size: 0.65rem;
    color: var(--slate-400);
    flex-shrink: 0;
}

.cal-event-desc {
    font-size: 0.65rem;
    color: var(--slate-500);
    margin-top: 0.15rem;
}

.cal-event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.2rem;
}

.cal-event-type {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-event-delete {
    font-size: 0.7rem;
    color: var(--slate-300);
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-event-delete:hover {
    background: var(--rose-100);
    color: var(--rose-500);
}

.cal-popup-add {
    font-size: 0.7rem;
    color: var(--teal-600);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--slate-100);
    text-align: center;
    font-weight: 500;
    transition: background 0.15s;
}

.cal-popup-add:hover {
    background: var(--teal-50);
}

/* ========== CALENDAR ADD FORM ========== */
.cal-form {
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cal-input {
    font-family: inherit;
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    outline: none;
    color: var(--slate-800);
    background: var(--white);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.cal-input:focus {
    border-color: var(--teal-400);
}

.cal-form-row {
    display: flex;
    gap: 0.3rem;
}

.cal-input-sm {
    flex: 1;
    min-width: 0;
}

.cal-save-btn {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.45rem;
    background: var(--teal-500);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.cal-save-btn:hover {
    background: var(--teal-600);
}

/* ========== SIDEBAR NAV (scrollable middle section) ========== */
.sidebar-nav {
    flex: 0 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    min-height: 0; /* Allow shrinking for notice board */
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) var(--slate-100);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: var(--slate-100);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ========== NAV GROUPS (Expandable) ========== */
.nav-group {
    margin-bottom: 0;
}

/* Subtle gap before each group header */
.nav-group + .nav-group > .nav-group-header,
.nav-item-simple + .nav-group > .nav-group-header,
.nav-group + .nav-item-simple {
    margin-top: 0.15rem;
}

/* Divider between major sections */
.nav-section-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 0.3rem 0.85rem;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    user-select: none;
    outline: none;
    background: none;
    font: inherit;
    color: inherit;
    width: 100%;
    text-align: left;
}

.nav-group-header:hover {
    background: var(--slate-50);
}

.nav-group.open > .nav-group-header {
    border-left-color: var(--teal-400);
}

/* Simple nav item (no children, no chevron) */
.simple-nav-item > .nav-group-header {
    padding-left: 0.85rem;
}
.simple-nav-item.active > .nav-group-header {
    border-left-color: var(--teal-400);
    color: var(--slate-900);
}

.nav-group.open > .nav-group-header .nav-label {
    color: var(--slate-900);
}

.nav-group.active > .nav-group-header {
    background: var(--teal-50);
    border-left-color: var(--teal-500);
}

.nav-group-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========== CHEVRON (LEFT of label) ========== */
.nav-group-chevron {
    font-size: 0.7rem;
    color: var(--slate-500);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-group.open > .nav-group-header .nav-group-chevron {
    transform: rotate(90deg);
    color: var(--teal-500);
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-900);
    flex: 1;
}

.nav-group.active > .nav-group-header .nav-label {
    color: var(--slate-900);
}

.nav-group-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* ========== NAV BADGES ========== */
.nav-badge {
    background: var(--teal-100);
    color: var(--teal-600);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.nav-badge.alert {
    background: var(--rose-100);
    color: var(--rose-500);
}

.nav-badge.amber {
    background: var(--amber-100);
    color: var(--amber-500);
}

/* ========== NAV CHILDREN (Nested Items) ========== */
.nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    background: var(--slate-50);
}

.nav-group.open > .nav-children {
    max-height: 800px; /* Increased for nested subgroups */
}

.nav-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.85rem 0.25rem 2.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.78rem;
    color: var(--slate-800);
    text-decoration: none;
}

.nav-child:hover {
    background: #f9fafb;
    color: var(--teal-600);
}

.nav-child.active {
    background: #f9fafb;
    color: var(--teal-600);
    font-weight: 500;
}

.nav-child-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-child-icon {
    font-size: 0.78rem;
    width: 18px;
    text-align: center;
}

/* ========== SUBGROUPS (Two-level nesting for Hubs) ========== */
.nav-subgroup {
    margin-bottom: 0;
}

.nav-subgroup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.85rem 0.25rem 1.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-size: 0.82rem;
    color: var(--slate-800);
    border-left: 3px solid transparent;
}

.nav-subgroup-header:hover {
    background: var(--slate-50);
}

.nav-subgroup.open > .nav-subgroup-header {
    border-left-color: var(--teal-300);
}

.nav-subgroup.open > .nav-subgroup-header .nav-label {
    color: var(--teal-600);
}

.nav-subgroup.open > .nav-subgroup-header .nav-group-chevron {
    transform: rotate(90deg);
    color: var(--teal-500);
}

.nav-subgroup > .nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.nav-subgroup.open > .nav-children {
    max-height: 500px;
}

/* Deeper indentation for subgroup children */
.nav-subgroup .nav-child {
    padding-left: 3rem;
}

/* Placeholder subgroups (no children yet) */
.nav-subgroup.placeholder > .nav-subgroup-header {
    opacity: 0.6;
}

.nav-subgroup.placeholder > .nav-subgroup-header .nav-group-chevron {
    visibility: hidden;
}

/* ========== NAV CHILD STATUS BADGES ========== */
.nav-child-status {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.nav-child-status.done {
    background: var(--teal-100);
    color: var(--teal-600);
}

.nav-child-status.progress {
    background: var(--amber-100);
    color: var(--amber-500);
}

.nav-child-status.pending {
    background: var(--slate-200);
    color: var(--slate-500);
}

/* ========== NAV DIVIDER ========== */
.nav-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 0.3rem 0.85rem;
}

/* ========== SIMPLE NAV ITEM (Non-expandable) ========== */
.nav-item-simple {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
}

.nav-item-simple:hover {
    background: #f9fafb;
}

.nav-item-simple.active {
    background: var(--teal-50);
    border-left-color: var(--teal-500);
}

.nav-item-simple .nav-label {
    flex: 1;
}

/* ========== USER SECTION (Pinned at bottom of sidebar) ========== */
.sidebar-user-pinned {
    border-top: 1px solid var(--slate-100);
    background: #ffffff;
    flex-shrink: 0;
}

.user-name-group > .nav-group-header {
    background: #ffffff;
}

.user-name-group > .nav-group-header:hover {
    background: #f9fafb;
}

.user-full-name {
    font-weight: 600;
    color: var(--slate-900);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.3;
}

.user-cohort-inline {
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--slate-500);
}

.signout-child {
    color: var(--rose-500) !important;
}

.signout-child:hover {
    background: var(--rose-50, #fff1f2) !important;
    color: var(--rose-600, #e11d48) !important;
}

.user-menu-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 0.25rem 0.75rem;
}

.user-menu-section-label {
    padding: 0.25rem 0.75rem 0.15rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    pointer-events: none;
}

/* ========== NOTICE BOARD (Below user section, placeholder) ========== */
.sidebar-notice-board {
    flex: 1 1 140px;
    min-height: 100px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-50);
    overflow: hidden;
}

.sidebar-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    flex-shrink: 0;
}

.sidebar-notice-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-notice-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) var(--slate-100);
}

.sidebar-notice-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-notice-content::-webkit-scrollbar-track {
    background: var(--slate-100);
}

.sidebar-notice-content::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

.sidebar-notice-content::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

.sidebar-notice-empty {
    font-size: 0.72rem;
    color: var(--slate-400);
    text-align: center;
    padding: 1.5rem 0.5rem;
    font-style: italic;
}

.sidebar-notice-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.sidebar-notice-item:last-child {
    border-bottom: none;
}

.sidebar-notice-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
}

.sidebar-notice-item-from {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--slate-700);
}

.sidebar-notice-item-date {
    font-size: 0.6rem;
    color: var(--slate-400);
}

.sidebar-notice-item-text {
    font-size: 0.7rem;
    color: var(--slate-600);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notice board hidden when logged out */
.sidebar-notice-board.hidden {
    display: none;
}

/* ========== USER SECTION — LOGGED OUT STATE ========== */
.sidebar-user-pinned.logged-out .nav-group-header {
    cursor: pointer;
}

.sidebar-user-pinned.logged-out .nav-children {
    display: none;
}

/* ========== DISABLED STATE (Not logged in) ========== */
.nav-item-simple.disabled,
.nav-group.disabled > .nav-group-header {
    opacity: 0.45;
    cursor: not-allowed;
}

.nav-group.disabled > .nav-group-header {
    pointer-events: none;
}

.nav-group.disabled .nav-children {
    display: none;
}

/* ========== DISABLED CHILD (Not in cohort permissions) ========== */
.nav-child.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

/* ========== MAIN CONTENT OFFSET ========== */
.main-with-sidebar {
    margin-left: var(--sidebar-total-width);
    min-height: 100vh;
}

/* ========== MOBILE HAMBURGER ========== */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 101;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width-tablet);
    }

    .main-with-sidebar {
        margin-left: var(--sidebar-total-width-tablet);
    }
}

@media (max-width: 768px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-wrapper.open {
        transform: translateX(0);
    }

    .sidebar {
        width: var(--sidebar-width);
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-backdrop.visible {
        display: block;
    }

    .main-with-sidebar {
        margin-left: 0;
        padding-top: 4rem; /* Space for hamburger */
    }
}
