/* ===========================
   NEXORA — Hoofd Stylesheet
   =========================== */

:root {
    --primary:       #C0392B;
    --primary-dark:  #A93226;
    --background:    #0F0F1A;
    --surface:       #1A1A2E;
    --surface-light: #252540;
    --text:          #E8E8F0;
    --text-muted:    #9090A8;
    --success:       #4CAF50;
    --error:         #E74C3C;
    --border:        #2E2E4E;
    --radius:        12px;
    --shadow:        0 8px 32px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===========================
   LOGIN PAGINA
   =========================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #080808 0%, #101010 50%, #0A0A0A 100%);
}

.login-container {
    background: #101010;
    border: 1px solid #222222;
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo h1 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ===========================
   FORMULIER
   =========================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* ===========================
   KNOPPEN
   =========================== */

.btn-login {
    background: linear-gradient(135deg, #C0392B, #A93226);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #C0392B, #A93226);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-save {
    background: linear-gradient(135deg, #D4781A, #B8651A);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 120, 26, 0.35);
}

.btn-save:active {
    transform: translateY(0);
}

body.light-mode .btn-save {
    background: linear-gradient(135deg, #C46A10, #A85A0E);
}

.btn-danger {
    background: #C0392B;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

/* ===========================
   ALERTS
   =========================== */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: #E74C3C;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #69db7c;
}

/* ===========================
   DASHBOARD LAYOUT
   =========================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo a {
    text-decoration: none;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s;
}

.sidebar-logo a:hover h2 {
    opacity: 0.8;
}

.sidebar-logo span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--surface-light);
    color: var(--text);
}

.nav-item.active {
    background: rgba(192, 57, 43, 0.15);
    color: var(--primary);
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.page-header p {
    color: var(--text-muted);
    margin-top: 4px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-month {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-month span {
    color: #69db7c;
    font-weight: 600;
}

/* ===========================
   TABELLEN
   =========================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--surface-light);
}

.data-table th:last-child,
.data-table td:last-child {
    text-align: right;
}

/* ===========================
   ROLE BADGES
   =========================== */

.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-admin {
    background: rgba(192, 57, 43, 0.15);
    color: #E74C3C;
}

.role-manager {
    background: rgba(76, 175, 80, 0.15);
    color: #69db7c;
}

.role-medewerker {
    background: rgba(255, 193, 7, 0.15);
    color: #ffd43b;
}

/* ===========================
   LIGHT MODE
   =========================== */

body.light-mode {
    --primary:       #C0392B;
    --primary-dark:  #A93226;
    --background:    #F5F5F5;
    --surface:       #FFFFFF;
    --surface-light: #EBEBEB;
    --text:          #1A1A2E;
    --text-muted:    #6B7280;
    --border:        #D1D5DB;
    --shadow:        0 8px 32px rgba(0,0,0,0.08);
}

body.light-mode .login-page {
    background: linear-gradient(135deg, #F0F0F0 0%, #F5F5F5 50%, #EBEBEB 100%);
}

body.light-mode .nav-item:hover {
    background: #EBEBEB;
}

body.light-mode .nav-item.active {
    background: rgba(192, 57, 43, 0.1);
    color: var(--primary);
}

body.light-mode .stat-card,
body.light-mode .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body.light-mode .data-table tr:hover td {
    background: #F0F0F0;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    background: #F0F0F0;
    color: #1A1A2E;
}

body.light-mode .form-group input::placeholder {
    color: #9CA3AF;
}

/* ===========================
   DARK MODE
   =========================== */

body.dark-mode {
    --primary:       #C0392B;
    --primary-dark:  #A93226;
    --background:    #080808;
    --surface:       #101010;
    --surface-light: #181818;
    --text:          #D4D4D4;
    --text-muted:    #666666;
    --border:        #222222;
    --shadow:        0 8px 32px rgba(0,0,0,0.6);
}

body.dark-mode .login-page {
    background: linear-gradient(135deg, #080808 0%, #101010 50%, #0A0A0A 100%);
}

/* ===========================
   THEMA TOGGLE ROW
   =========================== */

.theme-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.theme-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.theme-toggle-btns {
    display: flex;
    gap: 4px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.theme-btn-icon {
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 7px;
    transition: background 0.2s;
    line-height: 1;
}

.theme-btn-icon:hover {
    background: var(--border);
}

.theme-btn-icon.active {
    background: var(--primary);
}

/* ===========================
   SIDEBAR SECTIE SCHEIDING
   =========================== */

.nav-section + .nav-section {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

/* ===========================
   NOTIFICATIEBALK
   =========================== */

.notif-balk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    margin: -32px -32px 32px -32px;
    flex-wrap: wrap;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.notif-item.reminder {
    color: #6495ED;
    background: rgba(100,149,237,0.1);
    border: 1px solid rgba(100,149,237,0.25);
}

.notif-item.reminder:hover {
    background: rgba(100,149,237,0.2);
}

.notif-item.actie {
    color: #D4781A;
    background: rgba(212,120,26,0.1);
    border: 1px solid rgba(212,120,26,0.25);
}

.notif-item.actie:hover {
    background: rgba(212,120,26,0.2);
}

.notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: notif-pulse 2s infinite;
}

.notif-dot.reminder { background: #6495ED; }
.notif-dot.actie    { background: #D4781A; }

@keyframes notif-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.notif-sluit {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}

.notif-sluit:hover {
    background: var(--border);
}

/* ===========================
   NEXORA MODALS
   =========================== */

.nexora-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.nexora-modal-overlay.open {
    display: flex;
}

.nexora-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.nexora-modal-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.nexora-modal-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.nexora-modal-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.nexora-modal-warning {
    text-align: center;
    font-size: 0.82rem;
    color: #ff6b6b;
    margin-bottom: 28px;
}

.nexora-modal-body {
    margin-bottom: 24px;
}

.nexora-modal-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.nexora-modal-select,
.nexora-modal-input {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.nexora-modal-select:focus,
.nexora-modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.nexora-modal-footer {
    display: flex;
    gap: 12px;
}

.nexora-modal-footer .btn-primary,
.nexora-modal-footer .btn-secondary,
.nexora-modal-footer .btn-danger {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
}

/* ===========================
   BULK BALK
   =========================== */

.bulk-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.bulk-bar.zichtbaar {
    display: flex;
}

.bulk-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(192,57,43,0.1);
    border: 1px solid rgba(192,57,43,0.2);
    border-radius: 20px;
}

.bulk-actie-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bulk-actie-btn:hover {
    background: var(--border);
    border-color: var(--primary);
    color: var(--primary);
}

.bulk-actie-btn.actief {
    background: rgba(192,57,43,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.bulk-actie-btn.danger:hover {
    background: rgba(244,67,54,0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.bulk-separator {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}