/* Algemeen */
body {
    font-family: 'Calibri', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    margin:10px;
    padding:0;
}

header .topbar {
    background: #3b82f6;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	
}

header .topbar a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

main {
    padding: 20px;
}

/* Card */
.card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 420px;
    margin: 50px auto;
}

/* Inputs en buttons */
input, select, button {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

button {
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #2563eb;
}

/* Messages */
.message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.message.error {
    background: #fee2e2;
    color: #b91c1c;
}

.message.success {
    background: #dcfce7;
    color: #15803d;
}

.message.info {
    background: #dbeafe;
    color: #1e3a8a;
}

/* Centeren */
.center {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 0;
    color: #64748b;
}
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.flow-diagram .step {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px 0;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.flow-diagram .arrow {
    font-size: 24px;
    margin: 5px 0;
    color: #64748b;
}
.flow-diagram-extended {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.flow-diagram-extended .step {
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px 0;
    min-width: 280px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Kleurcodes per type */
.step-user {
    background: #3b82f6; /* blauw */
}

.step-admin {
    background: #2563eb; /* donkerblauw */
}

.step-2fa {
    background: #f59e0b; /* oranje */
}

.step-magic {
    background: #10b981; /* groen */
}

.step-trusted {
    background: #8b5cf6; /* paars */
}

.step-forgot {
    background: #ef4444; /* rood */
}

.flow-diagram-extended .arrow {
    font-size: 20px;
    margin: 3px 0;
    color: #64748b;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.admin-table th {
    background: #111827;
    color: white;
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tr:nth-child(even) {
    background: #f9fafb;
}

.admin-table tr:hover {
    background: #eef2ff;
    transition: 0.2s ease;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Ellipsis cell */
.admin-table .truncate {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #e5e7eb;
}

.badge-ip {
    background: #dbeafe;
    color: #1e40af;
}

.badge-device {
    background: #dcfce7;
    color: #166534;
}

/* Action button */
.btn-revoke {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-revoke:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Sticky header (optioneel nice) */
.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
/* Status badges */
.badge-status {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-block;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Action buttons */
.btn-approve {
    background: #22c55e;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-right: 5px;
}

.btn-approve:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Role badge */
.badge-role {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 500;
}
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    display: inline-block;
    margin: 6px 8px;
    padding: 6px 10px;
    color: #4f46e5;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s ease;
}

.auth-links a:hover {
    background: #eef2ff;
    transform: translateY(-1px);
}

/* Subtle divider */
.auth-links .divider {
    display: block;
    margin: 10px 0;
    font-size: 12px;
    color: #9ca3af;
}
