/* Basisinstellingen en Variabelen */
:root {
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --sidebar-bg: #0b1120;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

/* Achtergrond animaties */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #3b82f6, #1e3a8a);
    top: -200px; left: -100px;
}
.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #8b5cf6, #4c1d95);
    bottom: -100px; right: -50px; animation-delay: 2s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
}
.sidebar-brand h2 {
    color: #fff; text-align: center; font-weight: 800; font-size: 1.8rem;
    margin-bottom: 40px; padding: 0 20px;
    background: linear-gradient(90deg, #fff, #93c5fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 5px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 30px; color: var(--text-muted);
    text-decoration: none; font-weight: 500; transition: all 0.3s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-right: 4px solid var(--accent);
}

/* Content Area */
.app-content {
    flex: 1; margin-left: 260px;
    padding: 40px; max-width: 1400px;
}

/* Header */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px;
}
.app-header h1 {
    font-size: 2.2rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.app-header .subtitle { color: var(--text-muted); font-size: 1.1rem; margin-top: 4px; }
.header-status {
    display: flex; align-items: center; gap: 10px;
    background: var(--glass-bg); padding: 8px 16px;
    border-radius: 20px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); font-size: 0.9rem; font-weight: 600;
}
.status-dot {
    width: 10px; height: 10px; background-color: var(--success);
    border-radius: 50%; box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Dashboard Grid */
.dashboard { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
@media (max-width: 1100px) { .dashboard { grid-template-columns: 1fr; } }

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease;
}
.glass-panel h2 {
    font-size: 1.4rem; margin-bottom: 25px; font-weight: 600; color: #fff;
    border-bottom: 1px solid var(--glass-border); padding-bottom: 10px;
}

/* Form Styles */
.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
input, select, textarea {
    width: 100%; background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border); color: #fff;
    padding: 12px 16px; border-radius: 12px; font-size: 1rem;
    font-family: 'Inter', sans-serif; transition: all 0.3s ease; outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); background: rgba(15, 23, 42, 0.9);
}
select option { background: var(--bg-dark); }

/* Buttons */
.btn-primary {
    width: 100%; background: linear-gradient(135deg, var(--accent), #60a5fa);
    color: white; border: none; padding: 14px 20px; border-radius: 12px;
    font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow); display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-danger { background: linear-gradient(135deg, var(--error), #f87171); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }

/* Table Elements */
.table-container { overflow-x: auto; max-height: 500px; overflow-y: auto; }
.table-container::-webkit-scrollbar { width: 8px; height: 8px; }
.table-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
.table-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.planning-table { width: 100%; border-collapse: collapse; text-align: left; }
.planning-table th {
    position: sticky; top: 0; background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(5px); padding: 15px; font-weight: 600;
    color: var(--text-muted); border-bottom: 2px solid var(--glass-border); z-index: 10;
}
.planning-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-main); }
.planning-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); }

/* Badges & Messages */
.badge { padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.badge-planned { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.message { padding: 12px; border-radius: 8px; margin-top: 15px; font-size: 0.9rem; display: none; }
.message.success { display: block; background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.message.error { display: block; background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.hidden { display: none; }

/* === Lijnfilm (LED Matrix) === */
.boordcomputer-container {
    height: 100vh; width: 100vw; display: flex; flex-direction: column; background: #000; padding: 20px; margin: 0;
}
.led-matrix {
    background-color: #111;
    border: 10px solid #222;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: inset 0 0 20px #000;
    margin-bottom: 30px;
}
@font-face {
    font-family: 'DOTMATRI';
    src: url('https://db.onlinewebfonts.com/t/20e36398bfa79f04523c91af619bcbb8.woff2') format('woff2'); /* DOTMATRI font placeholder */
}
.led-text {
    font-family: 'DOTMATRI', 'Courier New', monospace;
    color: #ff9900;
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 0 0 10px #ff9900, 0 0 20px #ff6600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.led-subtext {
    font-family: 'DOTMATRI', 'Courier New', monospace;
    color: #ff9900;
    font-size: 2.5rem;
    margin-top: 10px;
    text-shadow: 0 0 8px #ff9900;
}

.boord-inbox {
    flex: 1;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 25px;
    overflow-y: auto;
}
.boord-inbox h2 {
    color: #fff; margin-bottom: 20px; border-bottom: 1px solid #334155; padding-bottom: 10px;
}
.inbox-msg {
    background: #0f172a; border-left: 4px solid var(--accent);
    padding: 15px; margin-bottom: 15px; border-radius: 8px;
}
.inbox-msg .sender { color: #94a3b8; font-size: 0.85rem; font-weight: bold; margin-bottom: 5px; }
.inbox-msg .tekst { color: #fff; font-size: 1.2rem; }
.inbox-msg .tijd { color: #64748b; font-size: 0.8rem; float: right; }
