/* ==========================================================================
   1. GLOBALE BASIS & LAYOUT
   ========================================================================== */
html, body { margin: 0; padding: 0; height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; color: #333; }
* { box-sizing: border-box; }
.main-content::after { content: ""; display: table; clear: both; }
footer { padding: 20px; text-align: center; color: #999; font-size: 14px; margin-top: auto; }

/* ==========================================================================
   2. index.php
   ========================================================================== */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: #f4f4f4; margin: 0; font-family: sans-serif; }
.login-container { width: 100%; max-width: 400px; padding: 15px; }
.login-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.login-header { text-align: center; margin-bottom: 25px; }
.login-logo { max-width: 120px; height: auto; margin-bottom: 15px; }
.login-header h1 { font-size: 24px; color: #333; margin: 0; }
.message.error-box { background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; border: 1px solid #f5c6cb; margin-bottom: 20px; font-size: 14px; }
.login-form .form-group { margin-bottom: 15px; }
.login-form label { display: block; margin-bottom: 5px; color: #666; font-weight: bold; }
.form-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.login-link-wrapper { text-align: right; margin-top: 8px; }
.login-link { font-size: 13px; color: #666; text-decoration: none; transition: color 0.2s ease-in-out; }
.login-link:hover { color: #007bff; text-decoration: underline; }
.btn-primary { background-color: #007bff; color: white; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background 0.3s; margin-top: 10px; }
.btn-primary:hover { background-color: #0056b3; }
.btn-block { width: 100%; display: block; }
.login-footer { text-align: center; margin-top: 25px; color: #999; font-size: 12px; }

/* ==========================================================================
   3. dashboard.php
   ========================================================================== */
/* Dashboard Layout & Welkomstsectie */
.dashboard-welcome { margin-bottom: 30px; padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-left: 5px solid #FF6600; width: 100%; box-sizing: border-box; }
.dashboard-welcome h2 { margin: 0 0 15px 0; color: #2c3e50; font-size: 32px; font-weight: 700; }
.dashboard-welcome p { margin: 0; color: #444; line-height: 1.6; font-size: 1.1em; width: 100%; }
.dashboard-status { margin-top: 20px; display: flex; gap: 25px; font-size: 0.9em; color: #7f8c8d; border-top: 1px solid #eee; padding-top: 15px; }

/* Groepen en Tegels (Tiles) */
.tile-group { margin-bottom: 40px; width: 100%; }
.tile-group h3 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; color: #2c3e50; font-size: 22px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
.tile { position: relative; background: #fff; border: 1px solid #e1e8ed; border-radius: 12px; padding: 25px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.tile:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #FF6600; }
.tile-icon { width: 56px; height: 56px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
.tile-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile-title { font-weight: 600; color: #333; font-size: 16px; margin-bottom: 15px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.tile-button { background-color: #FF6600; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; width: 100%; }
.tile-button:hover { background-color: #e65c00; }

/* Script Uitvoeren (Popup venster) */
.popup-body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 20px; background: #121212; color: #e0e0e0; }
.popup-output { background: #1e1e1e; padding: 15px; border-radius: 8px; border: 1px solid #333; overflow-x: auto; white-space: pre-wrap; font-family: monospace; line-height: 1.5; color: #d4d4d4; min-height: 100px; }
.popup-status-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.popup-close-btn { padding: 8px 16px; background: #FF6600; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.popup-loader { color: #569cd6; margin-bottom: 10px; font-weight: bold; }
.popup-progress-container { background: #333; height: 15px; border-radius: 8px; margin: 15px 0; display: none; overflow: hidden; border: 1px solid #444; }
.popup-progress-bar { background: #FF6600; width: 0%; height: 100%; transition: width 0.3s ease; }

/* ==========================================================================
   4. header.php (Prefix: hdr_)
   ========================================================================== */
header.hdr_main { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 1000; }
.hdr_left { display: flex; align-items: center; gap: 15px; }
.hdr_left img.hdr_logo { height: 40px; width: auto; }
.hdr_left h1.hdr_title { font-size: 20px; color: #333; margin: 0; }
.hdr_right { display: flex; align-items: center; gap: 20px; }
.hdr_user_name { font-weight: 600; color: #555; }
.hdr_logout_btn svg { width: 24px; height: 24px; color: #FF6600; transition: color 0.2s; }
.hdr_logout_btn:hover svg { color: #cc5200; }
.hdr_sidebar { position: fixed; left: 0; top: 60px; bottom: 0; width: 250px; background: #2c3e50; overflow-y: auto; padding-top: 10px; z-index: 999; }
.hdr_nav_item { display: flex; align-items: center; padding: 12px 20px; color: #bdc3c7; text-decoration: none; transition: background 0.2s, color 0.2s; cursor: pointer; }
.hdr_nav_item i { width: 25px; font-size: 18px; margin-right: 10px; } /* Toegevoegd: margin-right voor ruimte tussen icoon en tekst */
.hdr_nav_item:hover, .hdr_nav_item.hdr_active { background: #34495e; color: #fff; }
.hdr_nav_item.hdr_sub { padding-left: 45px; font-size: 14px; background: #1a252f; border-left: 3px solid transparent; }
.hdr_nav_item.hdr_sub i { margin-right: 5px; } /* Iets minder ruimte in het submenu voor een strakker effect */
.hdr_nav_item.hdr_sub.hdr_active { border-left-color: #FF6600; background: #243342; }
.hdr_group { border-bottom: 1px solid #34495e; }
.hdr_group_header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; color: #bdc3c7; cursor: pointer; transition: background 0.2s; }
.hdr_group_header:hover { background: #34495e; color: #fff; }
.hdr_group_header i:not(.hdr_arrow) { width: 25px; margin-right: 10px; } /* Ruimte voor iconen in inklapbare koppen */
.hdr_arrow { transition: transform 0.3s; font-size: 12px; }
.hdr_group.hdr_open .hdr_arrow { transform: rotate(90deg); }
.hdr_submenu { background: #1a252f; display: none; }
.hdr_group.hdr_open .hdr_submenu { display: block; }
.hdr_main_content { margin-left: 250px; margin-top: 60px; padding: 30px; min-height: calc(100vh - 60px); background: #f4f7f6; }

/* ==========================================================================
   5. manage_groups.php
   ========================================================================== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.add-user-btn { background-color: #28a745; color: white; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: bold; transition: background 0.2s; }
.add-user-btn:hover { background-color: #218838; }
.table-container { background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; }
.styled-table { width: 100%; border-collapse: collapse; text-align: left; }
.styled-table thead tr { background-color: #f8f9fa; border-bottom: 2px solid #eee; }
.styled-table th, .styled-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.styled-table tbody tr:hover { background-color: #fcfcfc; }
.btn-small { background-color: #007bff; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-small:hover { background-color: #0069d9; }
.btn-danger { background-color: #dc3545; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-danger:hover { background-color: #c82333; }
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 15px; border-radius: 6px; margin-bottom: 20px; transition: opacity 0.5s; }
.fade-out { opacity: 0; }
.modal { display: flex; align-items: center; justify-content: center; }
.modal-content { box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: slideIn 0.3s ease-out; }
.modal-close:hover { color: #FF6600; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================================================
   6. manage_users.php (Geïsoleerde Styles)
   ========================================================================== */
.mng-usr-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.mng-usr-add-btn { background-color: #28a745; color: white; border: none; padding: 10px 18px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; transition: background 0.2s; }
.mng-usr-add-btn:hover { background-color: #218838; }
.mng-usr-status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 600; display: inline-block; }
.mng-usr-status-active { background: #e8f5e9; color: #2e7d32; }
.mng-usr-status-pending { background: #fff3e0; color: #ef6c00; }
.mng-usr-btn-reset { background: #FD7E14; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 0.85em; transition: opacity 0.2s; }
.mng-usr-btn-reset:hover { opacity: 0.85; }
.mng-usr-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.mng-usr-modal-content { background-color: #fff; padding: 30px; border-radius: 8px; width: 100%; max-width: 500px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.mng-usr-modal-close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #aaa; line-height: 1; }
.mng-usr-modal-close:hover { color: #333; }
.mng-usr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.mng-usr-label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; text-align: left; }
.mng-usr-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 14px; }

/* ==========================================================================
   7. manage_items.php
   ========================================================================== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.add-user-btn { background-color: #28a745; color: white; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: bold; transition: background 0.2s; }
.add-user-btn:hover { background-color: #218838; }
.table-container { background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; }
.styled-table { width: 100%; border-collapse: collapse; text-align: left; }
.styled-table thead tr { background-color: #f8f9fa; border-bottom: 2px solid #eee; }
.styled-table th, .styled-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.styled-table tbody tr:hover { background-color: #fcfcfc; }
.item-name { font-weight: bold; color: #2c3e50; }
.item-url { font-family: monospace; font-size: 0.9em; color: #666; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-col { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.icon-btn { background: none; border: none; padding: 6px; cursor: pointer; border-radius: 4px; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; }
.edit-btn { color: #007bff; }
.edit-btn:hover { background: #e7f1ff; }
.delete-btn { color: #dc3545; }
.delete-btn:hover { background: #fee7e9; }
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 15px; border-radius: 6px; margin-bottom: 20px; transition: opacity 0.5s; }
.fade-out { opacity: 0; }
.modal { display: flex; align-items: center; justify-content: center; }
.modal-content { box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: slideIn 0.3s ease-out; }
.modal-close:hover { color: #FF6600; }
.icon-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; max-height: 200px; overflow-y: auto; padding: 10px; border: 1px solid #eee; border-radius: 8px; background: #fcfcfc; }
.icon-option { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; background: #fff; transition: 0.2s; }
.icon-option:hover { border-color: #FF6600; background: #fff5ee; }
.icon-option img { width: 20px; height: 20px; object-fit: contain; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sortable-item.ghost { opacity: 0.4; background: #e7f1ff; }
.drag-handle:hover { color: #007bff !important; }
.group-container { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* ==========================================================================
   8. manage_permissions.php
   ========================================================================== */
.dash-prm-admin-container { margin-top: 20px; }
.dash-prm-user-block { margin-bottom: 10px; border-radius: 6px; overflow: hidden; border: 1px solid #ddd; }
.dash-prm-header-row { background-color: #34495e; color: #fff; padding: 12px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.dash-prm-header-row:hover { background-color: #2c3e50; }
.dash-prm-header-row.active { background-color: #2c3e50; border-bottom: 2px solid #FF6600; }
.dash-prm-user-info { text-align: left !important; flex-grow: 1; }
.dash-prm-user-info strong { font-size: 1.05em; display: block; }
.dash-prm-user-info small { color: #bdc3c7; font-size: 0.85em; }
.dash-prm-arrow { transition: transform 0.3s ease; }
.dash-prm-header-row.active .dash-prm-arrow { transform: rotate(180deg); }
.dash-prm-content-area { display: none; background: #fff; }
.dash-prm-table-fixed { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dash-prm-table-fixed td { padding: 12px 15px; border-bottom: 1px solid #eee; vertical-align: middle; text-align: left !important; }
.dash-prm-group-header { background-color: #fcfcfc; border-left: 4px solid #FF6600; font-weight: bold; color: #333; }
.dash-prm-item-name { padding-left: 40px !important; color: #555; font-size: 0.92em; text-align: left !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-prm-switch-cell { text-align: right !important; width: 80px; }
.dash-prm-user-footer { padding: 15px; background: #fcfcfc; border-top: 1px solid #eee; text-align: right; }
.dash-prm-btn-save { background-color: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
.dash-prm-btn-save:hover { background-color: #219150; }
.dash-prm-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.dash-prm-switch input { opacity: 0; width: 0; height: 0; }
.dash-prm-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.dash-prm-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.dash-prm-switch input:checked + .dash-prm-slider { background-color: #28a745; }
.dash-prm-switch input:checked + .dash-prm-slider:before { transform: translateX(18px); }

/* ==========================================================================
   9. complete_registration.php (Geïsoleerde Styles)
   ========================================================================== */
.reg-usr-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: #f4f4f4; margin: 0; font-family: sans-serif; }
.reg-usr-container { width: 100%; max-width: 500px; padding: 15px; box-sizing: border-box; }
.reg-usr-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.reg-usr-header { text-align: center; margin-bottom: 25px; }
.reg-usr-logo { max-width: 120px; height: auto; margin-bottom: 15px; }
.reg-usr-header h1 { font-size: 24px; color: #333; margin: 0; }
.reg-usr-card h3 { text-align: center; margin-bottom: 20px; color: #444; }
.reg-usr-message { padding: 10px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; text-align: center; }
.reg-usr-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.reg-usr-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.reg-usr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.reg-usr-full-width { grid-column: span 2; }
.reg-usr-label { display: block; margin-bottom: 5px; color: #666; font-weight: bold; font-size: 0.9em; }
.reg-usr-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 14px; }
.reg-usr-input:disabled { background-color: #f9f9f9; color: #888; }
.reg-usr-help-text { font-size: 0.8em; color: #777; margin: 15px 0; line-height: 1.4; padding: 10px; background: #fdfdfd; border: 1px solid #eee; border-radius: 4px; }
.reg-usr-btn { width: 100%; padding: 12px; background-color: #007bff; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; transition: background 0.3s; font-size: 16px; margin-top: 10px; }
.reg-usr-btn:hover { background-color: #0056b3; }
.reg-usr-footer { text-align: center; margin-top: 25px; color: #999; font-size: 12px; }

/* ==========================================================================
   10. manage_menu_permissions.php (Geïsoleerde Styles)
   ========================================================================== */
.mmnu-admin-container { margin-top: 20px; }
.mmnu-user-block { margin-bottom: 10px; border-radius: 6px; overflow: hidden; border: 1px solid #ddd; }
.mmnu-header-row { background-color: #34495e; color: #fff; padding: 12px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.mmnu-header-row:hover { background-color: #2c3e50; }
.mmnu-header-row.active { background-color: #2c3e50; border-bottom: 2px solid #FF6600; }
.mmnu-user-info { text-align: left !important; flex-grow: 1; }
.mmnu-user-info strong { font-size: 1.05em; display: block; }
.mmnu-user-info small { color: #bdc3c7; font-size: 0.85em; }
.mmnu-arrow { transition: transform 0.3s ease; }
.mmnu-header-row.active .mmnu-arrow { transform: rotate(180deg); }
.mmnu-content-area { display: none; background: #fff; }
.mmnu-table-fixed { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mmnu-table-fixed td { padding: 12px 15px; border-bottom: 1px solid #eee; vertical-align: middle; text-align: left !important; }
.mmnu-group-header { background-color: #fcfcfc; border-left: 4px solid #FF6600; font-weight: bold; color: #333; }
.mmnu-item-name { padding-left: 40px !important; color: #555; font-size: 0.92em; text-align: left !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmnu-switch-cell { text-align: right !important; width: 80px; }
.mmnu-user-footer { padding: 15px; background: #fcfcfc; border-top: 1px solid #eee; text-align: right; }
.mmnu-btn-save { background-color: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
.mmnu-btn-save:hover { background-color: #219150; }
.mmnu-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.mmnu-switch input { opacity: 0; width: 0; height: 0; }
.mmnu-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.mmnu-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.mmnu-switch input:checked + .mmnu-slider { background-color: #28a745; }
.mmnu-switch input:checked + .mmnu-slider:before { transform: translateX(18px); }

/* ==========================================================================
   11. forgot_password.php (Geïsoleerde Styles)
   ========================================================================== */
.fgt-pwd-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: #f4f4f4; margin: 0; font-family: sans-serif; }
.fgt-pwd-container { width: 100%; max-width: 400px; padding: 15px; box-sizing: border-box; }
.fgt-pwd-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.fgt-pwd-header { text-align: center; margin-bottom: 25px; }
.fgt-pwd-logo { max-width: 120px; height: auto; margin-bottom: 15px; }
.fgt-pwd-header h1 { font-size: 24px; color: #333; margin: 0; }
.fgt-pwd-card h3 { text-align: center; margin-bottom: 15px; color: #444; }
.fgt-pwd-card p { font-size: 0.9em; color: #666; text-align: center; margin-bottom: 20px; line-height: 1.5; }
.fgt-pwd-message { padding: 10px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; text-align: center; }
.fgt-pwd-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.fgt-pwd-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.fgt-pwd-label { display: block; margin-bottom: 5px; color: #666; font-weight: bold; font-size: 0.9em; }
.fgt-pwd-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 14px; margin-bottom: 15px; }
.fgt-pwd-btn { width: 100%; padding: 12px; background-color: #007bff; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; transition: background 0.3s; font-size: 16px; }
.fgt-pwd-btn:hover { background-color: #0056b3; }
.fgt-pwd-back { display: block; text-align: center; margin-top: 20px; font-size: 0.9em; color: #007bff; text-decoration: none; }
.fgt-pwd-back:hover { text-decoration: underline; }
.fgt-pwd-footer { text-align: center; margin-top: 25px; color: #999; font-size: 12px; }

/* ==========================================================================
   12. toernooien.php (Geïsoleerde Styles)
   ========================================================================== */
.trn-mng-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.trn-mng-add-btn { background-color: #28a745; color: white; border: none; padding: 10px 18px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; transition: background 0.2s; }
.trn-mng-add-btn:hover { background-color: #218838; }
.trn-mng-status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 600; display: inline-block; }
.trn-mng-status-active { background: #e8f5e9; color: #2e7d32; border: 1px solid #2e7d32; }
.trn-mng-status-inactive { background: #f5f5f5; color: #999; }
.trn-mng-btn-set { background: #FF6600; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 0.85em; text-decoration: none; transition: opacity 0.2s; }
.trn-mng-btn-set:hover { opacity: 0.85; }
.trn-mng-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.trn-mng-modal-content { background-color: #fff; padding: 30px; border-radius: 8px; width: 100%; max-width: 500px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.trn-mng-modal-close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #aaa; line-height: 1; }
.trn-mng-modal-close:hover { color: #333; }
.trn-mng-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.trn-mng-label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; text-align: left; }
.trn-mng-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 14px; }

/* ==========================================================================
   13. toernooi_instellingen.php (Geïsoleerde Styles)
   ========================================================================== */
.trn-set-section { background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; text-align: left; }
.trn-set-title { margin-top:0; border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 15px; }
.trn-set-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.trn-set-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.trn-set-footer { margin-top: 30px; text-align: right; border-top: 1px solid #eee; padding-top: 20px; }
.trn-set-info { font-size: 0.75em; color: #888; margin-top: 5px; }

/* ==========================================================================
   14. toernooi_teams.php (Geïsoleerde Styles)
   ========================================================================== */
.tm-sync-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tm-sync-stats-container { display: flex; gap: 20px; margin: 20px 0; background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 15px; }
.tm-sync-stats-box { flex: 1; }
.tm-sync-stats-box h4 { margin: 0 0 10px 0; font-size: 14px; color: #555; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.tm-sync-stats-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.tm-sync-stats-list li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
.tm-sync-table { width: 100%; border-collapse: collapse; text-align: left; }
.tm-sync-th-link { text-decoration: none; color: inherit; display: block; width: 100%; }
.tm-sync-row-inactive { opacity: 0.5; background-color: #fafafa; }
.tm-sync-row-inactive td:not(.tm-sync-actions) { text-decoration: line-through; }
.tm-sync-actions { text-align: right; white-space: nowrap; padding: 12px; }
.tm-sync-btn-action { display: inline-block; padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; text-align: center; min-width: 90px; box-sizing: border-box; border: 1px solid transparent; line-height: 1.4; vertical-align: middle; }
.tm-sync-btn-edit { background-color: #3b82f6; color: white; margin-right: 5px; border: none; }
.tm-sync-btn-delete { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.tm-sync-btn-activate { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.tm-sync-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.tm-sync-modal-content { background-color: #fff; padding: 30px; border-radius: 8px; width: 100%; max-width: 450px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.tm-sync-modal-label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: #444; }
.tm-sync-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 14px; margin-bottom: 15px; }
.tm-sync-btn-cancel { background-color: #f4f4f4; color: #333; border: 1px solid #ddd; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12px; transition: background 0.2s; margin-right: 10px; }
.tm-sync-option { display: block; margin-bottom: 12px; cursor: pointer; font-size: 15px; }
.tm-sync-option input { margin-right: 10px; }

/* ==========================================================================
   15. toernooi_poules.php (Geïsoleerde Styles)
   ========================================================================== */
.tm-pool-header { margin-bottom: 20px; }
.tm-pool-container { margin-top: 20px; }
.tm-pool-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.tm-pool-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.tm-pool-cat-name { font-weight: bold; font-size: 1.2em; color: #1e293b; }
.tm-pool-cat-meta { color: #64748b; font-size: 0.9em; margin-left: 10px; }
.tm-pool-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; margin-top: 15px; }
.tm-pool-box { background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 6px; padding: 12px; transition: all 0.3s ease; min-height: 120px; }
.tm-pool-box.drag-over { border-color: #3b82f6; background-color: #eff6ff; border-style: solid; }
.tm-pool-box h5 { margin: 0 0 10px 0; font-size: 14px; border-bottom: 1px solid #e2e8f0; padding-bottom: 5px; color: #334155; display: flex; justify-content: space-between; }
.tm-pool-team-list { list-style: none; padding: 0; margin: 0; min-height: 50px; }
.tm-pool-item { background: #fff; border: 1px solid #e2e8f0; padding: 8px; margin-bottom: 5px; border-radius: 4px; cursor: grab; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.tm-pool-item:active { cursor: grabbing; }
.tm-pool-school { color: #94a3b8; font-size: 10px; display: block; pointer-events: none; }
.tm-pool-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.tm-pool-modal-content { background: #fff; padding: 25px; border-radius: 10px; width: 100%; max-width: 600px; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.tm-pool-option-card { border: 2px solid #eee; border-radius: 8px; padding: 15px; margin-bottom: 15px; cursor: pointer; text-align: left; transition: 0.2s; }
.tm-pool-option-card:hover { border-color: #3b82f6; background: #f8faff; }
.tm-pool-option-title { font-weight: bold; color: #1e40af; margin-bottom: 5px; display: block; font-size: 15px; }
.tm-pool-badge { background: #e0e7ff; color: #4338ca; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-right: 5px; margin-top: 5px; display: inline-block; }
.tm-pool-btn-action { display: inline-block; padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; text-align: center; min-width: 100px; box-sizing: border-box; border: 1px solid transparent; line-height: 1.4; vertical-align: middle; transition: all 0.2s; }
.tm-pool-btn-primary { background-color: #3b82f6; color: white; border: none; }
.tm-pool-btn-delete { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.tm-pool-btn-re-opt { background-color: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; margin-left: 5px; }
.tm-pool-btn-cancel { background-color: #f4f4f4; color: #333; border: 1px solid #ddd; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12px; }

/* ==========================================================================
   16. toernooi_schema.php (Opgeschuind & Geoptimaliseerd)
   ========================================================================== */
.tm-sched-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tm-sched-round-container { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; align-items: flex-start; margin-top: 25px; }
.tm-sched-round-box { width: 320px; flex: 0 1 auto; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.tm-sched-round-title { font-weight: bold; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #3b82f6; display: flex; justify-content: space-between; align-items: center; color: #1e293b; font-size: 14px; }
.tm-sched-match-list { list-style: none; padding: 0; margin: 0; }
.tm-sched-modal-label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: #444; }
.tm-sched-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 14px; margin-bottom: 15px; }
.tm-sched-checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; cursor: pointer; font-size: 14px; }
.tm-sched-btn-action { display: inline-block; padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; text-align: center; min-width: 100px; box-sizing: border-box; border: 1px solid transparent; line-height: 1.4; vertical-align: middle; transition: all 0.2s; }
.tm-sched-btn-primary { background-color: #3b82f6; color: white; border: none; }
.tm-sched-btn-primary:hover { background-color: #2563eb; }
.tm-sched-btn-cancel { background-color: #f4f4f4; color: #333; border: 1px solid #ddd; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12px; }


