/* ── Reset navbar ── */
.navbar { display: none !important; }

.dashboard {
    display: flex; min-height: 100vh; background: #fafafb;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Sidebar (shared) ── */
.sidebar { width: 220px; background: #fff; border-right: 1.5px solid #e6ebf1; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1.5px solid #e6ebf1; }
.sidebar-logo { width: 32px; height: 32px; background: #1890ff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #1c1917; flex-shrink: 0; }
.sidebar-brand-name { font-size: 14px; font-weight: 700; color: #1c1917; }
.sidebar-nav { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 4px; font-size: 13.5px; font-weight: 500; color: #6b7280; cursor: pointer; transition: all 0.15s; border: none; background: none; text-align: left; width: 100%; text-decoration: none; font-family: inherit; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: #f5f6f7; color: #1c1917; }
.nav-item.active { background: #e6f4ff; color: #1890ff; font-weight: 600; }
.sidebar-footer { padding: 12px 10px; border-top: 1.5px solid #e6ebf1; }
.btn-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 4px; border: none; background: none; font-size: 13.5px; font-weight: 500; color: #ef4444; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-logout:hover { background: #fff4f4; }
.btn-logout svg { width: 15px; height: 15px; }

/* ── Main Content ── */
.main-content { margin-left: 220px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.view-header { background: #fff; border-bottom: 1.5px solid #e6ebf1; padding: 14px 24px; display: flex; align-items: center; gap: 12px; }
.view-header h1 { font-size: 16px; font-weight: 700; color: #1c1917; }
.view-body { padding: 16px 24px; flex: 1; }

/* ── Split Layout ── */
.split-layout { display: grid; grid-template-columns: 360px 1fr; gap: 14px; align-items: start; }

/* ── Cards ── */
.card { background: #fff; border: 1.5px solid #e6ebf1; border-radius: 4px; padding: 16px 18px; }
.upload-card { margin-bottom: 0; }
.history-card { min-height: 200px; }
.card-title { font-size: 13px; font-weight: 700; color: #1c1917; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }

/* ── Forms ── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
.form-select { width: 100%; padding: 8px 11px; background: #fafafb; border: 1.5px solid #e6ebf1; border-radius: 4px; color: #1c1917; font-size: 13px; font-family: inherit; }
.form-select:disabled { opacity: 0.6; }

/* ── Drop Zone ── */
.drop-zone { border: 2px dashed #e6ebf1; border-radius: 4px; padding: 32px 20px; text-align: center; cursor: pointer; transition: all 0.15s; background: #fafafb; }
.drop-zone:hover, .drop-zone.drag-over { border-color: #bfbfbf; background: #f5f6f7; }
.drop-zone-icon { font-size: 34px; margin-bottom: 10px; }
.drop-zone p { margin: 4px 0; font-size: 13px; color: #374151; }

/* ── File Preview ── */
.file-preview { position: relative; margin-top: 10px; border: 1.5px solid #e6ebf1; border-radius: 4px; overflow: hidden; background: #fafafb; }
.preview-file { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.preview-file-icon { font-size: 28px; }
.preview-file-name { font-size: 13px; color: #78716c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.btn-close-sm { position: absolute; top: 7px; right: 7px; background: rgba(255,255,255,0.9); border: 1px solid #e6ebf1; color: #9ca3af; font-size: 18px; cursor: pointer; padding: 1px 7px; border-radius: 5px; line-height: 1; }
.btn-close-sm:hover { color: #dc2626; background: #fff4f4; }

/* ── Upload Button ── */
.upload-btn { width: 100%; margin-top: 12px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; background: #e6ebf1; color: #1c1917; border: 1.5px solid #e6ebf1; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.btn-primary:hover { background: #bfbfbf; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Messages ── */
.error-message { background: #fff4f4; border: 1px solid #fca5a5; color: #b91c1c; padding: 10px 14px; border-radius: 4px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.success-message { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; padding: 10px 14px; border-radius: 4px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.text-muted { color: #9ca3af; font-size: 13px; }
.text-center { text-align: center; }
.small { font-size: 12px; }

/* ── Table ── */
.table-wrapper { overflow-x: auto; }
.uploads-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.uploads-table th { text-align: left; padding: 8px 10px; color: #9ca3af; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1.5px solid #f3f4f6; background: #fafafa; }
.uploads-table td { padding: 9px 10px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; color: #374151; }
.upload-row { cursor: pointer; transition: background 0.12s; }
.upload-row:hover { background: #faf9f7; }
.upload-row:last-child td { border-bottom: none; }

.cell-file { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #78716c; font-size: 12.5px; font-weight: 500; }
.cell-agent { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #57534e; font-size: 12px; font-weight: 600; }
.cell-date { white-space: nowrap; color: #9ca3af; font-size: 12px; }
.cell-count { text-align: center; font-weight: 600; color: #1c1917; }
.cell-active { text-align: center; }

.toggle-switch { position: relative; display: inline-block; width: 38px; height: 21px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #e5e7eb; border-radius: 21px; transition: 0.25s; }
.toggle-slider::before { content: ''; position: absolute; left: 2px; bottom: 2px; width: 17px; height: 17px; background: #fff; border-radius: 50%; transition: 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle-switch input:checked + .toggle-slider { background: #bfbfbf; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(17px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.4; cursor: not-allowed; }

/* ── Status Badge ── */
.status-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.status-processing { background: #f5f6f7; color: #2563eb; }
.status-completed { background: #f0fdf4; color: #16a34a; }
.status-failed { background: #fff4f4; color: #dc2626; }

/* ── Showroom Badge ── */
.showroom-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.showroom-arena { background: #fefce8; color: #a16207; }
.showroom-nexa { background: #f5f6f7; color: #2563eb; }

/* ── Utilities ── */
.hidden { display: none !important; }

@media (max-width: 860px) {
    .split-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { width: 190px; }
    .main-content { margin-left: 190px; }
    .view-body { padding: 12px 14px; }
}
