/* ================================================
   VIN2JATO - Modern UI Design
   ================================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: rgba(99, 102, 241, 0.08);
    --accent: #06b6d4;
    --accent-bg: rgba(6, 182, 212, 0.08);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.08);
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

/* App Container */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================================
   Header
   ================================================ */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 4px;
}

.header-left { display: flex; align-items: center; }

.logo { display: flex; align-items: center; gap: 14px; }

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-right { display: flex; align-items: center; gap: 10px; }

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.header-badge.warn {
    background: var(--warning-bg);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
}

/* ================================================
   Navigation Tabs
   ================================================ */
.nav-tabs {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 4px;
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text);
    background: var(--border-light);
}

.nav-tab.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-tab svg {
    opacity: 0.6;
    transition: opacity var(--transition);
}

.nav-tab.active svg,
.nav-tab:hover svg {
    opacity: 1;
}

/* ================================================
   Main Content
   ================================================ */
.main-content {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 4px;
}

.tab-panel { animation: fadeIn 0.3s ease; }
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.panel-header {
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.panel-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ================================================
   Form Elements
   ================================================ */
.form-card {
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-group label svg {
    color: var(--text-muted);
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* VIN Input */
.vin-wrapper {
    position: relative;
}

#vin-input {
    width: 100%;
    padding: 14px 70px 14px 16px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

#vin-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
}

#vin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.vin-counter {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.vin-counter.valid {
    color: var(--success);
}

.vin-count-sep { margin: 0 1px; }

/* Select */
select {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Toggle Switch */
.toggle-group {
    margin-top: 4px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 8px 0;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text { display: flex; flex-direction: column; }
.toggle-title { font-size: 14px; font-weight: 600; color: var(--text); }
.toggle-hint { font-size: 12px; color: var(--text-muted); }

/* ================================================
   Buttons
   ================================================ */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading span { opacity: 0.5; }
.btn-submit.loading .btn-spinner { display: block; }

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-action:hover { background: var(--primary-dark); }

.btn-action.outline {
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid var(--border);
}

.btn-action.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* ================================================
   Status Messages
   ================================================ */
.status-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-msg.info {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.status-msg.success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-msg.error {
    background: var(--error-bg);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ================================================
   Results Section
   ================================================ */
.results-section {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.results-section.jato {
    margin-top: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--border-light);
    border-bottom: 1px solid var(--border);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.section-header h3 svg {
    color: var(--primary);
}

.results-section.jato .section-header h3 svg {
    color: var(--accent);
}

.badge {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--primary-bg);
    color: var(--primary);
}

.badge.jato-badge {
    background: var(--accent-bg);
    color: var(--accent);
}

/* ================================================
   Data Tables
   ================================================ */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--border-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--primary-bg);
}

.data-table .vin-cell {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table .row-ok td:first-child {
    box-shadow: inset 3px 0 0 var(--success);
}

.data-table .row-error td:first-child {
    box-shadow: inset 3px 0 0 var(--error);
}

.no-data {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.text-muted { color: var(--text-muted); }

/* Results Toolbar */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-left h2 {
    font-size: 18px;
    font-weight: 700;
}

/* ================================================
   Upload Zone
   ================================================ */
.upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 18px;
    text-align: center;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.upload-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.file-info {
    margin-top: 12px;
    padding: 8px 14px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-xs);
}

/* ================================================
   Progress Card
   ================================================ */
.progress-card {
    margin-top: 24px;
    padding: 24px;
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.progress-pct {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-vin {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================
   Done Card
   ================================================ */
.done-card {
    margin-top: 24px;
    padding: 36px 24px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius);
    text-align: center;
}

.done-icon {
    color: var(--success);
    margin-bottom: 12px;
}

.done-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 8px;
}

.done-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.done-summary strong {
    color: var(--text);
    font-weight: 700;
}

.done-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ================================================
   Empty State
   ================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-top: 16px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================================================
   Footer
   ================================================ */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-sep {
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 768px) {
    .app-container {
        padding: 12px;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .main-content {
        padding: 20px 16px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .nav-tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .nav-tab svg { display: none; }

    .done-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #vin-input {
        font-size: 15px;
        letter-spacing: 2px;
    }
}

/* ================================================
   Login Page
   ================================================ */
/* --- Header Auth Buttons --- */
.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-login {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--surface);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background var(--transition);
}

.btn-header-login:hover {
    background: var(--primary-dark);
}

.btn-header-register {
    padding: 7px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-header-register:hover {
    background: var(--primary-bg);
}

/* --- Auth Dropdown --- */
.auth-dropdown {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.25s ease;
    position: relative;
    z-index: 50;
}

.auth-dropdown-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px;
}

.auth-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.auth-form .auth-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.auth-field {
    flex: 1;
    min-width: 140px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-field input {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    outline: none;
    transition: border-color var(--transition);
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.auth-field-btn {
    flex: 0 0 auto;
    min-width: auto;
}

.auth-switch {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.login-error {
    padding: 8px 12px;
    background: var(--error-bg);
    color: #991b1b;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    animation: slideDown 0.3s ease;
}

/* ================================================
   Auftraege
   ================================================ */
.form-inline-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.form-inline-row textarea {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    resize: vertical;
    transition: border-color var(--transition);
}

.form-inline-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

textarea#auftrag-vins {
    font-family: 'Inter', monospace;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    width: 100%;
    resize: vertical;
    transition: border-color var(--transition);
}

textarea#auftrag-vins:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ================================================
   Header User Info
   ================================================ */
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.user-role-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.btn-logout:hover {
    color: var(--error);
    border-color: var(--error);
    background: var(--error-bg);
}

/* ================================================
   User Management
   ================================================ */
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.user-actions {
    display: flex;
    gap: 6px;
}

.user-actions button {
    padding: 4px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.user-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.user-actions button.danger:hover {
    border-color: var(--error);
    color: var(--error);
    background: var(--error-bg);
}

.user-active-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.user-active-badge.active {
    background: var(--success-bg);
    color: var(--success);
}

.user-active-badge.inactive {
    background: var(--error-bg);
    color: var(--error);
}
