/* TensorFive-Inspired Design System - Fixed */

:root {
    /* TensorFive Brand Colors */
    --green: #87f3a4;
    --neutral-01: white;
    --neutral-02: #f7f9fb;
    --neutral-03: #373a46;
    --neutral-04: #191715;
    --violet: #842cc3;
    --violetdark: #621699;
    --violetlight: #c38fe7;
    --yellow: #f9e45b;
    
    /* Extended Color Palette */
    --primary-color: var(--violet);
    --primary-light: var(--violetlight);
    --primary-dark: var(--violetdark);
    
    /* Background Colors */
    --bg-primary: var(--neutral-02);
    --bg-secondary: var(--neutral-01);
    --bg-dark: var(--neutral-03);
    --bg-darker: var(--neutral-04);
    
    /* Text Colors */
    --text-primary: var(--neutral-04);
    --text-secondary: var(--neutral-03);
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    
    /* Status Colors */
    --success-color: var(--green);
    --warning-color: var(--yellow);
    --danger-color: #EF4444;
    --info-color: var(--violet);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--violet) 0%, var(--violetlight) 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(247,249,251,0.9) 100%);
    
    /* Shadows - TensorFive Style */
    --shadow-xs: 0 1px 2px 0 rgba(132, 44, 195, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(132, 44, 195, 0.1), 0 1px 2px 0 rgba(132, 44, 195, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(132, 44, 195, 0.1), 0 2px 4px -1px rgba(132, 44, 195, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(132, 44, 195, 0.1), 0 4px 6px -2px rgba(132, 44, 195, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(132, 44, 195, 0.1), 0 10px 10px -5px rgba(132, 44, 195, 0.04);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2 { 
    font-size: 2.25rem; 
    font-weight: 700; 
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.3;
}

h3 { 
    font-size: 1.875rem; 
    font-weight: 600; 
    color: var(--text-primary);
    line-height: 1.4;
}

h4 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: var(--text-primary);
    line-height: 1.4;
}

h5 { 
    font-size: 1.25rem;
    font-weight: 600; 
    color: var(--text-primary);
    line-height: 1.5;
}

h6 { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--text-secondary);
    line-height: 1.5;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

/* TensorFive Navbar */
.navbar {
    background: var(--neutral-01) !important;
    border-bottom: 1px solid rgba(132, 44, 195, 0.1);
    box-shadow: var(--shadow-sm);
    padding: var(--space-1) 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 80px;
    position: sticky;
    top: 0;
    z-index: 1030; /* über Content, aber unter Modals */
}

.navbar-brand {
    font-weight: 800;
    color: var(--violet) !important;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-brand i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Logo Kombination: Lottie + SVG ------------------------------------ */
.navbar-brand lottie-player {
    width: 42px;
    height: 42px;
    flex-shrink: 0; /* verhindert Skalierung bei wenig Platz */
}

.navbar-brand .site-logo {
    height: 38px; /* passt sich an die Höhe des Lottie-Players an */
    width: auto;  /* erhält Seitenverhältnis */
    flex-shrink: 0;
}

/* Auf kleineren Bildschirmen Logo leicht skalieren */
@media (max-width: 576px) {
    .navbar-brand lottie-player {
        width: 32px;
        height: 32px;
    }

    .navbar-brand .site-logo {
        height: 28px;
    }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-3) !important;
    margin: 0 var(--space-1);
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--violet) !important;
    background: rgba(132, 44, 195, 0.05);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--violet) !important;
    background: rgba(132, 44, 195, 0.1);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: var(--space-20) 0;
    margin-bottom: var(--space-16);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23842cc3" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23842cc3" opacity="0.03"/><circle cx="50" cy="10" r="1" fill="%23842cc3" opacity="0.03"/><circle cx="10" cy="60" r="1" fill="%23842cc3" opacity="0.03"/><circle cx="90" cy="40" r="1" fill="%23842cc3" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(132, 44, 195, 0.15);
}

.card-header {
    background: rgba(132, 44, 195, 0.05);
    border-bottom: 1px solid rgba(132, 44, 195, 0.1);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-header h5 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: var(--space-6);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-6);
}

/* Welcome Section */
.welcome-section {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.welcome-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.welcome-section h1 {
    color: white;
    margin-bottom: var(--space-3);
    font-size: 1.75rem;
}

.welcome-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.welcome-section i {
    margin-right: var(--space-2);
    font-size: 1.25rem;
}

/* Welcome Stats - Mini Stats in Banner */
.welcome-stats {
    display: flex;
    gap: var(--space-6);
    z-index: 2;
    position: relative;
    margin-left: var(--space-12);
}

.welcome-stat {
    text-align: center;
    color: white;
}

.welcome-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Statistics Cards - Compact Version */
.stats-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stats-card-compact {
    padding: var(--space-4);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stats-card:hover::before {
    transform: scaleX(1);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 44, 195, 0.2);
}

.stats-card i {
    font-size: 2rem;
    margin-bottom: var(--space-3);
    color: var(--violet);
    display: block;
}

.stats-card-compact i {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.stats-card h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.025em;
}

.stats-card-compact h4 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
}

.stats-card p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
}

.stats-card-compact p {
    font-size: 0.8rem;
}

/* Quick Actions - Same Style as Stats Cards */
.quick-action-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 140px;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 44, 195, 0.2);
    text-decoration: none;
    color: inherit;
}

.quick-action-card i {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
    color: var(--violet);
    display: block;
}

.quick-action-card h6 {
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.quick-action-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Process Steps (like in TensorFive screenshots) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin: var(--space-16) 0;
}

.process-step {
    background: var(--bg-secondary);
    border: 1px solid rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: var(--space-6);
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 44, 195, 0.2);
}

.process-step h5 {
    margin: var(--space-4) 0;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Progress Elements */
.progress {
    height: 12px;
    background: rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.progress-bar {
    background: var(--violet);
    transition: width 0.6s ease;
    border-radius: var(--radius-sm);
}

/* Status Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-md);
    border: none;
    letter-spacing: 0.025em;
}

.badge.bg-primary {
    background: var(--violet) !important;
    color: white;
}

.badge.bg-success {
    background: var(--success-color) !important;
    color: var(--text-primary);
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: var(--text-primary);
}

.badge.bg-danger {
    background: var(--danger-color) !important;
    color: white;
}

/* Tables */
.table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table th {
    background: rgba(132, 44, 195, 0.05);
    border-bottom: 2px solid rgba(132, 44, 195, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--space-4) var(--space-4);
    font-size: 0.9rem;
}

.table td {
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid rgba(132, 44, 195, 0.05);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(132, 44, 195, 0.02);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .stats-card h4 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .welcome-stats {
        justify-content: center;
        gap: var(--space-4);
    }
    
    .welcome-stat .stat-number {
        font-size: 1.25rem;
    }
    
    .welcome-stat .stat-label {
        font-size: 0.7rem;
    }
    
    .d-flex.flex-wrap.align-items-start {
        gap: 1rem !important;
    }
    
    .card.fade-in {
        min-width: 150px !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(132, 44, 195, 0.1);
    margin-top: var(--space-20);
    padding: var(--space-12) 0;
}

footer p {
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

/* Upload Area Styling */
.upload-drag-area {
    border: 2px dashed rgba(132, 44, 195, 0.3);
    border-radius: var(--radius-lg);
    background: var(--gradient-hero);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-drag-area:hover,
.upload-drag-area.dragover {
    border-color: var(--violet);
    background: rgba(132, 44, 195, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.upload-drag-area.dragover {
    border-style: solid;
    background: rgba(132, 44, 195, 0.1);
}

/* Process Steps List */
.process-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.process-step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.process-step-item:hover {
    background: rgba(132, 44, 195, 0.05);
}

.step-number {
    background: var(--violet);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    line-height: 1.6;
}

/* Navbar Toggler Icon */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(132, 44, 195, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Form Control Focus */
.form-control:focus, .form-select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 0.15rem rgba(132, 44, 195, 0.25);
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-6);
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--violet);
    color: white;
    box-shadow: 0 4px 14px rgba(132, 44, 195, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 44, 195, 0.45);
    background: #a855f7;
    color: white;
}

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

.btn-outline-primary {
    border: 2px solid var(--violet);
    color: var(--violet);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--violet);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
}

/* Documents Filter Section - Dashboard Style */
.documents-filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Filter Cards - Noch kompakter */
.filter-cards {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-1) var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-width: 90px;
    height: 40px;
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-card.active::before,
.filter-card:hover::before {
    transform: scaleX(1);
}

.filter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 44, 195, 0.2);
}

.filter-card.active {
    border-width: 2px;
    background: var(--neutral-02);
}

/* Filter-Card Links - Remove default link styling */
.filter-cards a.filter-card {
    text-decoration: none;
    color: inherit;
}

.filter-cards a.filter-card:hover {
    text-decoration: none;
    color: inherit;
}

.filter-card i {
    font-size: 1.1rem;
    color: var(--violet);
    flex-shrink: 0;
}

.filter-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: auto;
}

/* Documents Search - Clean Style */
.documents-search {
    min-width: 0 !important;
    flex: 1;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: var(--space-4);
    color: var(--text-light);
    font-size: 1rem;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.search-wrapper input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
    border: 1px solid rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    height: 48px;
}

.search-wrapper input:focus {
    border-color: var(--violet);
    box-shadow: var(--shadow-sm);
    background: white;
}

.search-wrapper input:focus + i {
    color: var(--violet);
}

.search-wrapper input::placeholder {
    color: var(--text-light);
}

/* Modern Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    background: transparent;
}

.action-btn:hover {
    background: rgba(132, 44, 195, 0.1);
    transform: translateY(-1px);
}

.action-btn-view,
.action-btn-download,
.action-btn-delete {
    opacity: 0.7;
}

.action-btn:hover {
    opacity: 1;
}

.action-btn i {
    position: static;
    z-index: auto;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Responsive Documents Filter */
@media (max-width: 768px) {
    .documents-filter-section {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .filter-cards {
        justify-content: center;
        gap: var(--space-3);
    }
    
    .filter-card {
        min-width: 120px;
        padding: var(--space-3);
    }
    
    .filter-card i {
        font-size: 1.25rem;
    }
    
    .filter-count {
        font-size: 1.1rem;
    }
    
    .documents-search {
        min-width: auto;
        width: 100%;
    }
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

/* Table Row Animations */
#documentsTable tbody tr {
    transition: all 0.3s ease;
}

#documentsTable tbody tr:hover {
    background: rgba(132, 44, 195, 0.03) !important;
    transform: translateX(4px);
}

/* Document Detail Page Specific Styles */
.document-detail-welcome {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.document-detail-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.document-detail-welcome h1 {
    color: white;
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.document-detail-welcome p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    word-break: break-word;
}

/* Status Badge Enhancements */
.status-badge-large {
    font-size: 1rem !important;
    padding: var(--space-3) var(--space-5) !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Process Steps Enhanced */
.process-step-item.active {
    background: #fafaf9;
    border: 1px solid var(--violet);
    border-radius: var(--radius-sm);
}

.process-step-item.completed {
    background: #fafaf9;
    border: 1px solid #d6d3d1;
    border-radius: var(--radius-sm);
}

.process-step-item.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
}

.process-step-item .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.process-step-item.active .step-number {
    background: var(--violet);
}

.process-step-item.completed .step-number {
    background: #87F3A4;
    color: #1c1917;
}

.process-step-item.error .step-number {
    background: #ef4444;
    color: white;
}

/* Alert Enhancements for Document Detail */
.alert-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Live Preview Enhancements */
.live-preview {
    width: 100%;
    min-width: 100%;
    display: block;
}

.live-preview .card {
    min-height: 600px;
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
}

.preview-card {
    border: 1px solid rgba(132, 44, 195, 0.15);
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
}

.preview-content {
    padding: var(--space-6);
    background: var(--gradient-hero);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Schema viewer - natürliche Breite */
.schema-viewer {
    width: 100%;
    box-sizing: border-box;
}

/* PDF/Markdown viewer - natürliche Breite */
.pdf-viewer-container {
    width: 100%;
    box-sizing: border-box;
}

/* Container für alle Inhalte - zentriert mit max-width */
.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    box-sizing: border-box;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 var(--space-2);
    }
}

/* Mobile Responsiveness for Document Detail */
@media (max-width: 768px) {
    .welcome-section {
        padding: var(--space-6);
        margin-bottom: var(--space-4);
    }
    
    .welcome-section h1 {
        font-size: 1.25rem;
    }
    
    .welcome-stats {
        margin-left: 0;
        gap: var(--space-3);
    }
    
    .welcome-stat .stat-number {
        font-size: 1.1rem;
    }
    
    .welcome-stat .stat-label {
        font-size: 0.65rem;
    }
    
    .process-step-item {
        padding: var(--space-3);
    }
    
    .process-step-item .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* ===== MARKDOWN CONTENT STYLING ===== */
.page-content h1, .page-content h2, .page-content h3, 
.page-content h4, .page-content h5, .page-content h6 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.page-content h1 { 
    font-size: 1.8rem; 
    border-bottom: 3px solid var(--primary-color); 
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.page-content h2 { 
    font-size: 1.5rem; 
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.3rem;
}

.page-content h3 { 
    font-size: 1.3rem;
    color: var(--primary-color);
}

.page-content h4 { 
    font-size: 1.1rem;
    color: var(--text-primary);
}

.page-content h5, .page-content h6 { 
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.6;
    color: var(--text-primary);
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.page-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.page-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.page-content code {
    background: var(--bg-secondary);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.4rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #D53F8C;
}

.page-content pre {
    background: var(--bg-secondary);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    font-style: italic;
    color: var(--text-secondary);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.page-content th, .page-content td {
    border: 1px solid #E5E7EB;
    padding: 0.75rem;
    text-align: left;
}

.page-content th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.page-content tr:nth-child(even) {
    background: var(--bg-secondary);
}

.page-content hr {
    border: none;
    border-top: 2px solid #E5E7EB;
    margin: 2rem 0;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.page-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Excel-ähnliche Requirements-Tabelle */
.requirements-excel-table {
    font-size: 0.9rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.requirements-excel-table thead th {
    background: #f5f5f4;
    color: #57534e;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-bottom: 1px solid #e7e5e4;
    padding: 0.875rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.requirements-excel-table tbody tr {
    transition: background 150ms ease;
    border-bottom: 1px solid #f5f5f4;
}

.requirements-excel-table tbody tr:hover {
    background: #fafaf9;
}

.requirements-excel-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.requirements-excel-table tbody tr:nth-child(even):hover {
    background: rgba(132, 44, 195, 0.05);
}

.requirements-excel-table td {
    padding: 0.75rem;
    vertical-align: top;
    border: none;
    border-right: 1px solid #F3F4F6;
}

.requirements-excel-table td:last-child {
    border-right: none;
}

.requirements-excel-table .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.requirements-excel-table strong {
    color: var(--text-primary);
    font-weight: 600;
}

.requirements-excel-table .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
}

/* Responsive Verhalten für Requirements-Tabelle */
@media (max-width: 768px) {
    .requirements-excel-table {
        font-size: 0.8rem;
    }
    
    .requirements-excel-table th,
    .requirements-excel-table td {
        padding: 0.5rem 0.4rem;
    }
    
    .requirements-excel-table th {
        font-size: 0.75rem;
    }
    
    .requirements-excel-table .badge {
        font-size: 0.65rem;
    }
}

/* Verbesserte Scrollbar für Tabellen */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.btn.btn-sm.btn-outline-success {
    border: 1px solid var(--success-color);
}

@media (max-width: 992px) {
    .navbar {
        max-height: none; /* erlaubt Aufklappen */
        padding-bottom: var(--space-1); /* niedriger, damit Höhe in zugeklapptem Zustand schlank bleibt */
        margin-bottom: var(--space-2); /* Abstand zum nachfolgenden Content */
    }

    /* Abstand zwischen Brand und ausgeklappten Links */
    .navbar .navbar-collapse {
        margin-top: var(--space-2);
    }

    /* Mobile Links etwas kompakter */
    .navbar-nav .nav-link {
        padding: var(--space-2) var(--space-3) !important;
        margin: var(--space-1) 0;
    }
}

/* Mehr Abstand zum Content auf sehr kleinen Viewports */
@media (max-width: 576px) {
    .navbar {
        margin-bottom: var(--space-4); /* 1rem Abstand */
    }

    /* Quick-Action-Cards als Pills */
    .quick-action-card {
        flex-direction: row; /* Icon links, Text rechts */
        align-items: center;
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
        border-radius: 999px; /* Pill-Shape */
        min-height: auto;
    }

    .quick-action-card i {
        font-size: 1.25rem;
        margin-bottom: 0; /* Icon nicht mehr oberhalb */
    }

    .quick-action-card h6 {
        margin: 0;
        font-size: 0.9rem;
    }

    .quick-action-card p {
        display: none; /* Beschreibung ausblenden, spart Platz */
    }

    /* Dokumenten-Tabelle in Kartenform */
    .table-responsive {
        overflow: visible; /* Karten nicht abschnüren */
    }
    .table thead {
        display: none; /* Kopfzeile verbergen */
    }
    .table tbody tr {
        display: block;
        background: var(--bg-secondary);
        border: 1px solid #E5E7EB;
        border-radius: var(--radius-lg);
        padding: var(--space-4);
        margin-bottom: var(--space-4);
        box-shadow: var(--shadow-sm);
    }

    .table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2) 0;
        border-top: none;
    }

    .table tbody tr td:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Labels per Spalte */
    .table tbody tr td:nth-child(1)::before { content: "Dokument"; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-1); }
    .table tbody tr td:nth-child(2)::before { content: "Status"; font-weight: 600; color: var(--text-secondary); }
    .table tbody tr td:nth-child(3)::before { content: "Fortschritt"; font-weight: 600; color: var(--text-secondary); }
    .table tbody tr td:nth-child(4)::before { content: "Hochgeladen"; font-weight: 600; color: var(--text-secondary); }
    .table tbody tr td:nth-child(5)::before { content: "Aktionen"; font-weight: 600; color: var(--text-secondary); }

    /* Fortschrittsbalken volle Breite innerhalb der Karte */
    .table tbody tr td:nth-child(3) .progress {
        width: 100%;
    }

    /* Stil für mobile Dokumentenkarten */
    .document-mobile-card {
        background: var(--bg-secondary);
        border: 1px solid rgba(132, 44, 195, 0.1);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
}

/* Pills auch wenn Spalten umbrechen (<768px) */
@media (max-width: 768px) {
    .quick-action-card {
        flex-direction: row;
        align-items: center;
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
        border-radius: 999px;
        min-height: auto;
    }

    .quick-action-card i {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .quick-action-card h6 {
        margin: 0;
        font-size: 0.9rem;
    }

    .quick-action-card p {
        display: none;
    }
}

/* ========================================
   DYNAMIC JSON SCHEMA VIEWER
   Clean, professional visualization
   Following TensorFive Design System
   ======================================== */

.schema-viewer {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: var(--space-4);
    background: var(--neutral-02);
    min-height: 100%;
}

.schema-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--neutral-03);
}

.schema-viewer-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.schema-viewer-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-04);
    margin: 0;
    letter-spacing: -0.025em;
}

.schema-viewer-title .schema-icon {
    width: 40px;
    height: 40px;
    background: var(--violet);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.schema-viewer-actions {
    display: flex;
    gap: var(--space-2);
}

.schema-view-toggle {
    display: flex;
    background: var(--neutral-02);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid rgba(132, 44, 195, 0.1);
}

.schema-view-toggle button {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.schema-view-toggle button:hover {
    color: var(--violet);
}

.schema-view-toggle button.active {
    background: white;
    color: var(--violet);
    box-shadow: var(--shadow-sm);
}

/* Section Cards */
.schema-section {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    border: 1px solid #d6d3d1;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.schema-section:hover {
    border-color: var(--violet);
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
}

.schema-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: #fafaf9;
    border-bottom: 1px solid #e7e5e4;
    cursor: pointer;
    user-select: none;
    transition: background 150ms ease;
}

.schema-section-header:hover {
    background: #f5f5f4;
}

.schema-section-icon {
    width: 32px;
    height: 32px;
    background: rgba(132, 44, 195, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.schema-section-title {
    flex: 1;
}

.schema-section-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-04);
    margin: 0;
    letter-spacing: -0.01em;
}

.schema-section-title p {
    font-size: 0.8rem;
    color: #78716c;
    margin: 2px 0 0 0;
}

.schema-section-toggle {
    color: #78716c;
    font-size: 1rem;
    transition: transform 200ms ease;
}

.schema-section.collapsed .schema-section-toggle {
    transform: rotate(-90deg);
}

.schema-section-content {
    padding: var(--space-4) var(--space-5);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow-x: auto;
}

/* Scrollbar styling for section content */
.schema-section-content::-webkit-scrollbar {
    height: 6px;
}

.schema-section-content::-webkit-scrollbar-track {
    background: #f5f5f4;
    border-radius: 3px;
}

.schema-section-content::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 3px;
}

.schema-section-content::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

.schema-section.collapsed .schema-section-content {
    display: none;
}

/* Field Rows */
.schema-field-row {
    display: flex;
    padding: var(--space-3) 0;
    border-bottom: 1px solid #f5f5f4;
    align-items: flex-start;
}

.schema-field-row:last-child {
    border-bottom: none;
}

.schema-field-label {
    flex: 0 0 160px;
    font-size: 0.85rem;
    color: #78716c;
    font-weight: 500;
    padding-right: var(--space-3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.schema-field-label i {
    font-size: 0.85rem;
    color: #a8a29e;
}

.schema-field-value {
    flex: 1;
    font-size: 0.9rem;
    color: #1c1917;
    font-weight: 500;
    word-break: break-word;
}

.schema-field-value.empty {
    color: #a8a29e;
    font-style: italic;
    font-weight: 400;
}

.schema-field-value.highlight {
    color: #1c1917;
    font-weight: 600;
}

.schema-field-value.money {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: #1c1917;
}

/* Nested Objects */
.schema-nested {
    background: #fafaf9;
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin-top: var(--space-2);
    border: 1px solid #e7e5e4;
}

/* Array Tables */
.schema-array-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: var(--space-2);
    font-size: 0.85rem;
    border: 1px solid #e7e5e4;
    border-radius: var(--radius-sm);
}

.schema-array-table thead {
    background: #f5f5f4;
}

.schema-array-table thead th {
    color: #57534e;
    font-weight: 600;
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e7e5e4;
}

.schema-array-table tbody tr {
    background: white;
    transition: background 150ms ease;
}

.schema-array-table tbody tr:hover {
    background: #fafaf9;
}

.schema-array-table tbody tr:nth-child(even) {
    background: #fafaf9;
}

.schema-array-table tbody tr:nth-child(even):hover {
    background: #f5f5f4;
}

.schema-array-table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid #f5f5f4;
    vertical-align: top;
    color: #1c1917;
}

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

/* Amount Summary */
.schema-amount-summary {
    background: #fafaf9;
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    margin-top: var(--space-2);
    border: 1px solid #e7e5e4;
}

.schema-amount-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: 0.9rem;
}

.schema-amount-row.total {
    border-top: 1px solid #d6d3d1;
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    font-size: 1rem;
    font-weight: 700;
    color: #1c1917;
}

.schema-amount-label {
    color: #78716c;
}

.schema-amount-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #1c1917;
}

/* Info Tooltip */
.schema-tooltip {
    position: relative;
    cursor: help;
}

.schema-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-04);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    max-width: 250px;
    white-space: normal;
}

.schema-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Raw JSON View */
.schema-raw-json {
    display: none;
}

.schema-raw-json.active {
    display: block;
}

.schema-raw-json pre {
    background: var(--neutral-04);
    color: #e2e8f0;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    overflow: auto;
    max-height: 600px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Status Badge in viewer */
.schema-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.schema-status-badge.success {
    background: rgba(135, 243, 164, 0.15);
    color: #15803d;
}

/* Empty State */
.schema-empty-field {
    color: var(--text-light);
    font-style: italic;
}

/* Address Block */
.schema-address-block {
    line-height: 1.7;
}

.schema-address-block .company {
    font-weight: 600;
    color: var(--neutral-04);
    font-size: 1rem;
}

/* Validation Warnings Section */
.validation-warnings-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.warnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: #fef3c7;
    cursor: pointer;
    user-select: none;
    transition: background 150ms ease;
}

.warnings-header:hover {
    background: #fde68a;
}

.warnings-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: #92400e;
    font-size: 0.85rem;
}

.warnings-title i {
    color: #d97706;
    font-size: 1rem;
}

.warnings-toggle {
    color: #92400e;
    transition: transform 200ms ease;
}

.validation-warnings-section.collapsed .warnings-toggle {
    transform: rotate(-90deg);
}

.validation-warnings-section.collapsed .warnings-content {
    display: none;
}

.warnings-content {
    padding: var(--space-3) var(--space-4);
}

.validation-warning-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
    border: 1px solid #fde68a;
}

.validation-warning-item:last-child {
    margin-bottom: 0;
}

.warning-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 0.8rem;
}

.warning-content {
    flex: 1;
    min-width: 0;
}

.warning-category {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 4px;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--violet);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.field-path {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #78716c;
    background: #f5f5f4;
    padding: 2px 6px;
    border-radius: 3px;
}

.warning-message {
    font-size: 0.8rem;
    color: #57534e;
    line-height: 1.5;
}

/* Additional Status Badges */
.schema-status-badge.attempt-badge {
    background: rgba(132, 44, 195, 0.15);
    color: var(--violet);
    margin-left: 8px;
}

.schema-status-badge.warning-badge {
    background: rgba(249, 228, 91, 0.3);
    color: #92400e;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .schema-field-row {
        flex-direction: column;
        gap: 4px;
    }

    .schema-field-label {
        flex: none;
    }

    .schema-viewer-header {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }

    .schema-array-table {
        font-size: 0.8rem;
    }

    .schema-array-table thead th,
    .schema-array-table tbody td {
        padding: var(--space-2);
    }

    .validation-warning-item {
        flex-direction: column;
        gap: var(--space-2);
    }

    .warning-icon {
        align-self: flex-start;
    }
>>>>>>> tensorfive/feature/document-digitization-pipeline
}