/* Common Sidebar Styles for DevDunia */

/* Sidebar Styles */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(71, 85, 105, 0.3);
    z-index: 40;
    overflow-y: auto;
    transition: width 0.3s ease;
}

.sidebar-text {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.sidebar-item:hover {
    background: rgba(71, 85, 105, 0.3);
    color: #ffffff;
}

.sidebar-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-text {
    margin-left: 12px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-section {
    margin: 16px 0;
}

.sidebar-section-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
    transition: all 0.3s ease;
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.5);
    border-radius: 2px;
}

/* Desktop: Always show text */
@media (min-width: 769px) {
    .sidebar-text {
        opacity: 1 !important;
        transform: translateX(0) !important;
        display: block !important;
    }
    
    .sidebar-section-title {
        opacity: 1 !important;
        transform: translateX(0) !important;
        display: block !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .sidebar-text {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .sidebar-section-title {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .main-content {
        margin-left: 0;
    }
}
