* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #eef0f2;
    color: #333;
}
a { color: #3b7dd8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Auth pagina's (login / register) ---------- */
body.auth-dark {
    background: linear-gradient(135deg, #1e2530 0%, #0f141c 100%);
}
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.auth-box {
    background: #232b38;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
    padding: 32px 40px 40px;
    width: 100%;
    max-width: 760px;
    color: #e4e8ee;
    border: 1px solid rgba(255,255,255,.06);
}
.auth-box h1 { font-size: 22px; margin: 0 0 24px; color: #fff; }
.auth-box .form-row label { color: #aab3c0; }
.auth-box .form-row input,
.auth-box .form-row select,
.auth-box .form-row textarea {
    background: #1a212c;
    border: 1px solid #3a4453;
    color: #e4e8ee;
}
.auth-box .form-row input::placeholder { color: #6b7688; }
.auth-box .form-row input:focus,
.auth-box .form-row select:focus { outline: none; border-color: #3f8ed9; }
.auth-footer { color: #aab3c0; }
.auth-footer a { color: #6db3f5; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: #444; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.btn {
    display: inline-block;
    background: #3f8ed9;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.btn:hover { background: #327ac2; text-decoration: none; }
.btn-danger { background: #e05252; }
.btn-danger:hover { background: #c73f3f; }
.auth-footer { margin-top: 18px; font-size: 13px; }

/* ---------- App layout ---------- */
.topbar {
    background: #4a90b8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
}
.topbar .brand { font-weight: 700; font-size: 17px; }
.topbar .brand span { font-weight: 400; }
.topbar .right { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.topbar .right img { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; margin-right: 6px; background:#ccc;}

.layout { display: flex; padding-top: 52px; min-height: 100vh; }
.sidebar {
    width: 190px;
    background: #1e2530;
    color: #d7dbe0;
    padding: 18px 0;
    position: fixed;
    top: 52px; bottom: 0; left: 0;
    overflow-y: auto;
}
.sidebar .user-block { text-align: center; padding: 0 10px 16px; border-bottom: 1px solid #2c3542; margin-bottom: 10px; }
.sidebar .user-block img { width: 46px; height: 46px; border-radius: 50%; background:#3a4453; }
.sidebar .user-block .naam { font-weight: 600; margin-top: 8px; font-size: 14px; }
.sidebar .user-block .label { font-size: 11px; color: #93a0b0; margin-top: 4px; }
.status-btn {
    display: block;
    margin: 8px 14px 18px;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.status-btn.online { background: #e05252; }
.status-btn.offline { background: #3fae5c; }
.nowplaying { margin: 0 14px 18px; background: #10151d; color: #fff; padding: 8px 10px; font-size: 12px; border-radius: 4px; }
.sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px;
    color: #c3c9d1;
    font-size: 14px;
}
.sidebar nav a:hover, .sidebar nav a.active { background: #262f3d; color: #fff; text-decoration: none; }
.sidebar nav a.active { border-left: 3px solid #3f8ed9; }

.content { margin-left: 190px; flex: 1; padding: 24px 30px 60px; }
.content h1 { font-size: 22px; margin: 0 0 18px; font-weight: 600; }

.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    margin-bottom: 20px;
    overflow: hidden;
}
.card .card-header { background: #f7f9fa; border-bottom: 2px solid #3f8ed9; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.card .card-body { padding: 18px 20px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { color: #fff; border-radius: 4px; padding: 18px 20px; position: relative; overflow: hidden; }
.stat .num { font-size: 30px; font-weight: 700; }
.stat .lbl { font-size: 13px; opacity: .9; }
.stat.blue { background: #21b0d6; }
.stat.green { background: #2fae5c; }
.stat.orange { background: #f0a83a; }
.stat.red { background: #e0554f; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th { text-align: left; background: #f7f9fa; padding: 10px 14px; border-bottom: 1px solid #e5e5e5; }
table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }

.settings-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; }
.settings-grid a { color: #333; font-size: 13px; }
.settings-grid .icon { font-size: 34px; margin-bottom: 8px; }

.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; }
.flash.success { background: #e3f6e9; color: #1c7c3c; border: 1px solid #b7e3c4; }
.flash.error { background: #fdeaea; color: #b52d2d; border: 1px solid #f3c0c0; }

.embed-block { margin-bottom: 24px; }
.embed-block h3 { margin: 0 0 8px; font-size: 15px; color: #3b7dd8; }
.embed-block input { width: 100%; padding: 8px 10px; font-family: monospace; font-size: 13px; border: 1px solid #ccc; border-radius: 4px; }

footer.pagefoot { margin-left: 190px; padding: 14px 30px; font-size: 12px; color: #888; display:flex; justify-content: space-between; }

@media (max-width: 800px) {
    .form-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .settings-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Programma rooster ---------- */
.prog-header, .prog-row {
    display: grid;
    grid-template-columns: 110px 110px 160px 1fr 1fr;
    gap: 8px;
    align-items: center;
}
.prog-header { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.prog-dag { margin: 22px 0 8px; font-size: 15px; color: #3b7dd8; }
.prog-grid { display: flex; flex-direction: column; gap: 4px; }
.prog-row input, .prog-row select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}
@media (max-width: 900px) {
    .prog-header, .prog-row { grid-template-columns: 90px 90px 120px 1fr 1fr; }
}

/* ---------- Gebruikers online paneel ---------- */
.online-users-toggle { cursor: pointer; user-select: none; }
.online-users-panel {
    display: none;
    position: fixed;
    top: 52px; right: 20px;
    z-index: 25;
    background: #4a90b8;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    min-width: 320px;
    padding: 10px;
}
.online-users-panel.open { display: block; }
.online-users-panel table { color: #fff; }
.online-users-panel th { background: transparent; color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.online-users-panel td { border-bottom: 1px solid rgba(255,255,255,.15); color: #fff; }


