﻿:root {
    --sidebar-width: 200px;
    --sidebar-width-collapsed: 50px;
}

body {
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
}

    .sidebar.collapsed {
        width: var(--sidebar-width-collapsed);
    }

.sidebar-link {
    color: #a0a3bd;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

    .sidebar-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .sidebar-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 0;
    transition: all 0.3s ease;
}

.collapsed ~ .main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.hide-on-collapse {
    opacity: 1;
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.collapsed .sidebar-link {
    padding: 1rem !important;
}

    .collapsed .sidebar-link i {
        margin: 0 !important;
    }
