/* ============================================
   Pokémon Collectie — Hoofdstylesheet
   ============================================ */

:root {
    --primary: #e3350d;
    --primary-dark: #b82a0a;
    --accent: #ffcb05;
    --bg: #f5f6f8;
    --card-bg: #ffffff;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f5f6f8;
    background-image: url('/static/images/pikachu2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(245, 246, 248, 0.88);
    z-index: -1;
    pointer-events: none;
}

/* ============ NAVIGATIE ============ */
nav {
    background: #111827;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 4px;
    transition: color 0.15s ease;
}

nav a:hover { color: var(--accent); }

nav a:first-child {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    margin-right: 8px;
}

nav span {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-left: auto;
}

nav a:last-child {
    background: var(--primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

nav a:last-child:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

/* ============ MAIN ============ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 60px;
}

h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
p { color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ============ FLASH MELDINGEN (TOAST) ============ */
.toast-container {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.5s forwards;
    pointer-events: auto;
    max-width: 320px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%); }
}

.toast-success { background: #ecfdf5; border-left-color: #10b981; color: #065f46; }
.toast-error { background: #fef2f2; border-left-color: #ef4444; color: #991b1b; }

/* ============ FORMULIEREN (login/register) ============ */
form {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 420px;
    margin-bottom: 20px;
}

form input, form button {
    width: 100%;
    padding: 12px 14px;
    margin: 6px 0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

form input {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 53, 13, 0.15);
}

form button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

form button:hover { background: var(--primary-dark); }

/* ============ COLLECTION LAYOUT ============ */
.collection-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}

.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: sticky;
    top: 72px;
}

.filter-sidebar h3 {
    margin: 0 0 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-sidebar form {
    padding: 0;
    background: none;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.filter-group { margin-bottom: 12px; }

.filter-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    margin: 0;
    box-sizing: border-box;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(227, 53, 13, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.filter-apply-btn {
    width: 100%;
    padding: 8px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s ease;
}

.filter-apply-btn:hover { background: var(--primary); }

.filter-reset-btn {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
}

.filter-reset-btn:hover { color: var(--primary); text-decoration: none; }

/* ============ SUMMARY ============ */
.collection-content h2 { margin: 0 0 16px; font-size: 1.3rem; }

.collection-summary {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f9fafb;
    border-left: 3px solid var(--border);
}

.summary-item.positive { border-left-color: #10b981; background: #ecfdf5; }
.summary-item.negative { border-left-color: #ef4444; background: #fef2f2; }

.summary-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1;
}

.summary-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.summary-value small {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
}

.summary-item.positive .summary-value { color: #059669; }
.summary-item.negative .summary-value { color: #dc2626; }

.summary-item.refresh-summary {
    background: #fef3c7;
    border-left-color: #f59e0b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.summary-item.refresh-summary form {
    padding: 0;
    background: none;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.refresh-btn-inline {
    background: transparent;
    border: none;
    color: #78350f;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    font-family: inherit;
}

.refresh-btn-inline:hover { background: #fde68a; }

/* View toggle in summary */
.summary-item.view-summary {
    background: #f3f4f6;
    border-left-color: #6b7280;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.view-toggle-inline {
    display: inline-flex;
    gap: 2px;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}

.view-btn-inline {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-family: inherit;
    padding: 0;
}

.view-btn-inline:hover { background: #f3f4f6; }
.view-btn-inline.active { background: #111827; color: #fff; }

/* ============ KAARTEN GRID (collection) ============ */
.collection-content .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 0;
}

.collection-content .card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.collection-content .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.collection-content .card img {
    width: 100%;
    max-width: 130px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 6px;
}

.card-name { font-size: 0.85rem; margin: 4px 0 2px; color: var(--text); line-height: 1.2; font-weight: 700; }
.card-set { font-size: 0.75rem; color: #3b82f6; margin: 2px 0; font-weight: 500; }
.card-details { font-size: 0.7rem; color: #6b7280; margin: 2px 0; }
.card-meta { font-size: 0.7rem; color: var(--text-muted); margin: 2px 0; }
.card-price { font-size: 0.95rem; font-weight: 700; color: #059669; margin: 6px 0 4px; }

.collection-content .card form {
    padding: 0;
    background: none;
    box-shadow: none;
    max-width: none;
    margin: 0;
    width: auto;
}

.collection-content .card form button { width: auto; padding: 0; margin: 0; }

/* Qty controls */
.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
    width: 100%;
}

.qty-controls form {
    background: none;
    padding: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
    width: auto;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.qty-btn:hover { background: #f3f4f6; }

.qty-display { font-size: 0.75rem; font-weight: 600; min-width: 45px; text-align: center; }

.sold-btn {
    width: 100%;
    padding: 6px;
    font-size: 0.75rem;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 4px;
    font-family: inherit;
    transition: background 0.15s ease;
}

.sold-btn:hover { background: var(--primary); }

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============ LIJST WEERGAVE ============ */
.list-view { display: flex; flex-direction: column; gap: 8px; }

.list-row {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: all 0.15s ease;
}

.list-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateX(2px); }

.list-row-image {
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-row-image img { width: 100%; height: 100%; object-fit: contain; }

.list-row-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.5;
    border: none;
    background: transparent;
}

.list-row-info { cursor: pointer; min-width: 0; }

.list-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-row-set {
    font-size: 0.8rem;
    color: #3b82f6;
    font-weight: 500;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-row-meta { font-size: 0.75rem; color: #6b7280; margin: 0; }

.list-row-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    text-align: right;
    white-space: nowrap;
    min-width: 70px;
}

.list-row-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.list-row-actions .qty-controls { margin: 0; }
.list-row-actions .sold-btn { width: auto; padding: 5px 14px; font-size: 0.75rem; margin: 0; }

/* ============ SEARCH PAGINA ============ */
.hint {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.search-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
    max-width: 720px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.search-form input { margin: 0; }
.search-form input[name="q"] { flex: 2; }
.search-form input[name="set"] { flex: 1; font-size: 0.85rem; }
.search-form button { flex: 0 0 auto; width: auto; padding: 12px 24px; margin: 0; }

.result-info { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 16px; }
.card-id { font-size: 0.75rem; color: var(--text-muted); word-break: break-all; }

.no-image {
    width: 120px;
    height: 168px;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.no-image-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    gap: 2px;
}

.no-image-icon { font-size: 1.8rem; opacity: 0.5; }
.no-image-name { font-size: 0.7rem; font-weight: 700; color: var(--text); }
.no-image-id { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

/* ============ FIND A PRODUCT ============ */
.find-product-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.find-product-panel h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: #111827; }

.find-product-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: none;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.find-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.find-input-wrapper:focus-within {
    border-color: #e3350d;
    box-shadow: 0 0 0 3px rgba(227, 53, 13, 0.1);
}

.find-icon { font-size: 0.9rem; color: #9ca3af; flex-shrink: 0; }

.find-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
    color: #111827;
    font-family: inherit;
    outline: none;
    width: 100%;
}

.find-input-wrapper input::placeholder { color: #9ca3af; }

.find-search-btn {
    padding: 10px 24px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
    margin: 0;
    width: auto;
    font-family: inherit;
}

.find-search-btn:hover { background: #e3350d; }

.find-clear-btn {
    padding: 10px 16px;
    color: #6b7280;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.find-clear-btn:hover { color: #111827; text-decoration: none; }

/* ============ TOOLBAR ============ */
.search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-left { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.toolbar-label { color: #6b7280; font-weight: 500; }
.toolbar-value { color: #e3350d; font-weight: 700; font-size: 1rem; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: auto;
    margin: 0;
}

.toolbar-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.toolbar-icon-btn { padding: 8px 10px; font-size: 1.1rem; line-height: 1; }

.toolbar-select {
    cursor: pointer;
    padding: 8px 30px 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111827' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
}

.toolbar-select:hover { background-color: #f9fafb; border-color: #d1d5db; }
.toolbar-select:focus { outline: none; border-color: #e3350d; box-shadow: 0 0 0 3px rgba(227, 53, 13, 0.1); }

/* ============ SEARCH KAARTEN GRID ============ */
.cards-search {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cards-search .card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
}

.cards-search .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.cards-search .card img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cards-search .card form {
    padding: 0;
    background: none;
    box-shadow: none;
    max-width: none;
    width: 100%;
    margin: 8px 0 0;
}

.cards-search .card form button { width: 100%; padding: 8px; font-size: 0.85rem; margin: 0; }

/* ============ POKÉBALL ============ */
.pokeball {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset -8px -8px 12px rgba(0, 0, 0, 0.2),
                inset 4px 4px 8px rgba(255, 255, 255, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.15);
    border: 3px solid #1f2937;
    box-sizing: border-box;
    margin: 0 auto;
}

.pokeball-top {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, #ff4d4d 0%, #e3350d 60%, #b82a0a 100%);
}
.pokeball-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, #d1d5db 0%, #ffffff 60%, #f9fafb 100%);
}
.pokeball-band {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 8px;
    background: #1f2937;
    transform: translateY(-50%);
    z-index: 2;
}
.pokeball-button {
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    background: #1f2937;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pokeball-button-inner {
    width: 12px; height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pokeball.spinning { animation: pokeball-spin 1.2s linear infinite; }

@keyframes pokeball-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 16px; }
.nav-logo-text { color: #ffffff; font-weight: 700; font-size: 1rem; }
.pokeball-nav { width: 28px; height: 28px; border-width: 2px; }
.pokeball-nav .pokeball-band { height: 4px; }
.pokeball-nav .pokeball-button { width: 10px; height: 10px; }
.pokeball-nav .pokeball-button-inner { width: 6px; height: 6px; }

/* ============ QUICK ADD (search) ============ */
.quick-add {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 6px;
}

.quick-select {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.7rem;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
}

.quick-add-btn {
    width: 100%;
    padding: 6px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}

.quick-add-btn:hover { background: #059669; }
.quick-add-btn:disabled { background: #6b7280; cursor: not-allowed; }

.modal-quick-add { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.modal-add-btn { padding: 10px; font-size: 0.85rem; margin-top: 8px; }

.modal-left-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.modal-left-col .modal-card-image-large {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    margin: 0 auto;
}

.modal-left-col .modal-quick-add {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.modal-left-col .modal-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-top: 6px;
}

.modal-left-col .quick-select {
    background: #374151;
    border: 1px solid #4b5563;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    width: 100%;
}

.modal-left-col .modal-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto;
}

.modal-left-col .modal-add-btn {
    margin-top: 8px;
    padding: 10px;
    font-size: 0.9rem;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    font-size: 0.9rem;
}

.pagination a {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.pagination a:hover { background: var(--primary-dark); text-decoration: none; }

/* ============ SALES LIST ============ */
.sales-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.sale-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    align-items: center;
}

.sale-row:last-child { border-bottom: none; }
.sale-row:nth-child(even) { background: #f9fafb; }
.positive-text { color: #059669; font-weight: 700; }
.negative-text { color: #dc2626; font-weight: 700; }
.sale-date { color: var(--text-muted); font-size: 0.8rem; }
.sale-notes { grid-column: 1 / -1; color: var(--text-muted); font-style: italic; font-size: 0.8rem; padding-top: 4px; }

.delete-form { padding: 0; background: none; box-shadow: none; max-width: none; margin: 0; display: inline; }

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0;
}

.delete-btn:hover { background: #fecaca; }

/* ============ PRIJS KNOP ============ */
.price-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: #eff6ff;
    color: #1e40af;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 4px 0;
    font-family: inherit;
}

.price-btn:hover { background: #dbeafe; }

.price-display { font-size: 0.8rem; font-weight: 600; color: #059669; margin-left: 6px; }

/* ============ SPINNER ============ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }
/* ============================================
   MODAL (verkoop + kaart details)
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.modal-overlay.open { display: flex; }

/* ============================================
   1. VERKOOP MODAL (witte variant, klein)
   ============================================ */
.modal {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal h3 { margin-top: 0; margin-bottom: 4px; }
.modal-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.modal label { display: block; font-size: 0.85rem; font-weight: 600; margin: 12px 0 4px; }

.modal input, .modal textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    margin: 0;
}

.modal-actions { display: flex; gap: 8px; margin-top: 20px; }

.modal-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #e5e7eb; color: var(--text); }
.btn-secondary:hover { background: #d1d5db; }

/* ============================================
   2. KAART-DETAIL MODAL (donkere variant, groot)
   ============================================ */

/* De buitenste container: centreert de modal */
.modal-card-view {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    position: relative;
}

/* De eigenlijke modal: 2-koloms grid */
.modal-card-content {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    background: #1f2937;
    border-radius: 16px;
    padding: 28px;
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* De kaartafbeelding: maximaal 280px breed */
.modal-card-image-large {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.modal-no-image {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 280 / 392;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6b7280;
    text-align: center;
    padding: 20px;
}

/* De rechterkolom: alle info */
.modal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    min-width: 0;              /* voorkomt overflow in grid */
    overflow-wrap: break-word; /* tekst breekt netjes af */
}

/* Set-logo: hard begrensd, anders duwt het alles weg */
.modal-set-logo {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}

.modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.modal-info .set-name {
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.modal-info .card-number {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.modal-info .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #10b981;
    margin: 6px 0;
}

/* Conditie/Variant/Aantal controls in de rechterkolom */
.modal-info .modal-quick-add {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info .modal-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-top: 6px;
}

.modal-info .quick-select {
    background: #374151;
    border: 1px solid #4b5563;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    width: 100%;
}

.modal-info .quick-select:focus {
    outline: none;
    border-color: #10b981;
}

.modal-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 10px;
    width: fit-content;
}

.modal-qty button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #4b5563;
    background: #374151;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.15s ease;
}

.modal-qty button:hover { background: #4b5563; }
.modal-qty span { font-weight: 700; font-size: 1rem; min-width: 30px; text-align: center; color: #fff; }

.modal-info .modal-add-btn {
    margin-top: 8px;
    padding: 10px;
    font-size: 0.9rem;
}

/* Abilities en attacks */
.modal-ability {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    margin-top: 8px;
}

.modal-ability strong { color: #fff; font-size: 0.9rem; display: block; margin-bottom: 4px; }
.modal-ability p { margin: 0; font-size: 0.82rem; color: #d1d5db; line-height: 1.5; }

.modal-attack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-attack:last-child { border-bottom: none; }
.modal-attack strong { color: #fff; font-size: 0.9rem; }
.attack-damage { font-weight: 700; color: #fff; font-size: 1rem; }

.modal-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-section > strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.type-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px 2px 2px 0;
}

.modal-info p {
    color: #d1d5db;
    font-size: 0.85rem;
    margin: 4px 0;
}

.modal-info p strong { color: #fff; }

/* Sluit-knop (binnen de modal) */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    z-index: 10;
    transition: background 0.15s ease;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .modal-card-content {
        grid-template-columns: 1fr;
        padding: 20px;
        max-height: 85vh;
    }
    .modal-card-image-large {
        max-width: 220px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .modal-card-content {
        padding: 16px;
        gap: 16px;
    }
}

/* ============================================
   ADMIN — KAARTEN & PRIJZEN
   ============================================ */

.admin-page {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  color: #e6edf3;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.admin-count {
  font-size: 0.9rem;
  color: #8b949e;
  background: #161b22;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #30363d;
}

/* Filters */
.admin-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.8rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 0.9rem;
}

.filter-input-small {
  width: 140px;
  padding: 0.5rem 0.8rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 0.8rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 0.9rem;
}

.btn-filter {
  padding: 0.5rem 1rem;
  background: #238636;
  border: 1px solid #2ea043;
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-filter:hover {
  background: #2ea043;
}

.btn-reset {
  padding: 0.5rem 1rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-reset:hover {
  background: #30363d;
}

/* Tabel */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.85rem;
}

.admin-table thead {
  background: #161b22;
}

.admin-table th {
  padding: 0.7rem 0.6rem;
  text-align: left;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #30363d;
}

.admin-table td {
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid #21262d;
  color: #e6edf3;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #161b22;
}

.api-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: #79c0ff;
  background: #161b22;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.card-name {
  font-weight: 500;
  color: #e6edf3;
}

.muted {
  color: #484f58;
}

/* Badges */
.lang-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.lang-en {
  background: #1f6feb33;
  color: #79c0ff;
  border: 1px solid #1f6feb;
}

.lang-ja {
  background: #d2992233;
  color: #e3b341;
  border: 1px solid #d29922;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-ok {
  background: #23863633;
  color: #3fb950;
  border: 1px solid #238636;
}

.status-no {
  background: #da363333;
  color: #f85149;
  border: 1px solid #da3633;
}

.status-pending {
  background: #8b949e33;
  color: #8b949e;
  border: 1px solid #30363d;
}

/* Icon button */
.btn-ghost {
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #8b949e;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: #21262d;
  color: #e6edf3;
}

/* Paginering */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  text-decoration: none;
  font-size: 0.9rem;
}

.pagination a:hover {
  background: #30363d;
}

.pagination .disabled {
  padding: 0.5rem 1rem;
  color: #484f58;
  font-size: 0.9rem;
}

.page-info {
  color: #8b949e;
  font-size: 0.9rem;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: #484f58;
  font-style: italic;
}
/* ============================================
   ADMIN — KAARTEN & PRIJZEN (licht, 2-koloms)
   ============================================ */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1500px;
  margin: 24px auto;
  padding: 0 32px;
}

/* ============ SIDEBAR ============ */
.admin-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 72px;
}

.admin-sidebar h3 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-filter-form {
  padding: 0;
  background: none;
  box-shadow: none;
  max-width: none;
  margin: 0;
}

.admin-filter-form .filter-group {
  margin-bottom: 12px;
}

.admin-filter-form .filter-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 4px;
}

.admin-filter-form .filter-group input,
.admin-filter-form .filter-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  color: #111827;
  font-family: inherit;
  margin: 0;
  box-sizing: border-box;
}

.admin-filter-form .filter-group input:focus,
.admin-filter-form .filter-group select:focus {
  outline: none;
  border-color: #e3350d;
  box-shadow: 0 0 0 2px rgba(227, 53, 13, 0.1);
}

.filter-apply-btn {
  width: 100%;
  padding: 10px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s ease;
  font-family: inherit;
}

.filter-apply-btn:hover { background: #e3350d; }

.filter-reset-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
}

.filter-reset-btn:hover { color: #e3350d; text-decoration: none; }

/* ============ CONTENT ============ */
.admin-content {
  min-width: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.admin-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.admin-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e3350d;
  background: #fef2f2;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  white-space: nowrap;
}

/* ============ TABEL ============ */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.82rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-table thead {
  background: #f9fafb;
}

.admin-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  background: #f9fafb;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

/* Kolom-specifieke styling */
.admin-table .col-id {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.admin-table .col-name {
  font-weight: 600;
  color: #111827;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table .col-set {
  color: #4b5563;
  font-size: 0.8rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table .col-nr {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #6b7280;
}

.admin-table .col-rarity {
  font-size: 0.78rem;
  color: #6b7280;
}

.admin-table .col-eur,
.admin-table .col-usd {
  text-align: right;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.admin-table .col-eur strong { color: #059669; }
.admin-table .col-usd strong { color: #1e40af; }

.admin-table .col-status { text-align: center; }
.admin-table .col-action { text-align: center; width: 60px; }

/* ============ API-ID ============ */
.api-id {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.card-name {
  font-weight: 600;
  color: #111827;
}

.muted { color: #d1d5db; }

/* ============ BADGES ============ */
.lang-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-en { background: #dbeafe; color: #1e40af; }
.lang-ja { background: #fef3c7; color: #92400e; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
}

.status-ok { background: #d1fae5; color: #065f46; }
.status-no { background: #fee2e2; color: #991b1b; }
.status-pending { background: #f3f4f6; color: #6b7280; }

/* ============ ICON BUTTON ============ */
.btn-ghost {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-ghost:hover {
  background: #e3350d;
  border-color: #e3350d;
  color: #ffffff;
}

/* ============ PAGINERING ============ */
.admin-content .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
}

.admin-content .pagination a {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.admin-content .pagination a:hover {
  background: #e3350d;
  border-color: #e3350d;
  color: #ffffff;
  text-decoration: none;
}

.admin-content .pagination .disabled {
  padding: 8px 16px;
  color: #d1d5db;
  font-size: 0.85rem;
}

.admin-content .page-info {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-style: italic;
  font-size: 0.9rem;
}

/* ============ ADMIN MODAL ============ */
.admin-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.admin-modal-overlay.open { display: flex; }

.admin-modal-box {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.admin-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.admin-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.modal-table {
  box-shadow: none;
  border: none;
  border-radius: 0;
}

.modal-table th,
.modal-table td {
  padding: 10px 12px;
  font-size: 0.8rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
}

/* ============ ADMIN FILTER-ROW (min/max prijs) ============ */
.admin-filter-form .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.admin-filter-form .filter-row input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  color: #111827;
  font-family: inherit;
  margin: 0;
  box-sizing: border-box;
}

.admin-filter-form .filter-row input:focus {
  outline: none;
  border-color: #e3350d;
  box-shadow: 0 0 0 2px rgba(227, 53, 13, 0.1);
}

/* ============================================
   VPS MONITORING
   ============================================ */

.vps-section {
  margin: 30px 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.vps-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.vps-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vps-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
}

.vps-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vps-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  text-transform: none;
  letter-spacing: 0;
}

.vps-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.vps-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.3s ease;
}

.vps-bar-fill.warn   { background: #f59e0b; }
.vps-bar-fill.danger { background: #ef4444; }

.vps-card-footer {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #6b7280;
}

.vps-disks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vps-disk {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
}

.vps-disk-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.vps-disk-header small {
  color: #9ca3af;
  font-weight: 400;
}

.vps-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vps-chart-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  height: 220px;
  position: relative;
}

.vps-system {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  font-size: 0.82rem;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.vps-system strong {
  color: #111827;
}

@media (max-width: 1000px) {
  .vps-grid   { grid-template-columns: repeat(2, 1fr); }
  .vps-charts { grid-template-columns: 1fr; }
  .vps-system { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .vps-grid { grid-template-columns: 1fr; }
}