header {
    display: none !important;
}
/* Reset & Base */
#vsm-dashboard-wrapper {
    display: flex;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f4f6f8;
    color: #1a1a2e;
    min-height: 100vh;
}

/* Sidebar */
.vsm-sidebar {
    width: 260px;
    background: #1a1a2e;
    color: #fff;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}
.vsm-sidebar-brand h2 {
    font-size: 1.4rem;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0 0 20px 0;
}
.vsm-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vsm-sidebar-nav li {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}
.vsm-sidebar-nav li:hover {
    background: rgba(255,255,255,0.05);
}
.vsm-sidebar-nav li.active {
    background: rgba(255,255,255,0.08);
    border-left-color: #4facfe;
    color: #4facfe;
}
.vsm-sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
#vsm-theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* Main Content */
.vsm-main {
    flex: 1;
    padding: 24px 30px;
    overflow-y: auto;
}

/* Header */
.vsm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.vsm-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.vsm-header-left h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}
.vsm-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.vsm-filter-bar select,
.vsm-filter-bar input {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
}
#vsm-refresh-data {
    background: #4facfe;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}
.vsm-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.vsm-welcome {
    font-weight: 500;
}
.vsm-logout {
    color: #e53e3e;
    font-size: 1.2rem;
}

/* Stats Grid */
.vsm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.vsm-stat-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}
.vsm-stat-card:hover {
    transform: translateY(-3px);
}
.vsm-stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4facfe;
}
.vsm-stat-content {
    flex: 1;
}
.vsm-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.vsm-stat-label {
    font-size: 0.85rem;
    color: #6b7280;
}
.vsm-stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}
.vsm-stat-change.positive {
    color: #10b981;
}
.vsm-stat-change.negative {
    color: #ef4444;
}

/* Row & Columns */
.vsm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.vsm-col-12 { flex: 0 0 100%; }
.vsm-col-8 { flex: 0 0 calc(66.666% - 20px); }
.vsm-col-6 { flex: 0 0 calc(50% - 20px); }
.vsm-col-4 { flex: 0 0 calc(33.333% - 20px); }
@media (max-width: 992px) {
    .vsm-col-8, .vsm-col-6, .vsm-col-4 {
        flex: 0 0 100%;
    }
}

/* Cards */
.vsm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
}
.vsm-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.vsm-card-header h3, .vsm-card-header h4 {
    margin: 0;
    font-weight: 600;
}
.vsm-card-body {
    padding: 20px;
}
.vsm-card-body canvas {
    max-height: 250px;
    width: 100% !important;
}

/* Chart controls */
.vsm-chart-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.vsm-chart-type {
    background: #f3f4f6;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}
.vsm-chart-type.active {
    background: #4facfe;
    color: #fff;
}

/* Tables */
#vsm-orders-table_wrapper,
#vsm-top-products-table_wrapper {
    margin-top: 10px;
}
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    display: none;
}
#vsm-orders-table tbody tr {
    cursor: pointer;
}
#vsm-orders-table tbody tr:hover {
    background: #f9fafb;
}

/* Product Analytics */
#vsm-product-analytics ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#vsm-product-analytics li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
#vsm-product-analytics li:last-child {
    border-bottom: none;
}

/* Inventory Alerts */
.inventory-alert {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}
.inventory-alert.green {
    background: #d1fae5;
    color: #065f46;
}
.inventory-alert.yellow {
    background: #fef3c7;
    color: #92400e;
}
.inventory-alert.red {
    background: #fee2e2;
    color: #991b1b;
}

/* Performance Insights */
#vsm-performance-insights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#vsm-performance-insights li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
#vsm-performance-insights li:last-child {
    border-bottom: none;
}

/* Revenue Breakdown */
#vsm-revenue-breakdown ul {
    list-style: none;
    padding: 0;
}
#vsm-revenue-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.revenue-amount {
    font-weight: 600;
}

/* Dark Mode */
body.vsm-dark .vsm-card-header h3{
    color: #fff !important;
}
body.vsm-dark #vsm-dashboard-wrapper {
    background: #121212;
    color: #e0e0e0;
}
body.vsm-dark .vsm-sidebar {
    background: #1e1e2f;
}
body.vsm-dark .vsm-card,
body.vsm-dark .vsm-stat-card {
    background: #2d2d44;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.vsm-dark .vsm-stat-icon {
    background: #3b3b5c;
}
body.vsm-dark .vsm-card-header {
    border-bottom-color: #3a3a5a;
}
body.vsm-dark .vsm-filter-bar select,
body.vsm-dark .vsm-filter-bar input {
    background: #2d2d44;
    color: #e0e0e0;
    border-color: #3a3a5a;
}
body.vsm-dark #vsm-orders-table tbody tr:hover {
    background: #3a3a5a;
}
body.vsm-dark .vsm-chart-type {
    background: #3b3b5c;
    color: #e0e0e0;
}
body.vsm-dark .vsm-chart-type.active {
    background: #4facfe;
    color: #fff;
}
body.vsm-dark .dataTables_wrapper .dataTables_info,
body.vsm-dark .dataTables_wrapper .dataTables_paginate {
    color: #e0e0e0;
}
body.vsm-dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #e0e0e0 !important;
}
body.vsm-dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4facfe !important;
    color: #fff !important;
}