/* VODANET Dashboard — Custom Styles */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Sidebar */
.sidebar-link {
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.5);
}

/* Stat card active states */
.stat-card.filter-active {
    ring: 2px;
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Table striping */
#products-table tr:nth-child(even) {
    background-color: #f9fafb;
}

#products-table tr:hover {
    background-color: #f0f4ff !important;
}

/* Sticky table header */
thead.sticky th {
    background-color: #f9fafb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Sort indicators */
.sort-icon::after {
    content: '⇅';
    opacity: 0.25;
    font-size: 10px;
    margin-left: 2px;
}
.sort-icon.asc::after {
    content: '↑';
    opacity: 0.8;
}
.sort-icon.desc::after {
    content: '↓';
    opacity: 0.8;
}

/* Product link hover */
a.product-link {
    text-decoration: none;
    transition: color 0.15s;
}
a.product-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Smooth transitions for bar chart fills */
.bar-fill {
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile sidebar collapse */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -256px;
        z-index: 50;
        height: 100vh;
    }

    #sidebar.open {
        left: 0;
    }
}
