/* Admin Control Panel Stylesheet - High Density & Compact Layout */
:root {
    --bg-dark: #090d16;
    --sidebar-bg: #0f172a;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    font-size: 13px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; 
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

body {
    display: flex;
}

/* Layout */
.admin-sidebar {
    width: 220px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--card-border);
}

.brand-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.brand-text {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.menu-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.menu-item:hover, .menu-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
}

.menu-item.active {
    border-left: 3px solid var(--primary);
    color: #a5b4fc;
}

.sidebar-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--card-border);
    font-size: 0.78rem;
}

/* Main Content Area */
.admin-content {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: calc(100vw - 220px);
    width: calc(100vw - 220px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.admin-header {
    height: 46px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-title {
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

.page-body {
    padding: 14px 16px;
    flex: 1;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Metrics Row */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.metric-box:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.metric-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.1;
}

.metric-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.metric-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Card Container */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
    gap: 10px;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 700;
}

/* Tables & Strict Horizontal Scroll Prevention */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    margin-bottom: 4px;
}

table.data-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
    table-layout: auto;
}

table.data-table th {
    background: rgba(15, 23, 42, 0.7);
    padding: 8px 10px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}

table.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
}

table.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* Truncated code / text in tables */
.cell-code {
    font-family: monospace;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a5b4fc;
    display: inline-block;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.cell-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Form Controls */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #cbd5e1;
}

.form-control {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 7px 10px;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

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

.btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-secondary { background: #334155; color: #cbd5e1; }
.btn-secondary:hover { background: #475569; }

.btn-sm {
    padding: 4px 8px;
    font-size: 0.72rem;
    border-radius: 5px;
}

/* Status Badges */
.status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 5px;
    display: inline-block;
    white-space: nowrap;
}

.pill-active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pill-maintenance { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pill-disabled { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.pill-expired { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Alerts */
.alert {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }

/* Responsive adjustments */
@media (max-width: 860px) {
    .admin-sidebar { width: 60px; }
    .sidebar-header .brand-text, .menu-item span, .sidebar-footer { display: none; }
    .admin-content { margin-left: 60px; max-width: calc(100vw - 60px); width: calc(100vw - 60px); }
    .page-body { padding: 10px 12px; }
}

/* Upload Dropzone & Installer Banner */
.upload-dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.4);
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.archive-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--secondary);
    margin: 2px;
}

.installer-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.installer-banner-icon {
    font-size: 1.6rem;
}

.installer-banner-info {
    flex: 1;
}

.installer-banner-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #34d399;
    margin-bottom: 2px;
}

.installer-banner-text {
    font-size: 0.78rem;
    color: #e2e8f0;
}

.installer-banner-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.installer-banner-btn:hover {
    transform: translateY(-1px);
}

/* Traffic Analytics & Chart Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-body {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 180px;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-flex-container {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.chart-sub-box {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .chart-body {
        height: auto;
        min-height: 180px;
    }
    .chart-flex-container {
        flex-direction: column;
        height: auto;
    }
    .chart-sub-box {
        height: 160px;
    }
}

.duration-pill {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
}

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.78rem;
}

.os-browser-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.72rem;
    color: #e2e8f0;
}

.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Project Manager (PM) Module Styles */
.pm-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    margin-bottom: 14px;
    overflow-x: auto;
}

.pm-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pm-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.pm-tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Kanban Board Layout */
.kanban-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 992px) {
    .kanban-grid {
        grid-template-columns: 1fr;
    }
}

.kanban-col {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--card-border);
}

.kanban-col-title {
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kanban-col-count {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kanban-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    cursor: grab;
    position: relative;
}

.kanban-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.prio-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.prio-urgent { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.prio-high { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.prio-medium { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.prio-low { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.project-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    padding: 1px 5px;
    border-radius: 3px;
}

.kanban-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.kanban-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
}

.assignee-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #cbd5e1;
    font-weight: 600;
}

.avatar-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gantt Chart Layout */
.gantt-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow-x: auto;
    position: relative;
    max-width: 100%;
}

.gantt-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.gantt-header {
    background: rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.gantt-th {
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--card-border);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.gantt-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.gantt-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.gantt-td {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-bar-cell {
    position: relative;
    padding: 6px 10px;
    height: 40px;
}

.gantt-track-bg {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.gantt-bar-item {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.gantt-bar-item.done {
    background: linear-gradient(90deg, #10b981, #059669);
}

.gantt-bar-item.todo {
    background: linear-gradient(90deg, #64748b, #475569);
}

/* Modals */
.pm-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pm-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.pm-modal {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    transform: translateY(14px);
    transition: transform 0.2s ease;
}

.pm-modal-backdrop.show .pm-modal {
    transform: translateY(0);
}

.pm-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-modal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.pm-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

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

.pm-modal-body {
    padding: 16px 18px;
}

.pm-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: rgba(15, 23, 42, 0.4);
}

/* Cost & Budgeting Progress Bar */
.budget-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.bg-success-gradient { background: linear-gradient(90deg, #10b981, #34d399); }
.bg-warning-gradient { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bg-danger-gradient { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Upload & Extract Progress Bar */
.upload-progress-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: none;
}

.upload-progress-card.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upload-progress-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-progress-percent {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: monospace;
}

.upload-progress-track {
    width: 100%;
    height: 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    border-radius: 6px;
    transition: width 0.2s linear;
    position: relative;
}

.upload-progress-fill.extracting {
    background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981, #6366f1);
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
}

.upload-progress-fill.completed {
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 100% !important;
}

.upload-progress-fill.error {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

@keyframes progressShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.upload-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.progress-steps-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.progress-step-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.progress-step-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.progress-step-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.progress-step-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    flex-shrink: 0;
}

.progress-step-item.active .progress-step-icon {
    background: var(--primary);
    color: #fff;
}

.progress-step-item.completed .progress-step-icon {
    background: #10b981;
    color: #fff;
}

