:root {
    --primary-color: #f97316;
    --primary-gradient: linear-gradient(135deg, #9333ea 0%, #f97316 100%);
    --bg-color: #fdfdfd;
    --text-color: #1e293b;
    --card-bg: #ffffff;

    --success-color: #10b981;
    --danger-color: #ef4444;

    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12),
              0 2px 4px -1px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 50px;
}

/* Header */
.main-header {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

/* Cards Algemeen */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Formulier */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: #9ca3af;
    color: white;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Statistieken Teller */
.stats-container {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
}

.text-blue {
    color: var(--primary-color);
}

.text-green {
    color: var(--success-color);
}

.text-dark {
    color: var(--text-color);
}

/* Tabs en Sorteren */
.tabs-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.sort-control select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Taak Kaarten */
.task-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s;
    animation: fadeIn 0.3s ease-in;
}

.task-item.completed {
    border-left-color: var(--success-color);
    opacity: 0.8;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.task-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.task-date {
    font-size: 0.8rem;
    color: #9ca3af;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
}

.task-desc {
    color: #4b5563;
    margin-bottom: 15px;
}

.task-person {
    font-size: 0.9rem;
    color: #6d28d9;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.btn-edit {
    background-color: #6b7280;
}

.btn-complete {
    background-color: var(--success-color);
}

.btn-undo {
    background-color: #f59e0b;
}

/* Oranje voor ongedaan maken */
.btn-delete {
    background-color: var(--danger-color);
}

.empty-message {
    text-align: center;
    color: #9ca3af;
    margin-top: 50px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .tabs-control {
        flex-direction: column;
        gap: 15px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-desc {
    white-space: pre-wrap;
}

/* Popup background */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup inhoud */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 14px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: popupFade 0.25s ease-out;
}

.popup-content h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.popup-btn {
    margin-top: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Notes */
.note-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    text-align: left;
}

.note-item {
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.2s ease;
}

.note-item small {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 4px;
}

#note-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Verbergen */
.hidden {
    display: none !important;
}

/* Fade-in effect */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
===============================================
🎨 OUDE KLEURENSETS (ARCHIVE / HISTORY)
Deze varianten worden NIET gebruikt door de site.
Alleen bewaard als referentie.
===============================================
*/

/* --- Oorspronkelijke paars/blauw --- 
:root {
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6d28d9 0%, #3b82f6 100%);
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --card-bg: #ffffff;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
*/

/* --- Ocean Breeze (blauw) ---
:root {
    --primary-color: #0ea5e9;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --card-bg: #ffffff;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
*/

/* --- Cyber Mint (teal) ---
:root {
    --primary-color: #14b8a6;
    --primary-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --bg-color: #f0fdfa;
    --text-color: #0a0f0f;
    --card-bg: #ffffff;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
*/