:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --accent: #10b981;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background-color: #f1f5f9;
    text-align: left;
    font-weight: 600;
    padding: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

tr:last-child td {
    border-bottom: none;
}

/* ── Formuliervelden – mobiel-vriendelijk ────────────────────────────────── */
/* Dubbele selector (.card + element) wint van Tailwind Preflight             */
.card input[type="text"],  input[type="text"],
.card input[type="number"],input[type="number"],
.card input[type="email"], input[type="email"],
.card input[type="password"],input[type="password"],
.card input[type="search"],input[type="search"],
.card textarea,            textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem !important;  /* 16 px – voorkomt auto-zoom op iOS        */
    line-height: 1.5;
    background-color: #f8fafc;
    color: var(--text-dark);
    border: 1.5px solid #d1d5db;
    border-radius: 0.625rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.card select, select {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;  /* rechts ruimte voor pijltje  */
    font-size: 1rem !important;
    line-height: 1.5;
    background-color: #f8fafc;
    color: var(--text-dark);
    border: 1.5px solid #d1d5db;
    border-radius: 0.625rem;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    /* Eigen pijltje – consistent op iOS/Android                              */
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.card input:focus, input:focus,
.card select:focus, select:focus,
.card textarea:focus, textarea:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.nav-link {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}
