/* =========================================================
   SoftVide - Sidebar
   File: assets/css/sidebar.css
   ========================================================= */

.sidebar {
    position: sticky;
    top: var(--sv-header-height);

    width: var(--sv-sidebar-width);
    min-width: var(--sv-sidebar-width);

    height: calc(100vh - var(--sv-header-height));

    padding: 12px 10px 30px;

    overflow-y: auto;
    overflow-x: hidden;

    background: var(--sv-bg);
    border-right: 1px solid var(--sv-border);
}


/* ---------- Sidebar Navigation ---------- */

.sidebar-main,
.sidebar-section {
    width: 100%;
}

.sidebar-section {
    margin: 0;
}

.sidebar-section h3 {
    margin: 16px 12px 8px;

    color: var(--sv-text);

    font-size: 15px;
    font-weight: 600;
}


/* ---------- Sidebar Item ---------- */

.sidebar-item {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 16px;

    padding: 8px 12px;

    border-radius: var(--sv-radius-medium);

    color: var(--sv-text);

    font-size: 14px;
    font-weight: 400;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.sidebar-item:hover {
    background: var(--sv-surface-hover);
}

.sidebar-item.active {
    background: var(--sv-surface-hover);

    font-weight: 600;
}


/* ---------- Sidebar Icons ---------- */

.sidebar-icon {
    width: 24px;
    min-width: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sv-text);

    font-size: 19px;
    line-height: 1;
}

.sidebar-item.active .sidebar-icon {
    color: var(--sv-accent);
}


/* ---------- Subscription Area ---------- */

.subscription-list {
    width: 100%;
    min-height: 10px;
}

.subscription-list:empty::after {
    content: "Your subscriptions will appear here";

    display: block;

    padding: 8px 12px;

    color: var(--sv-text-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* ---------- Divider ---------- */

.sidebar-divider {
    width: calc(100% - 8px);

    height: 1px;

    margin: 10px 4px;

    background: var(--sv-border);
}


/* ---------- Scrollbar ---------- */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #3a3a3a;

    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555555;
}


/* ---------- Sidebar Links Focus ---------- */

.sidebar-item:focus-visible {
    outline: 2px solid var(--sv-accent);
    outline-offset: -2px;
}


/* ---------- Sidebar Footer Space ---------- */

.sidebar::after {
    content: "";

    display: block;

    height: 30px;
}