* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle at top, #001b4d 0, #000814 40%, #020617 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(90deg, #001b4d, #003399, #0077ff);
    color: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header h1 {
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.user-bar span {
    color: #e5e7eb;
}

.btn-logout {
    padding-inline: 0.9rem;
}

main {
    padding: 3rem 1.5rem 5rem;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(0,119,255,0.25), transparent 55%),
                rgba(15,23,42,0.95);
    padding: 2.5rem 2.25rem;
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0,0,0,0.7);
    border: 1px solid rgba(148,163,184,0.4);
    backdrop-filter: blur(12px);
}

.login-container h2 {
    color: #e5e7eb;
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 1.4rem;
}

.login-container::before {
    content: "";
    display: block;
    width: 56px;
    height: 6px;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #facc15, #f97316);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: #9ca3af;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.code-labels {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.code-hint {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(148,163,184,0.6);
    font-size: 0.98rem;
    background-color: rgba(15,23,42,0.9);
    color: #e5e7eb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-group input::placeholder {
    color: #6b7280;
}

.form-group input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.4);
    background-color: rgba(15,23,42,1);
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.3rem;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.98rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 15px 30px rgba(37,99,235,0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px rgba(37,99,235,0.6);
    filter: brightness(1.03);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 10px 20px rgba(15,23,42,0.85);
}

.dashboard {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.dashboard h2 {
    color: #e5e7eb;
    margin-bottom: 1.75rem;
    font-size: 1.5rem;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.tile {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.3), transparent 60%),
                rgba(15,23,42,0.95);
    color: white;
    padding: 1.9rem 1.8rem;
    border-radius: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
    border: 1px solid rgba(148,163,184,0.45);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(250,204,21,0.45), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tile:hover::after {
    opacity: 1;
}

.tile:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 60px rgba(15,23,42,0.95);
    border-color: rgba(56,189,248,0.9);
}

.tile-icon {
    margin-bottom: 0.75rem;
}

.tile-icon svg {
    filter: drop-shadow(0 4px 10px rgba(15,23,42,0.9));
}

.tile h3 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

footer {
    background: linear-gradient(90deg, #001b4d, #020617);
    color: #9ca3af;
    text-align: center;
    padding: 0.9rem 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.85rem;
    border-top: 1px solid rgba(148,163,184,0.35);
}

/* Authorisaties layout */

.auth-body {
    background: radial-gradient(circle at top, #020617 0, #020617 35%, #000 100%);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: linear-gradient(90deg, #001b4d, #003399);
    border-bottom: 1px solid rgba(148,163,184,0.4);
}

.auth-header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-main {
    padding: 2rem;
}

.auth-panel {
    max-width: 1200px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(37,99,235,0.35), transparent 60%),
                rgba(15,23,42,0.98);
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.85);
    border: 1px solid rgba(148,163,184,0.45);
}

.auth-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-panel-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.auth-panel-header p {
    font-size: 0.9rem;
    color: #9ca3af;
}

.auth-panel-actions {
    display: flex;
    gap: 0.6rem;
}

.auth-table-wrapper {
    overflow-x: auto;
}

.auth-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.auth-table thead {
    background: rgba(15,23,42,0.95);
}

.auth-table th,
.auth-table td {
    padding: 0.7rem 0.6rem;
    text-align: left;
}

.auth-table th {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148,163,184,0.35);
}

.auth-table tbody tr:nth-child(even) {
    background-color: rgba(15,23,42,0.7);
}

.auth-table tbody tr:nth-child(odd) {
    background-color: rgba(15,23,42,0.9);
}

.auth-table tbody tr:hover {
    background-color: rgba(30,64,175,0.6);
}

.tag-username {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 140, 255, 0.18);
    color: #7ec3ff;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}

.tag-username.admin {
    background: rgba(255, 199, 0, 0.2);
    color: #ffd66b;
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
}

.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.86rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    color: white;
    box-shadow: 0 12px 25px rgba(37,99,235,0.5);
}

.btn-secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.6);
}

.btn-icon {
    border: none;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    cursor: pointer;
}

.btn-icon.btn-danger {
    color: #f97373;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal {
    background: rgba(15,23,42,0.98);
    border-radius: 1rem;
    padding: 1.8rem 1.7rem 1.4rem;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9);
    border: 1px solid rgba(148,163,184,0.55);
}

.modal h3 {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal-hint {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #4b5563;
    transition: .2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
}

input:checked + .slider {
    background-color: #22c55e;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.slider.round {
    border-radius: 999px;
}

.slider.round:before {
    border-radius: 50%;
}
