/* ============================================
   Webseitenbewerter – Premium Dark Mode Design
   ============================================ */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Tool Navigation ---- */
.tool-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: rgba(13, 17, 23, 0.9);
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.tool-nav-tab {
    padding: 10px 24px;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tool-nav-tab:hover {
    color: #c9d1d9;
    background: rgba(99, 102, 241, 0.1);
}

.tool-nav-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* ---- Password Overlay ---- */
.password-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(30px);
}

.password-overlay.hidden {
    display: none;
}

.password-card {
    text-align: center;
    padding: 40px;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.1);
    max-width: 360px;
    width: 100%;
}

.password-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.password-card h2 {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.password-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0 0 20px;
}

.password-input-group {
    display: flex;
    gap: 8px;
}

.password-input-group .input-field {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 4px;
}

.password-input-group .btn {
    padding: 12px 20px;
    font-size: 1.2rem;
}

.password-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 12px;
    min-height: 20px;
}

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Animated Background ---- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---- Header ---- */
.header {
    padding: 40px 0 32px;
    text-align: center;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.header-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .icon {
    font-size: 1rem;
}

/* ---- API Key Section ---- */
.api-key-section {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
}

.btn-success {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 2px 12px var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--success-glow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ---- Upload Zone ---- */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.upload-zone.dragover::before {
    opacity: 0.05;
}

.upload-zone .upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    position: relative;
    z-index: 1;
}

.upload-zone h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.upload-zone input[type="file"] {
    display: none;
}

/* ---- Single URL Input ---- */
.url-input-section {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---- File Info ---- */
.file-info {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    margin-top: 16px;
    animation: slideIn 0.3s ease;
}

.file-info.visible {
    display: flex;
}

.file-info .file-icon {
    font-size: 1.8rem;
}

.file-info .file-details {
    flex: 1;
}

.file-info .file-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.file-info .file-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.file-info .btn-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    transition: var(--transition);
}

.file-info .btn-remove:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ---- Estimation Bar ---- */
.estimation-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.estimation-bar.visible {
    display: flex;
    animation: slideIn 0.3s ease;
}

.estimation-stats {
    display: flex;
    gap: 24px;
}

.estimation-stat {
    display: flex;
    flex-direction: column;
}

.estimation-stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.estimation-stat .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ---- Results Table ---- */
.results-section {
    display: none;
}

.results-section.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.results-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.results-table thead {
    background: rgba(99, 102, 241, 0.08);
}

.results-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.results-table tbody tr {
    transition: var(--transition);
}

.results-table tbody tr:hover {
    background: var(--bg-glass-hover);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- URL Cell ---- */
.url-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

.url-cell .screenshot-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-glass);
}

.url-cell .url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.url-cell .url-text:hover {
    color: var(--accent);
}

/* ---- Score Badge ---- */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
}

.score-badge.score-low {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.score-badge.score-mid {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-badge.score-high {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---- Status Indicators ---- */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    color: var(--text-muted);
}

.status-loading {
    color: var(--accent-light);
}

.status-done {
    color: var(--success);
}

.status-error {
    color: var(--danger);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Reason Text ---- */
.reason-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.5;
}

/* ---- Floating Cost Widget ---- */
.cost-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 240px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cost-widget.visible {
    transform: translateY(0);
    opacity: 1;
}

.cost-widget.minimized .widget-stats,
.cost-widget.minimized .widget-progress {
    display: none;
}

.cost-widget.minimized {
    width: auto;
    min-width: 160px;
}

.cost-widget.minimized .cost-widget-header {
    margin-bottom: 0;
}

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

.cost-widget-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.cost-widget-minimize {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 2px;
    transition: var(--transition);
}

.cost-widget-minimize:hover {
    color: var(--text-primary);
}

.widget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.widget-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-stat .stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.widget-stat .stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-stat .stat-value.cost-value {
    color: var(--warning);
}

.widget-stat .stat-value.avg-value {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Widget Progress Bar */
.widget-progress {
    position: relative;
}

.widget-progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-glass);
    border-radius: 3px;
    overflow: hidden;
}

.widget-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Show More Button ---- */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.show-more-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.widget-progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* ---- Notification Toast ---- */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 20px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.row-animate {
    animation: fadeInRow 0.4s ease forwards;
}

/* ---- API Key Status ---- */
.api-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
}

.api-status.valid {
    color: var(--success);
}

.api-status.invalid {
    color: var(--danger);
}

.api-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.api-status.valid .status-dot {
    background: var(--success);
    box-shadow: 0 0 8px var(--success-glow);
}

.api-status.invalid .status-dot {
    background: var(--danger);
}

/* ---- Actions Bar ---- */
.actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px;
    }

    .api-key-section {
        flex-direction: column;
        align-items: stretch;
    }

    .url-input-section {
        flex-direction: column;
    }

    .estimation-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-header {
        flex-direction: column;
        gap: 12px;
    }

    .cost-widget {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
    }

    .widget-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---- Selection ---- */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ---- Settings Bar ---- */
.settings-bar {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 16px;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.setting-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Slider */
.slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 3px;
    outline: none;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-1);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 16px var(--accent-glow);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-1);
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-light);
    min-width: 28px;
    text-align: center;
}

/* Select Dropdown */
.select-field {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.select-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.select-field option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ---- Category Tabs ---- */
.category-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.cat-tab.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
}

.cat-tab.cat-green.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}

.cat-tab.cat-yellow.active {
    background: rgba(234, 179, 8, 0.15);
    border-color: #eab308;
    color: #facc15;
}

.cat-tab.cat-red.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

.cat-tab.cat-failed.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fbbf24;
}

.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---- Error Section ---- */
.error-section {
    display: none;
    border-color: rgba(239, 68, 68, 0.2);
}

.error-section.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.error-section:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.08);
}

.error-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
}

.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-retry:hover {
    background: rgba(99, 102, 241, 0.25);
}

.error-reason {
    font-size: 0.8rem;
    color: #f87171;
    max-width: 300px;
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
