/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f8fafc;
    color: #0f172a;
}

.top-nav {
    background-color: #2563eb;
    padding: 15px;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.top-nav button {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #2563eb;
    white-space: nowrap;
    transition: 0.2s;
}

.top-nav button.active {
    background: #1e40af;
    color: white;
}

.pagina {
    display: none;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pagina.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ADMIN PANEEL OPMAAK */
.tabs-nav {
    display: flex;
    gap: 5px;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    color: #475569;
    transition: 0.2s;
    min-width: 150px;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    margin-top: 0;
    color: #2563eb;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #475569;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.dynamic-list {
    margin-bottom: 20px;
}

.dynamic-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.dynamic-row input,
.dynamic-row select,
.dynamic-row textarea {
    margin-bottom: 0;
    flex: 1;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
}

.btn {
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.btn-outline:hover {
    background: #e2e8f0;
}

.save-btn {
    width: 100%;
    background: #10b981;
    color: white;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.save-btn:hover {
    opacity: 0.9;
}

/* MODALS & SPINNER OPMAAK */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.modal-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    display: none;
    z-index: 99999;
    font-weight: 600;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.9);
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}