/* ==========================================================
 * Consolidated Style Sheet (style.css)
 * Enhanced with Modern Download UI & Categories
 * LOGO SIZES REDUCED
 * ========================================================== */

/* --- 1. Color Variables --- */
:root {
    --bg-color: #0f0f0f;
    --surface-color: #1a1a1a;
    --surface-elevated: #242424;
    --text-color: #ffffff;
    --text-color-secondary: #b3b3b3;
    --text-color-muted: #808080;
    --border-color: #333333;
    --border-color-light: #404040;
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --success-color: #00b894;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --delete-color: #e74c3c;
    --promote-color: #9b59b6;
    --edit-color: #f39c12;

    /* Enhanced shadows and effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.45);
    
    /* Spacing system */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* --- 2. Base Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #1a1a1a 100%);
    color: var(--text-color);
    margin: 0;
    padding: var(--space-lg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    min-height: 100vh;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
h1, h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-top: 25px;
    margin-bottom: 25px;
}
h1 { font-size: 2.4em; font-weight: 300; }
h2 { font-size: 1.8em; font-weight: 400; }
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #0097a7;
}
.sub-link {
    display: block;
    margin-top: 10px;
    color: var(--text-color-light);
    font-size: 0.9em;
}

/* --- 3. Message Boxes --- */
.message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: block;
    margin-bottom: 25px;
    border-left: 4px solid;
}
.message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--error-color);
    color: var(--error-color);
}
.message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

/* --- 4. Navigation --- */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--surface-elevated), var(--surface-color));
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-sm);
}
.header-nav .nav-links {
    display: flex;
    gap: var(--space-sm);
}
.header-nav a {
    color: var(--text-color-secondary);
    text-decoration: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    background-color: transparent;
    font-weight: 500;
    position: relative;
}
.header-nav a:hover {
    background-color: var(--surface-elevated);
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.header-nav .active-link {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    box-shadow: var(--shadow-md);
}
.welcome-message { 
    font-size: 1.1em; 
    font-weight: 600; 
    color: var(--text-color); 
    padding: 12px 0; 
    text-align: center;
    background: linear-gradient(135deg, var(--surface-color), #2a2a2a);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- 5. Forms (Auth & Admin) --- */
.auth-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 35px;
    background: linear-gradient(145deg, var(--surface-color), #2a2a2a);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
}
.auth-links-group {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.auth-links-group .sub-link {
    text-align: center; 
    margin: 0; 
}
.form-section {
    margin-bottom: 40px;
    background: linear-gradient(145deg, #2c2c2c, #262626);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-light);
    display: block;
}
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="file"], 
input[type="number"],
textarea, 
select {
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    background-color: var(--surface-color);
    color: var(--text-color);
    width: 100%;
    font-size: 1em;
    transition: var(--transition-normal);
    font-family: inherit;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="file"]:focus, 
input[type="number"]:focus,
textarea:focus, 
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: var(--surface-elevated);
}

input:invalid {
    border-color: var(--error-color);
}

input:valid {
    border-color: var(--success-color);
}

.form-group {
    position: relative;
}

.form-error {
    color: var(--error-color);
    font-size: 0.85em;
    margin-top: var(--space-xs);
    display: block;
}

.form-success {
    color: var(--success-color);
    font-size: 0.85em;
    margin-top: var(--space-xs);
    display: block;
}
textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* --- 6. Buttons & Action Links --- */
button, .action-btn, .download-btn, .clear-filters-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
}
button:hover, .action-btn:hover, .download-btn:hover, .clear-filters-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #003d82);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
button:active, .action-btn:active, .download-btn:active, .clear-filters-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Button Width Adjustments */
.auth-form button, .download-btn {
    width: 100%;
}

/* Specific Action Buttons */
.action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.action-cell a { 
    margin: 3px 0; 
    font-size: 0.9em;
}

.btn-edit { background: linear-gradient(135deg, var(--edit-color), #b37400); }
.btn-edit:hover { background: linear-gradient(135deg, #bf7300, #996300); }
.btn-disable { background: linear-gradient(135deg, #dc3545, #a71e2a); }
.btn-disable:hover { background: linear-gradient(135deg, #c82333, #8b1a24); }
.btn-enable { background: linear-gradient(135deg, var(--success-color), #1e7e34); }
.btn-enable:hover { background: linear-gradient(135deg, #218838, #186429); }
.btn-delete { background: linear-gradient(135deg, var(--delete-color), #a71e2a); }
.btn-delete:hover { background: linear-gradient(135deg, #c82333, #8b1a24); }
.btn-promote { background: linear-gradient(135deg, var(--promote-color), #55308b); }
.btn-promote:hover { background: linear-gradient(135deg, #5a35a6, #45257a); }

.clear-filters-btn {
    background: linear-gradient(135deg, #6c757d, #545b62);
}
.clear-filters-btn:hover {
    background: linear-gradient(135deg, #5a6268, #484e53);
}

/* --- 7. Tables (Admin & Product Lists) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 35px;
    background: linear-gradient(145deg, #2c2c2c, #262626);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
th, td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}
th {
    background: linear-gradient(135deg, #333333, #2a2a2a);
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}
tr:nth-child(even) {
    background-color: #202020;
}
tr:hover {
    background-color: #2a2a2a;
}
tr:last-child td {
    border-bottom: none;
}

/* --- 8. Status & Role Badges --- */
.status-active, .status-inactive, .status-unverified, .role-admin, .role-user, .product-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    letter-spacing: 0.5px;
}
.status-active, .product-status.active { 
    background: linear-gradient(135deg, var(--success-color), #1e7e34); 
    color: white; 
}
.status-inactive, .product-status.disabled { 
    background: linear-gradient(135deg, var(--error-color), #a71e2a); 
    color: white; 
}
.status-unverified { 
    background: linear-gradient(135deg, var(--warning-color), #d39e00); 
    color: #1a1a1a; 
}
.role-admin { 
    background: linear-gradient(135deg, var(--promote-color), #55308b); 
    color: white; 
}
.role-user { 
    background: linear-gradient(135deg, #6c757d, #545b62); 
    color: white; 
}
.file-status { font-size: 0.9em; color: var(--text-color-light); }
.file-status.new { color: var(--success-color); }

/* --- 9. Modern Download List Layout - REDUCED LOGO SIZES --- */
.category-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 15px;
    background: linear-gradient(145deg, #2c2c2c, #262626);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.category-btn {
    padding: 12px 24px;
    background: linear-gradient(145deg, var(--surface-color), #2a2a2a);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95em;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Modern Product Grid */
.modern-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.product-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--surface-elevated), #2a2a2a);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px; /* Reduced from 18px */
}

/* REDUCED LOGO SIZES */
.product-logo-modern {
    width: 45px;  /* Reduced from 65px */
    height: 45px; /* Reduced from 65px */
    object-fit: contain;
    border-radius: 8px; /* Smaller radius */
    margin-right: 15px; /* Reduced from 18px */
    background: var(--bg-color);
    padding: 4px; /* Reduced padding */
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-info-modern {
    flex: 1;
}

.product-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.product-version {
    color: var(--primary-color);
    font-size: 0.95em;
    font-weight: 500;
}

.product-description {
    color: var(--text-color-light);
    font-size: 0.92em;
    line-height: 1.5;
    margin-bottom: 18px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.85em;
}

.product-category {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.product-size {
    color: var(--text-color-light);
    font-weight: 500;
}

/* Batch Download Controls */
.batch-download-section {
    background: linear-gradient(145deg, var(--surface-color), #2a2a2a);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.batch-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.selected-count {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
}

.batch-actions {
    display: flex;
    gap: 12px;
}

.checkbox-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.product-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.product-checkbox:hover {
    transform: scale(1.2);
}

/* Version grouping */
.version-group {
    margin-bottom: 40px;
}

.version-header {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--border-color);
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-color-light);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3.5em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- 10. Dashboard/KPI Styles --- */
.dashboard-container {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.kpi-box {
    flex: 1;
    min-width: 220px;
    background: linear-gradient(145deg, var(--surface-color), #2a2a2a);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.kpi-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.kpi-box p {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    color: var(--text-color-light);
    font-weight: 500;
}

.kpi-box h3 {
    margin: 0;
    font-size: 2.4em;
    color: var(--text-color);
    font-weight: 300;
}

/* --- 11. Product Breakdown/List Styles --- */
.product-breakdown {
    background: linear-gradient(145deg, var(--surface-color), #2a2a2a);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.product-breakdown h3 {
    color: var(--text-color);
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
    font-weight: 600;
}
.breakdown-list {
    list-style: none;
    padding: 0;
}
.breakdown-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dotted #444;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
}
.breakdown-list li:hover {
    background-color: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
}
.breakdown-list li:last-child {
    border-bottom: none;
}

/* --- 12. Download Report Dashboard --- */
.filter-form {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    background: linear-gradient(145deg, #333333, #2a2a2a);
    border-radius: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}
.kpi-dashboard {
    display: flex;
    gap: 25px;
    margin-bottom: 45px;
}
.kpi-card {
    flex: 1;
    background: linear-gradient(145deg, #333333, #2a2a2a);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.kpi-card h3 {
    margin-top: 0;
    font-size: 1.15em;
    color: var(--text-color-light);
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 500;
}
.kpi-card .value {
    font-size: 2.8em;
    font-weight: 300;
    color: var(--primary-color);
    margin: 8px 0;
}
.report-content {
    display: flex;
    gap: 35px;
}

/* --- 13. Table Logo Sizes - REDUCED --- */
.product-logo-thumb {
    width: 35px;  /* Reduced from 50px */
    height: 35px; /* Reduced from 50px */
    object-fit: contain;
    margin-right: 10px; /* Reduced from 15px */
    border-radius: 4px; /* Smaller radius */
    flex-shrink: 0;
}

/* Form logo sizes */
.form-section .product-logo-thumb {
    width: 30px;  /* Reduced from 40px */
    height: 30px; /* Reduced from 40px */
    vertical-align: middle;
}

/* Alternative logo placeholder for smaller size */
.product-logo-modern[style*="background"] {
    font-size: 1em; /* Reduced from 1.2em */
    font-weight: 600;
}

/* --- 14. Responsive Adjustments --- */
@media (max-width: 1200px) {
    .modern-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 900px) {
    .report-content {
        flex-direction: column;
    }
    .product-breakdown {
        flex: none;
        width: 100%;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .kpi-dashboard {
        flex-direction: column;
    }
    .modern-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .kpi-box, .product-breakdown {
        min-width: 100%;
        flex: none;
    }
    .batch-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .batch-actions {
        justify-content: center;
    }
    
    .smart-nav-cards {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}
}

@media (max-width: 600px) {
    .container {
        padding: var(--space-lg);
    }
    
    .company-header {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .company-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .system-name {
        font-size: 1.8em;
    }
    
    .smart-nav-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .nav-card {
        min-height: 120px;
        padding: var(--space-lg);
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .search-filter-bar,
    .advanced-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: none;
    }
    
    .filter-actions {
        justify-content: space-between;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .category-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .batch-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .batch-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .resource-actions {
        flex-direction: column;
    }
}
    .header-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-nav .nav-links {
        flex-direction: column;
        width: 100%;
    }
    .header-nav a {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        text-align: center;
    }
    .action-cell {
        flex-direction: column;
        align-items: stretch;
    }
    .action-cell a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .modern-product-grid {
        grid-template-columns: 1fr;
    }
    .product-card-header {
        flex-direction: column;
        text-align: center;
    }
    .product-logo-modern {
        width: 40px; /* Slightly smaller on mobile */
        height: 40px;
        margin-right: 0;
        margin-bottom: 12px;
        align-self: center;
    }
    .product-logo-thumb {
        width: 30px; /* Smaller on mobile */
        height: 30px;
        margin-right: 8px;
    }
}

/* =========================
   UX INTEGRATION - Option B
   (Additive & Scoped Enhancements)
   Inserted: comprehensive UX polish
   ========================= */

/* -- Typography refinements (non-invasive) -- */
.ux-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text-color);
}
.ux-subtitle {
    color: var(--text-color-light);
    font-weight: 500;
}

/* -- Micro shadows & hover glow -- */
.ux-card-elev { box-shadow: var(--card-elev) !important; }
.ux-card-elev-strong { box-shadow: var(--card-elev-strong) !important; }

/* -- Improved hover for all cards (opt-in) -- */
.ux-hover {
    transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s cubic-bezier(.2,.9,.3,1) !important;
}
.ux-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-elev-strong) !important;
    border-color: rgba(0,123,255,0.45) !important;
}

/* -- Selected card highlight (opt-in) -- */
.product-card.selected, .version-card.selected {
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 32px rgba(0,123,255,0.22) !important;
    background: linear-gradient(145deg, #15171b, #191c20) !important;
    transform: translateY(-4px);
}

/* -- Smooth collapse/expand for version groups (non-destructive) -- */
.ux-collapse {
    overflow: hidden;
    transition: max-height 0.36s cubic-bezier(.22,.9,.26,1), opacity 0.28s ease;
    opacity: 1;
}
.ux-collapse.collapsed { opacity: 0; }

/* -- Category filter bar (floating subtle depth) -- */
.ux-category-bar {
    position: sticky;
    top: 12px;
    z-index: 45;
    background: linear-gradient(145deg, rgba(36,36,36,0.95), rgba(34,34,34,0.95));
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

/* -- Select all / filter utilities -- */
.select-all-wrapper { display:flex; align-items:center; gap:12px; }
.select-all-btn {
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #444, #3a3a3a);
    color: var(--text-color);
    border: 1px solid #3a3a3a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.select-all-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }

/* -- Batch download sticky refinement -- */
.batch-download-section.ux-sticky {
    position: sticky;
    top: 16px;
    z-index: 60;
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
    border-radius: 12px;
}

/* -- Checkbox enhancements (better hit area) -- */
.product-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transform: scale(1.12);
    transition: transform 0.15s ease;
}
.product-checkbox:focus-visible { outline: 3px solid rgba(0,123,255,0.14); border-radius: 4px; }

/* -- Card click-target improvements (opt-in via JS) -- */
.card-clickable { cursor: pointer; user-select: none; }

/* -- Utility spacing & text -- */
.ux-gap10 { gap: 10px !important; }
.ux-gap16 { gap: 16px !important; }
.ux-muted { color: var(--muted-2) !important; }
.ux-text-small { font-size: 0.86em !important; }
.ux-divider { border-top: 1px solid rgba(255,255,255,0.03); margin: 18px 0; }

/* -- Focus & accessibility helpers -- */
:focus-visible { outline: 3px solid rgba(0,123,255,0.12); outline-offset: 2px; }

/* -- Smooth scrollbar (non-invasive) -- */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.2);
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* -- Micro copy / helper badges -- */
.ux-badge {
    display:inline-block;
    padding:4px 8px;
    border-radius:8px;
    font-size:0.78em;
    background: rgba(255,255,255,0.03);
    color: var(--text-color-light);
    border: 1px solid rgba(255,255,255,0.02);
}

/* -- Small typography changes you can opt-in per heading -- */
.ux-hint { font-size: 0.9em; color: var(--text-color-light); }

/* -- Minor layout improvements for versions list (responsive) -- */
.ux-versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

/* -- Minor improvements for master product header card -- */
.master-product-title.ux-strong { font-weight: 800; font-size: 1.12em; letter-spacing: 0.2px; }

/* -- Animation helpers for subtle delays (optional use) -- */
.ux-fade-in { animation: uxFadeIn 0.45s ease both; }
@keyframes uxFadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

/* -- Safety: prevent global overrides (scoped classes only) -- */
/* Nothing below this line touches your base selectors (product-card, buttons, etc.) */

/* -- Responsive toggles for small screens -- */
@media (max-width: 900px) {
    .ux-category-bar { position: relative; top: 0; box-shadow: none; padding: 12px; }
    .ux-versions-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .select-all-btn { padding: 8px 12px; font-size: 0.92em; }
}

/* =============================== */
/* COMPANY HEADER & SMART NAVIGATION */
/* =============================== */

/* Company Header */
.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
}

.company-logo {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    box-shadow: var(--shadow-md);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.company-info {
    display: flex;
    flex-direction: column;
}

.system-name {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.company-tagline {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--surface-elevated);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.user-avatar {
    font-size: 2em;
    color: var(--primary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95em;
}

.user-role {
    font-size: 0.8em;
    color: var(--text-color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    padding: var(--space-sm);
    color: var(--text-color-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    margin-left: var(--space-sm);
}

.logout-btn:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

/* Smart Card Navigation */
.smart-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.nav-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
    justify-content: center;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.nav-card.active {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.nav-card.active .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-bottom: var(--space-md);
    transition: var(--transition-normal);
}

.card-icon.dashboard { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.card-icon.resources { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.card-icon.manage { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; }
.card-icon.analytics { background: linear-gradient(135deg, #43e97b, #38f9d7); color: white; }
.card-icon.security { background: linear-gradient(135deg, #fa709a, #fee140); color: white; }

.card-content h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.1em;
    font-weight: 600;
}

.card-content p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.8;
}

.nav-card.active .card-content p {
    opacity: 0.9;
}

/* =============================== */
/* PROFESSIONAL DASHBOARD COMPONENTS */
/* =============================== */

/* Navigation Brand */
.nav-brand h2 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
    font-size: 1.4em;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--surface-elevated), var(--surface-color));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border-color);
}

.welcome-section h1 {
    margin: 0 0 var(--space-md) 0;
    font-size: 2.5em;
    font-weight: 300;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: var(--text-color-secondary);
    font-size: 1.1em;
    margin: 0;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.stat-content h3 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 600;
    color: var(--text-color);
}

.stat-content p {
    margin: var(--space-xs) 0 0 0;
    color: var(--text-color-secondary);
    font-size: 0.9em;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: var(--space-2xl);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.action-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.action-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.action-card h3 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.1em;
    font-weight: 600;
}

.action-card p {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: 0.9em;
}

/* Categories Section */
.categories-section, .recent-section {
    margin-bottom: var(--space-2xl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.category-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3em;
    flex-shrink: 0;
}

.category-card h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.1em;
    font-weight: 600;
}

.category-card p {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: 0.9em;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.resource-card-mini {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.resource-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resource-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.resource-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
    flex-shrink: 0;
}

.resource-info h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
}

.resource-category {
    font-size: 0.8em;
    color: var(--text-color-secondary);
    background: var(--surface-elevated);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.resource-desc {
    color: var(--text-color-secondary);
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.download-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition-normal);
}

.download-btn-mini:hover {
    background: linear-gradient(135deg, var(--primary-hover), #003d82);
    transform: translateY(-1px);
}

/* =============================== */
/* PROFESSIONAL RESOURCE CENTER */
/* =============================== */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.page-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 2.5em;
    font-weight: 300;
}

.page-subtitle {
    color: var(--text-color-secondary);
    font-size: 1.1em;
    margin: 0;
}

/* Advanced Filter Bar */
.advanced-filter-bar {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.search-section {
    margin-bottom: var(--space-lg);
}

.filter-section {
    display: flex;
    align-items: end;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-color-secondary);
}

.filter-select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.9em;
}

/* Category Navigation */
.category-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.category-tabs {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 500;
}

.category-tab:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.category-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.category-tab.active .category-count {
    background: rgba(255,255,255,0.3);
}

.view-options {
    display: flex;
    gap: var(--space-xs);
}

.view-btn {
    padding: var(--space-md);
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Resource Cards */
.resources-container {
    position: relative;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.resource-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.resource-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.resource-type {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-badge {
    background: var(--warning-color);
    color: white;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7em;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.meta-left {
    flex: 1;
}

.resource-category {
    background: var(--surface-elevated);
    color: var(--text-color-secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.resource-tags {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    flex-wrap: wrap;
}

.tag {
    background: var(--info-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
}

.tag-more {
    background: var(--text-color-muted);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7em;
}

.meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.file-size,
.download-count {
    color: var(--text-color-secondary);
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.resource-actions .download-btn {
    flex: 1;
}

.action-btn.secondary {
    background: var(--surface-elevated);
    border: 2px solid var(--border-color);
    color: var(--text-color-secondary);
    padding: var(--space-md);
    min-width: auto;
}

.action-btn.secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Batch Operations Panel */
.batch-operations-panel {
    position: sticky;
    top: var(--space-lg);
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    color: white;
}

.batch-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
}

.batch-actions {
    display: flex;
    gap: var(--space-md);
}

.batch-actions .action-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.batch-actions .action-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.batch-actions .action-btn.primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.batch-actions .action-btn.primary:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}

/* =============================== */
/* RESOURCE MANAGEMENT INTERFACE */
/* =============================== */

/* Management Statistics */
.management-stats {
    margin-bottom: var(--space-2xl);
}

.quick-management-actions {
    margin-bottom: var(--space-2xl);
}

/* Approval Section */
.approval-section {
    margin-bottom: var(--space-2xl);
}

.approval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.approval-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.approval-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.approval-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
}

.approval-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.approval-status.pending {
    background: var(--warning-color);
    color: white;
}

.approval-status.approved {
    background: var(--success-color);
    color: white;
}

.approval-status.rejected {
    background: var(--error-color);
    color: white;
}

.approval-details {
    margin-bottom: var(--space-lg);
}

.approval-details p {
    margin: var(--space-xs) 0;
    font-size: 0.9em;
    color: var(--text-color-secondary);
}

.approval-details strong {
    color: var(--text-color);
    font-weight: 600;
}

.approval-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.approval-actions .action-btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.9em;
    padding: var(--space-sm) var(--space-md);
}

/* Category Management */
.category-management {
    margin-bottom: var(--space-2xl);
}

.categories-list {
    margin-top: var(--space-lg);
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: var(--transition-normal);
}

.category-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.category-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.category-item .category-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3em;
}

.category-details h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
}

.category-details p {
    margin: 0;
    color: var(--text-color-secondary);
    font-size: 0.9em;
}

.category-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Responsive Design for Management Interface */
@media (max-width: 768px) {
    .approval-grid {
        grid-template-columns: 1fr;
    }
    
    .approval-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .approval-actions {
        flex-direction: column;
    }
    
    .approval-actions .action-btn {
        flex: none;
    }
    
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .category-info {
        width: 100%;
    }
    
    .category-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =============================== */
/* ENTERPRISE PROFESSIONAL COMPONENTS */
/* =============================== */

/* Analytics Dashboard */
.analytics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.timeframe-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.timeframe-selector label {
    font-weight: 600;
    color: var(--text-color-secondary);
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.kpi-card {
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-trend {
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: var(--space-xs);
    display: inline-block;
}

.kpi-trend.positive {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success-color);
}

.kpi-trend.negative {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
}

.kpi-trend.neutral {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-color-muted);
}

.analytics-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.chart-container {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.1em;
    color: var(--text-color);
}

.analytics-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.table-section {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.analytics-table {
    margin-top: var(--space-lg);
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Security Center */
.security-status {
    margin-bottom: var(--space-2xl);
}

.status-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(145deg, var(--surface-color), var(--surface-elevated));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.status-card.secure {
    border-left: 4px solid var(--success-color);
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    background: var(--success-color);
}

.status-text {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--success-color);
    margin: 0;
}

.security-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
}

.metric-icon.warning { background: var(--warning-color); }
.metric-icon.danger { background: var(--error-color); }
.metric-icon.info { background: var(--info-color); }

.metric-content h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color);
}

.metric-content p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color-secondary);
}

.security-controls {
    margin-bottom: var(--space-2xl);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.control-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.control-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.control-card h4 {
    margin: 0 0 var(--space-sm) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-color);
}

.control-card p {
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-color-secondary);
    font-size: 0.9em;
}

.security-events,
.failed-logins {
    margin-bottom: var(--space-2xl);
}

.events-table {
    margin-top: var(--space-lg);
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.severity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.low { background: var(--info-color); color: white; }
.severity-badge.medium { background: var(--warning-color); color: white; }
.severity-badge.high { background: var(--error-color); color: white; }
.severity-badge.critical { background: #8b0000; color: white; }

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-badge.blocked { background: var(--error-color); color: white; }
.status-badge.active { background: var(--success-color); color: white; }

/* Notifications */
.notification-center {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

.notification.success { border-left: 4px solid var(--success-color); }
.notification.error { border-left: 4px solid var(--error-color); }
.notification.warning { border-left: 4px solid var(--warning-color); }
.notification.info { border-left: 4px solid var(--info-color); }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.05);
}

.notification-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-color-secondary);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0;
    width: 24px;
    height: 24px;
}

.notification-body {
    padding: var(--space-lg);
}

.notification-message {
    color: var(--text-color-secondary);
    margin: 0;
    line-height: 1.4;
}

.notification-actions {
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-color);
}

/* Responsive Design for Enterprise Components */
@media (max-width: 1200px) {
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .analytics-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-controls {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .security-metrics {
        grid-template-columns: 1fr;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================== */
/* ENHANCED UI COMPONENTS */
/* =============================== */

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.95em;
    transition: var(--transition-normal);
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-btn {
    margin-left: var(--space-sm);
    padding: var(--space-md);
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-btn:hover {
    background: var(--primary-hover);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.product-count {
    color: var(--text-color-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-color-secondary);
}

.loading-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-color-secondary);
    grid-column: 1 / -1;
}

.empty-icon {
    margin-bottom: var(--space-lg);
}

.empty-actions {
    margin-top: var(--space-xl);
}

/* Professional Notifications */
.notification-center {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-md);
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}

.notification-content {
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: var(--success-color);
}

.notification.error .notification-icon {
    background: var(--error-color);
}

.notification.warning .notification-icon {
    background: var(--warning-color);
}

.notification.info .notification-icon {
    background: var(--info-color);
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-color);
}

.notification-message {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-color-secondary);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.notification-close:hover {
    background: var(--surface-color);
    color: var(--text-color);
}

/* Toast Notifications (Legacy Support) */
.toast {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-color-secondary);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-md);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

/* =============================== */
/* PROFESSIONAL LOADING STATES */
/* =============================== */

/* Enhanced Loading Overlay */
.professional-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.loader-content {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    min-width: 300px;
}

.loader-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
}

.loader-message {
    color: var(--text-color-secondary);
    font-size: 0.9em;
}

.progress-indicator {
    width: 100%;
    height: 6px;
    background: var(--surface-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: var(--space-lg);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* =============================== */
/* ENTERPRISE NOTIFICATIONS SYSTEM */
/* =============================== */

.notifications-panel {
    position: fixed;
    top: 80px;
    right: var(--space-lg);
    width: 350px;
    max-height: 500px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
}

.notifications-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.notifications-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-item:hover {
    background: var(--surface-color);
}

.notification-item.unread {
    background: rgba(0, 102, 204, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 var(--space-xs) 0;
    font-size: 0.9em;
}

.notification-item-message {
    color: var(--text-color-secondary);
    font-size: 0.8em;
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.3;
}

.notification-item-time {
    color: var(--text-color-muted);
    font-size: 0.7em;
}

.notifications-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notifications-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

/* Notification Bell Icon */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.notification-bell:hover {
    background: var(--surface-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* =============================== */
/* GLOBAL DOWNLOAD LOADER OVERLAY  */
/* =============================== */

.download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

/* Enterprise Loading States */
.enterprise-loader {
    text-align: center;
    background: var(--surface-elevated);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    min-width: 300px;
}

.loader-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    animation: pulse 2s infinite;
}

.loader-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
}

.loader-subtitle {
    color: var(--text-color-secondary);
    margin-bottom: var(--space-lg);
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--space-lg);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.download-modal {
    background: linear-gradient(145deg, #2c2c2c, #1e1e1e);
    padding: 35px;
    border-radius: 14px;
    width: 380px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.loader-spinner {
    margin: 0 auto 20px;
    width: 55px;
    height: 55px;
    border: 5px solid rgba(255,255,255,.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 10px;
    font-size: 1.1em;
    color: var(--text-color);
}

/* Progress bar container */
.progress-container {
    width: 100%;
    height: 14px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #444;
}

/* Progress fill */
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #00aaff);
    border-radius: 6px;
    transition: width 0.4s ease;
}


/* ========== End of UX INTEGRATION - Option B ========== */
