:root {
    /* Gradient Theme Colors */
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-primary-hover: linear-gradient(135deg, #7c3aed, #2563eb);
    --gradient-secondary: linear-gradient(135deg, #a78bfa, #60a5fa);
    --gradient-light: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    --gradient-success: linear-gradient(135deg, #10b981, #3b82f6);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-error: linear-gradient(135deg, #ef4444, #f97316);
    
    /* Solid Colors */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #3b82f6;
    --secondary-dark: #2563eb;
    --secondary-light: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Background Colors - White Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    
    /* Text Colors */
    --text-primary: #a78bfa;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #c4b5fd;
    --text-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
    
    /* Border Colors */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    
    /* Shadow with Purple-Blue Tint */
    --shadow-sm: 0 1px 2px 0 rgba(99, 102, 241, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(139, 92, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(139, 92, 246, 0.15), 0 4px 6px -2px rgba(59, 130, 246, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(139, 92, 246, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-mix: 0 0 20px rgba(139, 92, 246, 0.2), 0 0 30px rgba(59, 130, 246, 0.2);
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
    --space-3xl: 2rem;
    --space-4xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Poppins', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-secondary);
    position: relative;
}

/* Desktop Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: width var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-details,
.sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: var(--space-lg) 0;
}

.sidebar.collapsed .nav-item i {
    margin: 0;
    font-size: 1.25rem;
}

.sidebar.collapsed .sidebar-footer .user-info {
    justify-content: center;
}

.sidebar-header {
    padding: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-sidebar);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: all var(--transition-normal);
}

.sidebar.collapsed .logo-img {
    height: 32px;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.sidebar-toggle:hover {
    background: var(--gradient-light);
    border-color: var(--primary);
    transform: scale(1.1);
}

.sidebar-content {
    flex: 1;
    padding: var(--space-xl) 0;
    overflow-y: auto;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: var(--space-xl);
}

.nav-section-title {
    padding: var(--space-md) var(--space-2xl);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    font-weight: 700;
    white-space: nowrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-2xl);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--gradient-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.nav-item.active i {
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-xl) var(--space-2xl);
    border-top: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.user-info:hover {
    background: var(--gradient-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-glow-mix);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.user-details {
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Sidebar */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--bg-sidebar);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    padding: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-sidebar);
}

.mobile-logo-img {
    height: 32px;
    width: auto;
}

.mobile-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-close-btn:hover {
    background: var(--error-light);
    color: var(--error);
    border-color: var(--error);
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl) 0;
}

.mobile-sidebar-footer {
    padding: var(--space-xl) var(--space-2xl);
    border-top: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-secondary);
    transition: margin-left var(--transition-normal);
    position: relative;
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.top-header {
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--gradient-light);
    border-color: var(--primary);
    transform: scale(1.05);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

/* Content Wrapper */
.content-wrapper {
    padding: var(--space-2xl);
    min-height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    position: relative;
    padding-bottom: 80px;
}

/* Page Card */
.page-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.page-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* ============================================ */
/* COLUMN GRID LAYOUTS - CORE OF YOUR REQUEST  */
/* ============================================ */

/* Main Form Grid - 2+ Columns */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Stats Grid - Responsive Columns */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* Products Grid - Card Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* Generic Responsive Grid (Add this when you need a flexible grid) */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* Two Column Split (For Settings/Layouts) */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

/* Three Column Split (For Dashboards) */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

/* Four Column Split (For Metrics) */
.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
}

/* Form Sections Styling */
.form-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.section-title {
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.25rem;
}

/* Input & Textarea Icons */
.input-with-icon, .textarea-with-icon {
    position: relative;
}

.input-with-icon i, .textarea-with-icon i {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--primary-color);
}

.input-with-icon input {
    padding-left: 40px !important;
}

.textarea-with-icon textarea {
    padding-left: 40px !important;
    padding-top: 12px;
}

/* Counters & Hints */
.counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
}

.price-hint, .productname-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.productname-hint small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
}

.productname-validation {
    margin-top: 4px;
    font-size: 0.85rem;
}

.productname-error {
    color: var(--error);
}
.productname-available {
    color: var(--success);
}
.productname-unavailable {
    color: var(--error);
}
.productname-checking {
    color: var(--text-secondary);
}
.productname-info {
    color: var(--primary-color);
}

/* Category & Sub-Category Search */
.category-search, .sub-category-search {
    position: relative;
    margin-bottom: 1rem;
}

.category-search i, .sub-category-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.category-search input, .sub-category-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.selection-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
}

.category-option {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-option:hover {
    border-color: var(--primary-color);
}
.category-option.selected {
    background: var(--primary-color);
    color: var(--text-white);
}

.selected-category-display {
    margin-top: 1rem;
}
.selected-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
}

/* Sub Categories */
.sub-category-container {
    margin-top: 0.5rem;
}
.sub-category-selection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
}
.sub-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sub-category-chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    background: var(--color-white);
    transition: all 0.2s;
}
.sub-category-chip:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}
.sub-category-chip.selected {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Selected Tags */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.selected-tag {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Thumbnail Upload */
.thumbnail-upload-box {
    position: relative;
    overflow: hidden;
}
.thumbnail-preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    position: relative;
}
.thumbnail-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}
.thumbnail-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.thumbnail-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.thumbnail-remove-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* File Upload Box */
.file-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}
.file-info {
    margin-top: 1rem;
}
.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--color-gray-100);
    border-radius: 8px;
}
.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--error);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        45deg,
        rgba(196, 181, 253, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(196, 181, 253, 0.2) 50%,
        rgba(196, 181, 253, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Stat Cards & Product Cards */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}
.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.3;
}
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-glow-mix);
}
.btn-primary:hover {
    background: var(--gradient-primary-hover);
    box-shadow: var(--shadow-glow);
}
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: transparent;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}
.form-control:hover {
    border-color: var(--primary);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}
.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--info);
    color: #1e40af;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-approved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
    color: #065f46;
    border: 1px solid var(--success);
}
.status-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
    color: #92400e;
    border: 1px solid var(--warning);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: var(--space-2xl) 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    background: var(--bg-tertiary);
    padding: var(--space-lg);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.table td {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}
.table tr:hover td {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(59, 130, 246, 0.02));
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--shadow-glow-mix);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes progress-stripes {
    0% { background-position: 20px 0; }
    100% { background-position: 0 0; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.dashboard-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-gradient {
    background: var(--gradient-primary);
}
.bg-gradient-light {
    background: var(--gradient-light);
}
.border-gradient {
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}
.shadow-glow {
    box-shadow: var(--shadow-glow-mix);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    .sidebar .nav-text,
    .sidebar .user-details,
    .sidebar .nav-section-title {
        display: none;
    }
    .sidebar .nav-item {
        justify-content: center;
        padding: var(--space-lg) 0;
    }
    .sidebar .nav-item i {
        margin: 0;
        font-size: 1.25rem;
    }
    .sidebar .sidebar-footer .user-info {
        justify-content: center;
    }
    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    /* Column Adjustments for Tablets */
    .four-columns, .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .top-header {
        padding: 0 var(--space-lg);
    }
    .content-wrapper {
        padding: var(--space-lg);
    }
    .page-title {
        font-size: 1.25rem;
    }
    
    /* Column Adjustments for Mobile */
    .form-grid,
    .stats-grid,
    .products-grid,
    .responsive-grid,
    .two-columns,
    .three-columns,
    .four-columns {
        grid-template-columns: 1fr;
    }
    
    .page-card {
        padding: var(--space-xl);
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-header,
    .mobile-menu-btn,
    .btn,
    .form-actions,
    .file-upload-box,
    .loading-overlay {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
    }
    .content-wrapper {
        padding: 0;
    }
    .page-card {
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    .page-card::before {
        display: none;
    }
}
