/**
 * Sidebar styles for Tokenlytics
 */

.sidebar {
    width: 280px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(26, 31, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1030;
    padding-top: 60px;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.sidebar-brand img {
    height: 30px;
    margin-right: 8px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.25rem;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0.25rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.15), rgba(0, 229, 255, 0.15));
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-icon {
    width: 24px;
    text-align: center;
    margin-right: 1rem;
}

.sidebar-dropdown {
    margin-top: 0.25rem;
    list-style: none;
    padding-left: 3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-dropdown-open {
    max-height: 1000px;
}

.sidebar-dropdown-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--secondary-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-dropdown-link:hover {
    color: var(--primary-color);
}

.sidebar-dropdown-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-divider {
    border-top: 1px solid var(--glass-border);
    margin: 1rem 1.5rem;
}

.sidebar-heading {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
    font-weight: 700;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-align: center;
}

/* Collapsed sidebar */
.sidebar-collapsed {
    width: 70px;
}

.sidebar-collapsed .sidebar-brand span,
.sidebar-collapsed .sidebar-link span {
    display: none;
}

.sidebar-collapsed .sidebar-dropdown,
.sidebar-collapsed .sidebar-heading,
.sidebar-collapsed .sidebar-divider {
    display: none;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar-collapsed .sidebar-icon {
    margin-right: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar-open {
        transform: translateX(0);
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1025;
        display: none;
    }
    
    .sidebar-open + .sidebar-backdrop {
        display: block;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sidebar {
        background: rgba(15, 18, 25, 0.95);
    }
}