/* Sidebar Styles - Стили боковой панели ТРОН */

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.sidebar.show {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--tron-blue);
    text-decoration: none;
}

.sidebar-close {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--tron-dark-gray);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background-color: var(--tron-gray);
    color: var(--tron-text);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav-item {
    margin-bottom: 5px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--tron-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav-link:hover {
    background-color: var(--tron-light-blue);
    color: var(--tron-blue);
}

.sidebar-nav-link.active {
    background-color: var(--tron-blue);
    color: white;
}

.sidebar-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #00CCFF, var(--tron-blue));
}

.sidebar-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

.sidebar-nav-text {
    flex: 1;
    font-weight: 500;
}

.sidebar-nav-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sidebar-nav-link[aria-expanded="true"] .sidebar-nav-arrow {
    transform: rotate(90deg);
}

/* Sidebar Submenu */
.sidebar-submenu {
    background-color: var(--tron-gray);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-submenu.show {
    max-height: 500px;
}

.sidebar-submenu-item {
    margin-bottom: 2px;
}

.sidebar-submenu-link {
    display: block;
    padding: 10px 20px 10px 52px;
    color: var(--tron-dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-submenu-link:hover {
    background-color: #E0E0E0;
    color: var(--tron-text);
}

.sidebar-submenu-link.active {
    background-color: var(--tron-blue);
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid #E5E5E5;
    background: white;
}

.sidebar-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tron-blue), #00CCFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
}

.sidebar-user-info h6 {
    margin: 0;
    font-size: 14px;
    color: var(--tron-text);
}

.sidebar-user-info p {
    margin: 0;
    font-size: 12px;
    color: var(--tron-dark-gray);
}

.sidebar-actions {
    display: flex;
    gap: 10px;
}

.sidebar-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-btn-primary {
    background-color: var(--tron-blue);
    color: white;
}

.sidebar-btn-primary:hover {
    background-color: var(--tron-dark-blue);
    color: white;
}

.sidebar-btn-secondary {
    background-color: var(--tron-gray);
    color: var(--tron-text);
}

.sidebar-btn-secondary:hover {
    background-color: #E0E0E0;
    color: var(--tron-text);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section-title {
    padding: 0 20px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tron-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Search */
.sidebar-search {
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    font-size: 14px;
    background-color: var(--tron-gray);
    transition: all 0.3s ease;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--tron-blue);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.sidebar-search-icon {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tron-dark-gray);
    font-size: 14px;
}

/* Sidebar Badges */
.sidebar-badge {
    background-color: var(--tron-danger);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}

.sidebar-badge-primary {
    background-color: var(--tron-blue);
}

.sidebar-badge-success {
    background-color: var(--tron-success);
}

.sidebar-badge-warning {
    background-color: var(--tron-warning);
}

/* Sidebar Dividers */
.sidebar-divider {
    height: 1px;
    background-color: #E5E5E5;
    margin: 20px 0;
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--tron-text);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--tron-blue);
    color: white;
    transform: scale(1.1);
}

/* Sidebar Variants */
.sidebar-dark {
    background-color: #1a1a1a;
    color: white;
}

.sidebar-dark .sidebar-header {
    border-bottom-color: #333;
}

.sidebar-dark .sidebar-nav-link {
    color: #CCCCCC;
}

.sidebar-dark .sidebar-nav-link:hover {
    background-color: #333;
    color: white;
}

.sidebar-dark .sidebar-nav-link.active {
    background-color: var(--tron-blue);
    color: white;
}

.sidebar-dark .sidebar-submenu {
    background-color: #2a2a2a;
}

.sidebar-dark .sidebar-submenu-link {
    color: #999;
}

.sidebar-dark .sidebar-submenu-link:hover {
    background-color: #333;
    color: white;
}

.sidebar-dark .sidebar-footer {
    background-color: #1a1a1a;
    border-top-color: #333;
}

.sidebar-dark .sidebar-search-input {
    background-color: #333;
    border-color: #555;
    color: white;
}

.sidebar-dark .sidebar-search-input:focus {
    background-color: #444;
    border-color: var(--tron-blue);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .sidebar-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-toggle {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Sidebar Animation Classes */
.sidebar-slide-in {
    animation: slideInLeft 0.3s ease-out;
}

.sidebar-slide-out {
    animation: slideOutLeft 0.3s ease-out;
}

@keyframes slideOutLeft {
    from {
        left: 0;
    }
    to {
        left: -300px;
    }
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--tron-gray);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--tron-blue);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--tron-dark-blue);
}