/* ---------- Base ---------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Search Box ---------- */
.search-box {
    width: 600px;
    background: #fff;
    margin-left: 15px;
    border-radius: 5px;
    border: 1px solid lightgray;
    display: flex;
    align-items: center;
}

.search-box input {
    flex: 1;
    height: 24px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
    color: black;
}

.search-box button {
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
}

.search-box button .fa-solid {
    width: 25px;
    color: #555;
}

::placeholder {
    color: dimgray;
}

.result-box ul {
    border-top: 1px solid lightgray;
    padding: 0;
    margin: 0;
    width: 100%;
}

.result-box ul li {
    list-style: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    color: dimgrey;
}

.result-box ul li:hover {
    background: dimgrey;
    color: white;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
}

textarea.form-control {
    min-height: 120px;
}

.form-label {
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    padding: 20px 20px 10px;
}

.row {
    display: flex;
    align-items: center;
    padding: 10px 0px;
}

/* ---------- Dashboard / Cards ---------- */
.dashboard {
    max-width: 900px;
    margin: 4rem auto;
    display: grid;
    gap: 2rem;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.action-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.4;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 6-8px; /* normalized to 6-8px */
    border: 1px solid #ddd;
    font-size: 0.875rem;
    text-align: left;
}

th {
    background-color: #f4f4f4;
    font-size: 0.9rem;
}

#newAanvragenTable {
    font-size: 14px;
}

.select-checkbox,
#headerSelectAll {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.selected {
    background-color: #d3d3d3;
}

.select-checkbox {
    width: 18px;     /* default is 16-20px, so bigger */
    height: 18px;
    cursor: pointer;
}

/* Align checkboxes larger */
.select-checkbox {
    width: 1.25rem;
    height: 1.25rem;
}

/* Card & spacing */
.card {
    border-radius: 12px;
    border: none;
}
.card-body {
    padding: 1.5rem;
}

/* Rounded and white background for Choices.js multi-select */
.choices__inner {
    border-radius: 10px !important;      /* Rounded edges */
    background-color: #ffffff;            /* White background */
    padding: 0.3rem 0.75rem;
    min-height: 44px;
    border: 1px solid #ced4da;           /* Light gray border like Bootstrap inputs */
    display: flex;
    align-items: center;
}

/* The list of selected items (tags) */
.choices__list--multiple {
    gap: 0.25rem;                         /* Small gap between tags */
    display: flex;
    flex-wrap: wrap;
}

/* Placeholder for empty multi-select to indicate multi-selection */
.choices__placeholder {
    color: #6c757d;                        /* Gray text like placeholder */
    font-style: italic;
}

/* ---------- Status Colors ---------- */
.status-afleveren { color: #ff8c00; font-weight: bold; }
.status-bellen { color: #dc3545; font-weight: bold; }
.green { color: green; }
.red { color: red; }
.orange { color: darkorange; }

/* ---------- Buttons ---------- */
.btn-modern,
.big-button {
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.big-button {
    width: 280px;
    padding: 40px 60px;
    font-size: 1.6rem;
    background-color: #fff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.big-button:hover {
    background-color: #e2e6ea;
    transform: translateY(-3px);
}

.btn-plus { color: #28a745; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; }
.btn-minus, .btn-delete { color: #dc3545; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; }
.btn-delete:hover { background-color: #dbd5d5; }

/* ---------- Calendar ---------- */
.calendar-card { background-color: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
#calendar { font-size: 1rem; }
.fc-toolbar-title { font-size: 1.5rem; font-weight: 600; text-align: center; width: 100%; }
.fc .fc-button { border-radius: 8px; padding: 0.5rem 1rem; font-weight: 500; }
.fc-event-title { font-size: 1rem; font-weight: 500; line-height: 1.2; }
.fc-event-info { font-size: 0.8rem; color: #f8f9fa; }
.fc .fc-event { border-radius: 8px; }

/* ---------- Legends ---------- */
.legend-container { display: flex; flex-wrap: wrap; gap: 1rem; }
.legend-color { width: 18px; height: 18px; border-radius: 4px; margin-right: 0.35rem; }
.legend-label { font-size: 0.875rem; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .fc-toolbar-chunk { flex-wrap: wrap; justify-content: center; margin-bottom: 0.5rem; }
    .fc-toolbar-title { font-size: 1.2rem !important; width: 100%; text-align: center; margin-bottom: 0.3rem; }
    .fc .fc-button { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
    .legend-label { font-size: 0.75rem; }
}

@media (max-width: 600px) {
    .top-buttons { flex-direction: column; gap: 20px; }
    .big-button { width: 100%; max-width: 300px; }
}

/* ---------- Misc ---------- */
.fiets-dropdown { width: 100%; padding: 4px; font-size: 0.875rem; cursor: pointer; }
.card { margin-top: 8px; }
.search-bar { margin-bottom: 20px; }
.verwacht-low { color: red; }
.verwacht-high { color: green; }
.button-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; gap: 40px; padding: 20px; }
.top-buttons { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.bottom-button { display: flex; justify-content: center; }
.checklist-item { transform: scale(1.5); margin-right: 10px; vertical-align: middle; }

input[readonly] {
    background-color: #e9ecef;
    /* light grey */
    color: #6c757d;
}

input[readonly]:focus {
    outline: none;
    /* remove the blue border on focus */
    box-shadow: none;
}