/* CSS Variables - Farb-Definitionen */
:root {
    /* Haupt-Farben */
    --background-color: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    /* Moderner Gradient statt einfaches Gelb */
    --primary-button-color: #2563eb;
    /* Modernes Blau */
    --primary-button-text: #ffffff;
    /* Weiße Button-Schrift */
    --nav-background: #1e293b;
    /* Modernes dunkles Blau */
    --nav-text-color: #ffffff;
    /* Weiße Navigation-Schrift */

    /* Text-Farben */
    --text-primary: #0f172a;
    /* Sehr dunkles Blau für bessere Lesbarkeit */
    --text-secondary: #475569;
    /* Mittleres Grau-Blau */
    --text-light: #64748b;
    /* Helles Grau-Blau */
    --text-muted: #94a3b8;
    /* Gedämpftes Grau */

    /* Hintergrund-Farben */
    --card-background: #ffffff;
    /* Karten-Hintergrund */
    --input-background: #ffffff;
    /* Input-Hintergrund */
    --hover-background: rgba(255, 255, 255, 0.1);
    /* Hover-Effekt */

    /* Neue Design-Farben */
    --accent-primary: #3b82f6;
    --accent-secondary: #10b981;
    --accent-tertiary: #f59e0b;
    --accent-quaternary: #8b5cf6;

    /* Gradient Overlays */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-tertiary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-quaternary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);

    /* Border und Shadow Farben */
    --border-color: #e2e8f0;
    /* Heller Border */
    --border-light: #f1f5f9;
    /* Sehr heller Border */
    --border-focus: var(--primary-button-color);
    /* Focus Border */
    --shadow-light: rgba(15, 23, 42, 0.05);
    --shadow-medium: rgba(15, 23, 42, 0.1);
    --shadow-strong: rgba(15, 23, 42, 0.15);

    /* Status-Farben */
    --success-bg: #dcfce7;
    --success-text: #166534;
    --success-border: #bbf7d0;
    --success-accent: #10b981;

    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --warning-border: #fde68a;

    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --error-border: #fecaca;

    /* Button-Hover Farben */
    --primary-button-hover: #1d4ed8;
    --button-shadow: rgba(37, 99, 235, 0.25);

    /* Upload-Area Farben */
    --upload-border: var(--primary-button-color);
    --upload-hover-bg: #f8fafc;
    --upload-dragover-bg: rgba(37, 99, 235, 0.05);

    /* Progress Bar Farben */
    --progress-bg: #e2e8f0;
    --progress-fill: var(--primary-button-color);

    /* Danger/Delete Farben */
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
}

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

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

/* Typography */
code,
.inline-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1e293b;
}

/* Navigation Styles - beibehaltene Struktur */
.navbar {
    background-color: var(--nav-background);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow-medium);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--nav-text-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background-color: var(--hover-background);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--primary-button-color);
    color: var(--primary-button-text);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--nav-text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(16, 185, 129, 0.05) 50%,
            rgba(245, 158, 11, 0.05) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-bg);
    color: var(--success-text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid var(--success-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* System Overview */
.system-overview {
    margin: 4rem 0;
    text-align: center;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.title-icon {
    font-size: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.process-step {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
    min-width: 200px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card.secondary::before {
    background: var(--gradient-secondary);
}

.feature-card.accent::before {
    background: var(--gradient-tertiary);
}

.feature-card.quaternary::before {
    background: var(--gradient-quaternary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.list-bullet {
    color: var(--accent-primary);
    font-weight: bold;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--accent-secondary);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.highlight-text strong {
    color: var(--text-primary);
    display: block;
}

/* Rate Limit Visual */
.rate-limit-visual {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.rate-limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.rate-counter {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-tertiary);
    font-weight: 600;
}

.rate-progress {
    background: var(--progress-bg);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rate-progress-bar {
    background: linear-gradient(90deg, var(--accent-tertiary) 0%, #d97706 100%);
    height: 100%;
    transition: width 1s ease;
    border-radius: 4px;
}

/* Protection Features */
.protection-features {
    margin-top: 1.5rem;
}

.protection-features h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.protection-list {
    list-style: none;
}

.protection-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.protection-list li::before {
    content: '•';
    color: var(--accent-tertiary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Monitoring Grid */
.monitoring-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.monitoring-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.monitoring-check {
    width: 24px;
    height: 24px;
    background: var(--accent-quaternary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Robustness Note */
.robustness-note {
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
    border: 1px solid #d8b4fe;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Status Section */
.status-section {
    margin: 4rem 0;
    text-align: center;
}

.status-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px var(--shadow-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.status-indicator-large {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--success-accent);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.status-icon {
    font-size: 2rem;
    z-index: 1;
}

.status-content {
    text-align: left;
}

.status-content h3 {
    color: var(--success-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-content p {
    color: var(--text-secondary);
}

.status-footer {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timestamp {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

/* Button Styles - beibehaltene Struktur */
.btn {
    background-color: var(--primary-button-color);
    color: var(--primary-button-text);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--primary-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--button-shadow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Form Styles - beibehaltene Struktur */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--input-background);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* File Upload Styles - beibehaltene Struktur */
.upload-area {
    border: 3px dashed var(--upload-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--card-background);
    margin: 1rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background-color: var(--upload-hover-bg);
    border-color: var(--primary-button-hover);
}

.upload-area.dragover {
    background-color: var(--upload-dragover-bg);
    border-color: var(--upload-border);
}

/* Status Messages - beibehaltene Struktur */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

.status-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.status-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.status-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

/* Progress Bar - beibehaltene Struktur */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--progress-bg);
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--progress-fill);
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        max-width: 100%;
        padding: 0 1.5rem 4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-background);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
    }

    .main-content {
        padding: 0 1rem 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .status-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .status-content {
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .status-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Utility Classes - beibehaltene Struktur */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Theme Variations - beibehaltene Struktur */
/* Dark Theme */
body.theme-dark {
    --background-color: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-background: #1e293b;
    --input-background: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --nav-background: #020617;
    --border-color: #334155;
    --border-light: #475569;
}

/* Light Theme */
body.theme-light {
    --background-color: #ffffff;
    --nav-background: #f8f9fa;
    --nav-text-color: #333333;
    --text-primary: #000000;
}

/* Blue Theme */
body.theme-blue {
    --background-color: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    --nav-background: #1e40af;
    --primary-button-color: #1d4ed8;
    --primary-button-hover: #1e3a8a;
}

/* Danger/Delete Button Styles - beibehaltene Struktur */
.btn-danger {
    background-color: var(--danger-color);
    color: var(--primary-button-text);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Processing Page Specific Styles */
.processing-hero {
    padding: 3rem 0 4rem;
}

.workflow-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.workflow-step.active .step-circle {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.workflow-step.completed .step-circle {
    background: var(--gradient-secondary);
}

.step-circle {
    width: 40px;
    height: 40px;
    background: var(--border-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.workflow-connector {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    position: relative;
}

.workflow-step.completed+.workflow-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    animation: fillProgress 0.5s ease forwards;
}

@keyframes fillProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Processing Steps */
.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.step-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.step-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.step-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

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

.status-dot.active {
    background: var(--accent-primary);
    animation: pulse 2s infinite;
}

.status-dot.completed {
    background: var(--accent-secondary);
}

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

.step-content {
    padding: 2rem;
}

/* Button Variants */
.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-secondary);
    border: none;
}

.btn-success:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--border-color);
    border-color: var(--text-secondary);
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Requirements Box */
.requirements-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.requirements-box h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.requirement-item {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.requirement-item code {
    display: block;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.requirement-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fafafa;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    background: #f8fafc;
}

.upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-zone h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-specs {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* File Info Card */
.file-info-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-secondary);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2.5rem;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 20%, #fff7ed 100%);
    border: 1px solid #fdba74;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.warning-content h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.warning-content p {
    color: #92400e;
    margin-bottom: 0.5rem;
}

/* Deletion Targets */
.deletion-targets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.deletion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
}

.deletion-icon {
    font-size: 1.2rem;
}

.deletion-path code {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.deletion-path span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Conversion Flow */
.conversion-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    min-width: 100px;
}

.flow-icon {
    font-size: 1.5rem;
}

.flow-arrow {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Progress Section */
.progress-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.progress-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar-modern {
    flex: 1;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill-modern {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%);
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 0;
    }
}

.progress-percentage {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 40px;
}

.progress-text {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Result Section */
.result-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-icon {
    font-size: 1.2rem;
}

.result-icon.success {
    color: var(--success-text);
}

.result-icon.error {
    color: var(--error-text);
}

.result-success {
    color: var(--success-text);
}

.result-error {
    color: var(--error-text);
}

.result-details {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.result-details.error {
    background: #fef2f2;
    border-color: #fecaca;
}

.result-details h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.result-actions {
    margin-top: 1.5rem;
    text-align: right;
}

/* Download Info */
.download-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 1.2rem;
}

.info-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

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

/* Monitoring Controls */
.monitoring-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.auto-refresh-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Status Dashboard */
.status-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.dashboard-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.dashboard-item.success {
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.dashboard-item.error {
    border-color: var(--danger-color);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
}

.dashboard-item.inactive {
    opacity: 0.5;
}

.dashboard-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.dashboard-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-item.active .dashboard-number {
    color: var(--accent-primary);
}

.dashboard-item.success .dashboard-number {
    color: var(--accent-secondary);
}

.dashboard-item.error .dashboard-number {
    color: var(--danger-color);
}

.dashboard-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Summary */
.status-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.summary-header h4 {
    color: var(--text-primary);
    margin: 0;
}

.last-update {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.summary-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Help Section */
.help-section {
    margin: 4rem 0 2rem;
}

.help-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.help-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-icon {
    font-size: 1.5rem;
}

.help-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.help-content {
    padding: 2rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.help-item-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.help-item-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.help-item-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Status Messages */
.status-message {
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.status-message.info {
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.status-message.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
}

.status-message.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
}

.status-icon {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.status-content {
    flex: 1;
}

.status-content strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.status-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    padding: 1rem;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

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

.notification.success {
    border-color: var(--success-border);
    border-left: 4px solid var(--success-accent);
}

.notification.error {
    border-color: var(--error-border);
    border-left: 4px solid var(--danger-color);
}

.notification.info {
    border-color: var(--border-color);
    border-left: 4px solid var(--accent-primary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Design for Processing Page */
@media (max-width: 768px) {
    .workflow-progress {
        flex-direction: column;
        gap: 0.5rem;
    }

    .workflow-connector {
        width: 2px;
        height: 40px;
        transform: rotate(90deg);
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .monitoring-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        justify-content: center;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .upload-zone {
        padding: 2rem 1rem;
    }

    .file-preview {
        flex-direction: column;
        text-align: center;
    }

    .file-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-item {
        padding: 1rem;
    }

    .dashboard-number {
        font-size: 2rem;
    }

    .conversion-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}