/* ============================================================
   ABN Scanner – Zenkner-Technology Corporate Design
   Full Dark & Light (White) Theme Support
   Default: White Mode (Clean, High-Contrast & Professional)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* ── Standard / Default: Light Mode (White Mode) ── */
    --bg: #f8fafc;
    --bg-grad-1: rgba(6, 182, 212, 0.05);
    --bg-grad-2: rgba(59, 130, 246, 0.04);
    --surface: #ffffff;
    --panel: #ffffff;
    --panel-border: #e2e8f0;
    --card: #ffffff;
    --card-border: #cbd5e1;
    --card-sub-bg: #f8fafc;
    --card-hover-border: #0284c7;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f1f5f9;
    --text: #0f172a;        /* Sehr klares, dunkles Slate für perfekten Kontrast */
    --text-2: #334155;      /* Sekundärtext: Dunkles Schiefergrau */
    --muted: #64748b;
    --accent: #0284c7;
    --accent-light: #0ea5e9;
    --accent-2: #2563eb;
    --accent-dim: rgba(2, 132, 199, 0.08);
    --accent-glow: rgba(2, 132, 199, 0.2);
    --border: #e2e8f0;
    --border-accent: rgba(2, 132, 199, 0.4);
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #0f172a;
    --dropzone-bg: #f8fafc;
    --dropzone-border: #94a3b8;
    --shadow-box: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04);
    --success: #10b981;
}

/* ── Dark Mode ── */
html.dark {
    --bg: #04070d;
    --bg-grad-1: rgba(6, 182, 212, 0.08);
    --bg-grad-2: rgba(59, 130, 246, 0.06);
    --surface: #080d18;
    --panel: rgba(12, 20, 34, 0.8);
    --panel-border: rgba(255, 255, 255, 0.08);
    --card: rgba(16, 28, 46, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-sub-bg: rgba(8, 13, 24, 0.6);
    --card-hover-border: rgba(6, 182, 212, 0.4);
    --header-bg: rgba(6, 10, 18, 0.85);
    --footer-bg: #04070d;
    --text: #f1f5f9;
    --text-2: #94a3b8;
    --muted: #64748b;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --accent-2: #3b82f6;
    --accent-dim: rgba(6, 182, 212, 0.12);
    --accent-glow: rgba(6, 182, 212, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(6, 182, 212, 0.3);
    --input-bg: rgba(8, 13, 24, 0.85);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-text: #f1f5f9;
    --dropzone-bg: rgba(8, 13, 24, 0.45);
    --dropzone-border: rgba(6, 182, 212, 0.28);
    --shadow-box: 0 0 35px -5px rgba(6, 182, 212, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 10%, var(--bg-grad-1) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, var(--bg-grad-2) 0%, transparent 45%);
    background-attachment: fixed;
    transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark .gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-box {
    box-shadow: var(--shadow-box);
}

.glass-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    color: var(--text);
}

html.dark .glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text);
    transition: all 0.2s ease;
}

html.dark .glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.dropzone-container {
    border: 2px dashed var(--dropzone-border);
    background: var(--dropzone-bg);
    transition: all 0.2s ease;
}

.dropzone-container:hover, .drag-active {
    border-color: var(--accent) !important;
    background: var(--accent-dim) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Custom Input Styles */
.zt-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.zt-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Form Labels High Contrast in Whitemode */
label {
    color: var(--text-2);
}

html:not(.dark) label {
    color: #1e293b !important;
    font-weight: 600;
}

/* Textarea specifics */
textarea.zt-input {
    line-height: 1.6;
}

html:not(.dark) textarea.zt-input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* Theme Toggle Button */
.theme-switch-btn {
    background: var(--card-sub-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-switch-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

/* ZenTech Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

html.dark .btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 22px rgba(2, 132, 199, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 22px rgba(16, 185, 129, 0.35);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #1e293b;
}
