:root{
    --control-height: 44px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* =========================
   Header
   ========================= */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

h1 {
    text-align: center;
    margin: 10px 0;
}

.subtitle {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}

.searchbox {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* =========================
   Input (reference height)
   ========================= */
input[type="text"] {
    height: var(--control-height);
    padding: 0 10px;
    width: 300px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: normal;
}

/* =========================
   Buttons (exact same outer height)
   ========================= */
button {
    height: var(--control-height);
    padding: 0 20px;
    font-size: 16px;
    margin-left: 10px;

    background-color: #8EAFDA;
    color: #fff;

    border: 1px solid transparent; /* CRUCIAAL */
    border-radius: 4px;
    box-sizing: border-box;

    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Icons inside buttons */
button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* =========================
   Spinner
   ========================= */
.spinner-container {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    margin: 150px 0;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #8EAFDA;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================
   Export button
   ========================= */
#exportBtn {
    background-color: #92dba5;
}

#exportBtn:hover {
    background-color: #7ccf95;
}

/* =========================
   Tables
   ========================= */
.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background: #fff;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
}

thead {
    background-color: #f8f9fa;
}

th:first-child {
    white-space: nowrap;
}

th, td {
    padding: 15px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    max-width: 600px;
}

tbody tr:nth-child(even) {
    background-color: #f6f6f6;
}

/* =========================
   Info box
   ========================= */
.infobox {
    background-color: #e0f0ff;
    border: 1px solid #aad;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

ul {
    margin: 0;
    padding-left: 20px;
}

/* =========================
   Animation
   ========================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#resultsSection {
    animation: fadeIn 0.5s ease;
}

/* =========================
   Footer
   ========================= */
.footer {
    text-align: center;
    font-size: 9px;
    color: #777;
    margin-top: 40px;
}

.footer a {
    color: #777;
    text-decoration: none;
}

/* =========================
   Tooltip
   ========================= */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip .tooltip-text {
    display: none;
    position: absolute;
    top: -45%;
    left: 110%;
    padding: 12px;
    background-color: #8EAFDA;
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    min-width: 600px;
    max-width: 1200px;
    z-index: 50000;
}

.tooltip:hover .tooltip-text {
    display: block;
}

.tooltip-text a {
    color: #fff;
    text-decoration: none;
}

/* =========================
   Record links
   ========================= */
.record-link {
    font-weight: bold;
    color: black;
    text-decoration: none;
}

/* =========================
   Bulk button
   ========================= */
-btn {
    background-color: #ffbc6a;
}

-btn:hover {
    filter: brightness(0.95);
}

/* =========================
   Bulk modal
   ========================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-content {
    width: min(820px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
}

.modal-hint {
    margin: 10px 0;
    color: #666;
}

.bulk-textarea {
    width: 97%;
    min-height: 220px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.bulk-run-btn {
    background: #ffbc6a;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.bulk-run-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================
   Bulk table
   ========================= */
#bulkTable td,
#bulkTable th {
    white-space: nowrap;
}

#bulkTable td:last-child,
#bulkTable th:last-child {
    white-space: normal;
    min-width: 260px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://justinverstijnen.nl/wp-content/uploads/2026/01/Tool_Background_Blurred.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.69;
    z-index: -1;
}

body {
    position: relative;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.85);
}
