/**
 * DEMS (Digital Evidence Management System) Master Design System Stylesheet
 * Standardized High-Contrast Forensic Theme & CSP-Compliant CSS Suite
 * ISO/IEC 27037 & FRE 901/902 Compliant UI
 */

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-main: #0f172a;
    --bg-darker: #090d16;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-input: #0f172a;
    --bg-header: #090d16;
    --bg-sidebar: #0d1322;
    --bg-viewer: #050811;

    /* Borders */
    --border-color: #334155;
    --border-color-light: #475569;
    --border-color-dark: #1e293b;

    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-bright: #ffffff;

    /* Semantics & Status */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-subtle: rgba(59, 130, 246, 0.15);
    
    --success: #10b981;
    --success-hover: #059669;
    --success-subtle: rgba(16, 185, 129, 0.15);
    --success-text: #34d399;

    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-subtle: rgba(245, 158, 11, 0.15);
    --warning-text: #fbbf24;

    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-subtle: rgba(239, 68, 68, 0.15);
    --danger-text: #f87171;

    --info: #0ea5e9;
    --info-hover: #0284c7;
    --info-subtle: rgba(14, 165, 233, 0.15);
    --info-text: #38bdf8;

    --court-blue: #1e3a8a;
    --court-blue-hover: #1e40af;
    --purple: #8b5cf6;

    /* High-Contrast Accent */
    --neon-cyan: #00d8f6;
    --neon-cyan-hover: #00b4cc;
    --neon-cyan-subtle: rgba(0, 216, 246, 0.15);

    /* Radii & Shadows */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
}

/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-bright);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 8px;
}

p:last-child {
    margin-bottom: 0;
}

code, pre, .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

/* Custom Dark Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-light);
}

/* ==========================================================================
   3. APP SHELL LAYOUT & NAVIGATION
   ========================================================================== */
.app-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Top Header */
header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    background: var(--court-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.user-pill {
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar Navigation */
aside {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.nav-list {
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item a i {
    font-size: 16px;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.nav-item a:hover,
.nav-item a.active {
    background: var(--bg-card);
    color: #fff;
    border-left-color: var(--primary);
    text-decoration: none;
}

.nav-item a:hover i,
.nav-item a.active i {
    color: var(--primary);
}

.nav-heading {
    padding: 16px 24px 6px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 700;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 24px 32px;
    background: var(--bg-main);
    overflow-y: auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   4. CARDS & GRID SYSTEMS
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.card-flush {
    padding: 0;
    overflow: hidden;
}

.card-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.card-header-bar {
    background: var(--bg-darker);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

/* Metric / KPI Stat Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card-metric {
    position: relative;
    border-left: 4px solid var(--primary);
}

.card-metric-purple {
    border-left-color: var(--purple);
}

.card-metric-warning {
    border-left-color: var(--warning);
}

.card-metric-success {
    border-left-color: var(--success);
}

.card-metric-danger {
    border-left-color: var(--danger);
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0;
}

.metric-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Layout Grids */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-split-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.grid-split-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.grid-split-3-1 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-split-2-1,
    .grid-split-1-2,
    .grid-split-3-1,
    .grid-3col,
    .grid-4col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #475569;
    color: #fff;
}

.btn-secondary:hover {
    background: #334155;
    color: #fff;
    text-decoration: none;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: var(--success-hover);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-hover);
    color: #fff;
    text-decoration: none;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-warning:hover {
    background: var(--warning-hover);
    color: #fff;
    text-decoration: none;
}

.btn-seal {
    background: #d97706;
    color: #fff;
}

.btn-seal:hover {
    background: #b45309;
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-subtle-danger {
    background: var(--danger-subtle);
    color: var(--danger-text);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-subtle-danger:hover {
    background: var(--danger);
    color: #fff;
    text-decoration: none;
}

.btn-subtle-warning {
    background: var(--warning-subtle);
    color: var(--warning-text);
    border-color: rgba(245, 158, 11, 0.4);
}

.btn-subtle-warning:hover {
    background: var(--warning);
    color: #fff;
    text-decoration: none;
}

.btn-subtle-info {
    background: var(--info-subtle);
    color: var(--info-text);
    border-color: rgba(14, 165, 233, 0.4);
}

.btn-subtle-info:hover {
    background: var(--info);
    color: #fff;
    text-decoration: none;
}

.btn-cyan {
    background: #00d8f6 !important;
    color: #020617 !important;
    border: 1px solid #00d8f6 !important;
    font-weight: 700 !important;
}

.btn-cyan:hover {
    background: #00b4cc !important;
    border-color: #00b4cc !important;
    color: #020617 !important;
    text-decoration: none;
}

/* ==========================================================================
   5.1 PAGINATION CONTROLS
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
}

.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-item .page-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: #fff;
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.page-item.disabled .page-link {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* ==========================================================================
   6. FORMS & INPUT CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
}

.form-control::placeholder {
    color: var(--text-dim);
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 13px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

/* ==========================================================================
   7. TABLES
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

th {
    background: #182234;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

tr:hover td {
    background: var(--bg-card-hover);
}

.table-nowrap td,
.table-nowrap th {
    white-space: nowrap;
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 36px 16px;
}

/* ==========================================================================
   8. STATUS BADGES & TAG PILLS
   ========================================================================== */
.status-badge {
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.status-badge.pass {
    background: var(--success-subtle);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-badge.fail {
    background: var(--danger-subtle);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-badge.warn {
    background: var(--warning-subtle);
    color: var(--warning-text);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge.info {
    background: var(--info-subtle);
    color: var(--info-text);
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.tag-pill {
    background: #334155;
    color: #f1f5f9;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tag-pill.sealed {
    background: var(--warning-subtle);
    color: var(--warning-text);
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-weight: 700;
}

.tag-pill.active {
    background: var(--success-subtle);
    color: var(--success-text);
    font-weight: 700;
}

.tag-pill.info {
    background: var(--info-subtle);
    color: var(--info-text);
    font-weight: 700;
}

.tag-pill.muted {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

/* ==========================================================================
   9. ALERTS & BANNERS
   ========================================================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alert-success {
    background: var(--success-subtle);
    border: 1px solid var(--success);
    color: var(--success-text);
}

.alert-danger {
    background: var(--danger-subtle);
    border: 1px solid var(--danger);
    color: var(--danger-text);
}

.alert-warning {
    background: var(--warning-subtle);
    border: 1px solid var(--warning);
    color: var(--warning-text);
}

.alert-info {
    background: var(--info-subtle);
    border: 1px solid var(--info);
    color: var(--info-text);
}

.banner-box {
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.banner-box-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.banner-box-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.banner-box-info {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #bae6fd;
}

/* ==========================================================================
   10. MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-modal);
    padding: 24px;
    position: relative;
}

.modal-dialog-lg {
    max-width: 720px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* ==========================================================================
   11. AUTHENTICATION PAGES (LOGIN / 2FA / PASSWORD RESET)
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0a0e17;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: #151e2e;
    border: 1px solid #273549;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-modal);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-badge {
    background: var(--court-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
}

.auth-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-dim);
}

.totp-input-code {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 800;
    font-family: monospace;
}

.recovery-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
}

.recovery-code-pill {
    background: #090d16;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 13px;
    text-align: center;
    color: var(--info-text);
}

/* ==========================================================================
   12. FORENSIC EVIDENCE MEDIA PLAYER & HEX VIEWER
   ========================================================================== */
.media-viewport {
    background: #000;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Image Pan & Deep Zoom Viewer */
.panzoom-viewport {
    width: 100%;
    min-height: 520px;
    max-height: 580px;
    background: #050811;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.panzoom-viewport.grabbing {
    cursor: grabbing;
}

.panzoom-target {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    pointer-events: none;
    will-change: transform;
}

.panzoom-controls {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    z-index: 20;
}

.panzoom-zoom-indicator {
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-muted);
    min-width: 44px;
    text-align: center;
}

.video-container {
    width: 100%;
    position: relative;
}

.video-player {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
}

.video-watermark {
    position: absolute;
    top: 12px;
    left: 12px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    text-shadow: 1px 1px 2px #000;
    z-index: 10;
}

.hex-dump-box {
    width: 100%;
    padding: 16px;
    color: #fff;
    font-family: monospace;
    font-size: 11px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-viewer);
}

.hex-dump-pre {
    line-height: 1.6;
    color: var(--info-text);
    margin: 0;
    white-space: pre;
}

.playback-bar {
    background: #0f172a;
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

/* Dropzone & Upload Progress */
.dropzone {
    border: 2px dashed var(--border-color-light);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.dropzone-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #090d16;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.2s ease;
}

/* ==========================================================================
   13. HELPER & UTILITY CLASSES
   ========================================================================== */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }

.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-bright { color: var(--text-bright); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }
.text-info { color: var(--info-text); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.nowrap { white-space: nowrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }

.m-0 { margin: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.p-0 { padding: 0; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

