/* Premium Sidebar Styles */
#sidebar.collapsed {
    width: 4rem !important;
}

@media (max-width: 768px) {
    #sidebar.collapsed {
        width: 16rem !important;
    }
}

#sidebar.collapsed .sidebar-text {
    display: none;
}

#sidebar.collapsed .nav-item {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

#sidebar.collapsed .nav-item i {
    margin-right: 0;
}

/* Smooth transitions */
#sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-text {
    transition: opacity 0.2s ease-in-out;
}

/* Custom scrollbar for sidebar */
#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hover effects */
.nav-item:hover {
    transform: translateX(2px);
}

/* Active state glow */
.nav-item.bg-gradient-to-r {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Mobile table responsiveness */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .space-y-1 > * + * {
        margin-top: 0.25rem;
    }
}