* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
}

body {
    background: #fafafa;
}

.page {
    display: flex;
    width: 100%;
    min-height: 100vh;
    border: 1px solid #d7e2ee;
}

/* ---- SIDEBAR ---- */

.sidebar {
    width: 295px;
    flex-shrink: 0;
    border-right: 1px solid #d7e2ee;
    padding: 0 16px 0 16px;
    background: #ffffff;
}

.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px 12px 8px;
}

.logo {
    width: 132px;
    height: 32px;
    object-fit: contain;
}

.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.btn-create-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #567b9a;
    border-radius: 30px;
    color: #062642;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.menu {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #062642;
    font-size: 16px;
    font-weight: 600;
}

.menu-item img {
    width: 18px;
    height: 18px;
}

.menu-item.active {
    background: #f3f8ff;
    color: #006bff;
}

/* ---- MAIN ---- */

.main {
    flex: 1;
    padding: 28px 26px 40px 26px;
    background: #ffffff;
}

/* ---- HEADER ---- */

.top-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 20px;
}

.full-divider {
    height: 1px;
    background: #d7e2ee;
    margin: 0 -26px 16px -26px;
}

h1 {
    font-size: 34px;
    font-weight: 600;
    color: #0a2540;
    padding-top: 6px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e7edf6;
    color: #0a2540;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #0a2540;
    font-size: 11px;
    font-weight: 700;
    color: #0a2540;
    vertical-align: middle;
    margin-left: 6px;
    font-style: italic;
    cursor: pointer;
}

/* ---- TOOLBAR ---- */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #d7e2ee;
    border-radius: 6px;
    background: #fafafa;
    color: #0a2540;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.show-buffers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0a2540;
    font-weight: 400;
}

/* toggle switch */
.toggle {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background: #cccccc;
    position: relative;
    cursor: pointer;
}

.toggle.on {
    background: #006bff;
}

.toggle-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fafafa;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
}

.toggle.on .toggle-circle {
    left: 18px;
}

.displaying-text {
    font-size: 12px;
    color: #476788;
}

/* ---- TABS ROW (inside card) ---- */

.tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #d7e2ee;
}

.tabs {
    display: flex;
    gap: 32px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #476788;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 10px;
}

.tab.active {
    color: #0a2540;
    border-bottom: 2px solid #3e9cff;
}

.tab-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d7e2ee;
    border-radius: 6px;
    background: #fafafa;
    color: #0a2540;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ---- EMPTY STATE CARD ---- */

.events-card {
    margin-top: 16px;
    border: 1px solid #d7e2ee;
    border-radius: 8px;
    padding: 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 60px 20px;
}

.empty-img {
    width: 80px;
    height: auto;
    margin-bottom: 6px;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0a2540;
}

.empty-state p {
    font-size: 13px;
    color: #476788;
}

/* ---- SIDEBAR DROPDOWN ---- */

.sidebar-dropdown {
    display: none;
    position: absolute;
    top: 174px;
    left: 16px;
    width: 263px;
    background: #ffffff;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
    z-index: 100;
    padding: 16px 0;
    max-height: 500px;
    overflow-y: auto;
}

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

/* ---- SIDEBAR MODAL ---- */

.sidebar-modal {
    display: none;
    position: absolute;
    top: 174px;
    left: 16px;
    width: 263px;
    background: #ffffff;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
    z-index: 100;
    padding: 16px 0;
    max-height: 500px;
    overflow-y: auto;
}

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

.sm-title {
    font-size: 12px;
    font-weight: 700;
    color: #0a2540;
    padding: 0 16px 10px 16px;
}

.sm-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 16px;
    cursor: pointer;
}

.sm-item:hover {
    background: #f3f8ff;
}

.sm-name {
    font-size: 13px;
    font-weight: 600;
    color: #006bff;
}

.sm-desc {
    font-size: 12px;
    color: #0a2540;
}

.sm-hint {
    font-size: 11px;
    color: #476788;
}

.sm-divider {
    height: 1px;
    background: #d7e2ee;
    margin: 6px 0;
}

.sm-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #0a2540;
}

.sm-accordion-header:hover {
    background: #f3f8ff;
}

.sm-accordion-header svg {
    transition: transform 0.2s ease;
}

.sm-accordion-body {
    display: none;
}

.sm-accordion.open .sm-accordion-body {
    display: block;
}

.sm-accordion.open .sm-accordion-header svg {
    transform: rotate(180deg);
}