/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-hover: #2a2a2a;
    --bg-active: #333;
    --text-primary: #e8e8e8;
    --text-secondary: #999;
    --text-muted: #666;
    --accent: #7c5cfc;
    --accent-hover: #6a4de0;
    --accent-soft: rgba(124, 92, 252, 0.15);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #22c55e;
    --warning: #f59e0b;
    --border: #2a2a2a;
    --border-light: #333;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { background: var(--danger-hover); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* === Auth Pages === */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-img {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 16px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Top Bar (shared admin/classifier) === */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: 56px;
    flex-shrink: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-left h1 {
    font-size: 18px;
    font-weight: 700;
}

.top-bar-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-light);
    padding-left: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 28px;
    width: auto;
    flex-shrink: 0;
}

.badge-admin {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================
   ADMIN LAYOUT
   ============================ */
.admin-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.admin-main {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-card {
    width: 100%;
    max-width: 800px;
}

/* AI Settings */
.ai-settings-form { display: flex; flex-direction: column; gap: 20px; }
.ai-field { display: flex; flex-direction: column; gap: 6px; }
.ai-field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ai-input {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    transition: border-color var(--transition);
}
.ai-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-select {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--transition);
}
.ai-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-hint { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.ai-key-wrapper { display: flex; gap: 8px; align-items: center; }
.ai-key-wrapper .ai-input { flex: 1; }
.ai-toggle-key { flex-shrink: 0; padding: 8px; border-radius: var(--radius-md); }
.ai-provider-group { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.ai-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.ai-status { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.ai-status.success { color: #22c55e; font-weight: 500; }
.ai-status.error { color: #ef4444; font-weight: 500; }

.admin-card-header {
    margin-bottom: 24px;
}

.admin-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-card-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.admin-upload-area {
    margin-bottom: 32px;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    color: var(--text-secondary);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-zone-text {
    font-size: 14px;
    font-weight: 500;
}

.upload-zone-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    animation: progress-indeterminate 1.5s infinite;
}

@keyframes progress-indeterminate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.admin-docs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background var(--transition);
}

.admin-doc-item:hover {
    background: var(--bg-hover);
}

.admin-doc-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-doc-info {
    flex: 1;
    min-width: 0;
}

.admin-doc-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-doc-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-doc-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.admin-doc-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ============================
   CLASSIFIER LAYOUT
   ============================ */
.classifier-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.classifier-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar: historial de clasificaciones */
.cls-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.cls-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.cls-sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.cls-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.cls-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
}

.cls-history-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.cls-history-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.cls-history-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.cls-history-icon.pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.cls-history-icon.in_progress { background: var(--accent-soft); color: var(--accent); }
.cls-history-icon.completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }

.cls-history-info {
    flex: 1;
    min-width: 0;
}

.cls-history-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cls-history-code {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.cls-history-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.cls-history-export {
    display: flex;
    color: var(--accent);
    padding: 4px;
    border-radius: 4px;
    line-height: 0;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.cls-history-export:hover {
    opacity: 1;
    color: var(--accent);
}

.cls-history-delete {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.cls-history-item:hover .cls-history-delete {
    display: flex;
}

.cls-history-delete:hover {
    color: var(--danger);
}

/* Contenido principal del clasificador */
.cls-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Vista vacía / subir ficha */
.cls-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 40px;
    text-align: center;
    gap: 16px;
    overflow-y: auto;
}

.cls-empty-icon {
    color: var(--text-muted);
    opacity: 0.5;
}

.cls-empty h2 {
    font-size: 24px;
    font-weight: 700;
}

.cls-empty-lead {
    max-width: 600px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cls-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 780px;
    width: 100%;
    margin: 4px 0;
}

.cls-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cls-info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cls-info-card-icon.upload-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

.cls-info-card-icon.result-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.cls-info-card-icon.download-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.cls-info-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.cls-info-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cls-info-card p strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cls-info-cards {
        grid-template-columns: 1fr;
    }
}

.cls-upload-form {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.cls-upload-form .upload-zone {
    padding: 24px;
}

.cls-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.step-text {
    font-size: 12px;
}

.step-arrow {
    color: var(--text-muted);
    opacity: 0.4;
    display: flex;
}

/* Vista de clasificación activa */
.cls-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.cls-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.cls-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cls-product-info h2 {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cls-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.cls-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.cls-status.in_progress {
    background: var(--accent-soft);
    color: var(--accent);
}

.cls-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

/* Mensajes de clasificación */
.cls-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.cls-msg {
    display: flex;
    gap: 12px;
    max-width: 820px;
    width: 100%;
}

.cls-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.cls-msg-user .cls-msg-avatar {
    background: var(--accent-soft);
    color: var(--accent);
}

.cls-msg-assistant .cls-msg-avatar {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    color: white;
}

.cls-msg-body {
    flex: 1;
    min-width: 0;
}

.cls-msg-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cls-msg-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    word-wrap: break-word;
}

.cls-msg-text p { margin-bottom: 8px; }
.cls-msg-text p:last-child { margin-bottom: 0; }
.cls-msg-text strong { font-weight: 600; }

.cls-msg-text pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    overflow-x: auto;
    font-size: 13px;
    margin: 8px 0;
}

.cls-msg-text code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.cls-msg-text pre code {
    background: none;
    padding: 0;
}

.cls-msg-text ul, .cls-msg-text ol {
    margin: 8px 0;
    padding-left: 20px;
}

.cls-msg-text li { margin-bottom: 4px; }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* Área de respuesta del clasificador */
.cls-reply-area {
    padding: 16px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.cls-reply-form {
    max-width: 820px;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    transition: border-color var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent);
}

.input-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    max-height: 150px;
    padding: 4px 0;
}

.input-wrapper textarea:focus { outline: none; }
.input-wrapper textarea::placeholder { color: var(--text-muted); }

.btn-send {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-send:hover:not(:disabled) { background: var(--accent-hover); }
.btn-send:disabled { opacity: 0.3; cursor: not-allowed; }

/* Question form */
.cls-questions-form {
    max-width: 820px;
    width: 100%;
}

.cls-msg-form {
    max-width: 820px;
    width: 100%;
}

.cls-questions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.cls-questions-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 16px 26px;
    line-height: 1.4;
}

.cls-questions-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.cls-question-field label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    line-height: 1.4;
}

.cls-q-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.cls-question-field input[type="text"],
.cls-question-field select,
.cls-question-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color var(--transition);
}

.cls-question-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.cls-question-field textarea {
    resize: vertical;
    min-height: 60px;
}

.cls-question-field input[type="text"]:focus,
.cls-question-field select:focus,
.cls-question-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.cls-question-field input[type="text"]::placeholder,
.cls-question-field textarea::placeholder {
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Loading / empty states */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.empty-state {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === Responsive === */
@media (max-width: 768px) {
    .cls-sidebar {
        display: none;
    }

    .cls-empty {
        padding: 24px;
    }

    .cls-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .top-bar-subtitle {
        display: none;
    }

    .admin-main {
        padding: 16px;
    }
}

/* === Form group reusable === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}
