/* ROOT VARIABLES FOR EASY THEMING */
:root {
    --primary: #166534;
    --primary-light: #22c55e;
    --accent: #eab308;
    --bg-main: #f0fdf4;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --border-color: #d1fae5;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* DARK MODE OVERRIDES */
body.dark {
    --bg-main: #064e3b;
    --card-bg: #022c22;
    --text-dark: #f1f5f9;
    --border-color: #065f46;
    --shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* GLOBAL STYLES */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
    transition: background-color 0.4s ease;
}

/* NAVBAR MODERNIZE */
.light-header {
    background: var(--card-bg);
    border-bottom: 3px solid var(--accent);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1750px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section { display: flex; gap: 1rem; align-items: center; }
.logo-icon { 
    font-size: 1.5rem; 
    background: var(--primary); 
    padding: 10px; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.3);
}

h1 { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--primary); letter-spacing: -0.5px; }
h1 span { font-weight: 300; opacity: 0.7; }

.badge-row { display: flex; gap: 6px; margin-top: 5px; }
.badge { font-size: 9px; padding: 3px 8px; border-radius: 5px; font-weight: 700; text-transform: uppercase; }
.badge-emerald { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.nav-subtitle { font-size: 10px; margin-top: 4px; opacity: 0.6; font-weight: 600; font-family: monospace; }

/* LAYOUT & CARDS */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.card-neo {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

/* INPUTS & TEXTAREAS */
textarea {
    width: 100%;
    background: rgba(0,0,0,0.02);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: inherit;
    transition: all 0.2s ease;
}

body.dark textarea { background: rgba(255,255,255,0.05); }

textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

/* BUTTONS */
.btn-primary, .btn-gradient, button[onclick*="process"] {
    background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

button[onclick*="process"]:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 101, 52, 0.4);
}

.btn-id-maker {
    background: var(--accent);
    color: #422006;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 4px 0 #ca8a04;
    transition: all 0.1s;
}

.btn-id-maker:active { transform: translateY(2px); box-shadow: 0 0 0; }

/* DATA TABLES */
.results-window {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(0,0,0,0.02);
}

body.dark .results-window { background: rgba(0,0,0,0.2); }

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th {
    background: var(--primary);
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 0;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

tr:hover td { background: rgba(34, 197, 94, 0.05); }

/* PROGRESS BAR */
.progress-wrapper {
    background: #e2e8f0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-light),
        var(--primary-light) 10px,
        var(--primary) 10px,
        var(--primary) 20px
    );
    transition: width 0.3s;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .split-container { grid-template-columns: 1fr; }
}