body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

header {
    background: #2563eb;
    color: white;
    padding: 15px 20px;
}

h1 {
    margin: 0;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
}

.page-subtitle {
    margin: 5px 0 0;
    color: #64748b;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-small {
    padding: 7px 10px;
}

.btn-danger-light {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-success-light {
    background: #dcfce7;
    color: #166534;
}

.person-add-form {
    display: flex;
    gap: 10px;
}

.person-add-form input,
.edit-person-form input {
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h3 {
    margin: 0;
}

.people-count {
    background: #e2e8f0;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
}

.people-list {
    margin-top: 15px;
}

.person-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.person-row:last-child {
    border-bottom: 0;
}

.person-row.inactive {
    opacity: 0.55;
}

.person-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.person-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.person-name {
    font-weight: 600;
    font-size: 16px;
}

.person-status {
    margin-top: 2px;
    font-size: 12px;
}

.status-active {
    color: #16a34a;
}

.status-inactive {
    color: #94a3b8;
}

.person-actions {
    display: flex;
    gap: 6px;
}

.person-actions form {
    margin: 0;
}

.edit-person-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.empty-state {
    color: #64748b;
    padding: 15px 0;
}

@media (max-width: 600px) {
    .page-header {
        align-items: flex-start;
    }

    .person-add-form {
        flex-direction: column;
    }

    .person-add-form .btn {
        width: 100%;
    }

    .edit-person-form {
        flex-wrap: wrap;
    }

    .edit-person-form input {
        width: 100%;
        flex-basis: 100%;
    }
}

.tell-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 15px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.optional {
    font-weight: normal;
    color: #94a3b8;
    font-size: 12px;
}

.people-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.select-all-btn {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

.tell-people-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tell-person {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: 0.15s ease;
    user-select: none;
}

.tell-person:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.tell-person input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tell-person-check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    flex-shrink: 0;
}

.tell-person:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.tell-person:has(input:checked) .tell-person-check {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.person-avatar-small {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.tell-person-name {
    font-weight: 500;
}

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

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

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

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-header h2 {
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 8px;
}


/* Filters */

.tell-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: #e9eef5;
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.filter-btn {
    padding: 8px 14px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

.filter-btn.active {
    background: white;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}


/* Tell kaarten */

.tells-grid {
    display: grid;
    gap: 16px;
}

.tell-card {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: .4s ease;
}

.tell-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tell-card h3 {
    margin: 0;
    font-size: 19px;
}

.tell-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}


/* Notitie */

.tell-note-wrapper {
    margin-top: 15px;
    position: relative;
}

.tell-note {
    background: #f8fafc;
    border-left: 4px solid #93c5fd;
    border-radius: 7px;
    padding: 12px 14px;
    color: #334155;
    line-height: 1.5;
}

.note-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.note-btn {
    border: 1px solid #dbe3ee;
    background: white;
    border-radius: 7px;
    padding: 6px 9px;
    cursor: pointer;
    color: #475569;
    font-size: 12px;
}

.note-btn:hover {
    background: #f1f5f9;
}

.translating {
    color: #94a3b8;
    font-style: italic;
}

.copy-message {
    font-size: 12px;
    color: #16a34a;
    margin-left: 8px;
    opacity: 0;
    transition: opacity .2s;
}

.copy-message.show {
    opacity: 1;
}


/* Personen */

.tell-people {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tell-person-status {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .15s;
}

.tell-person-status.not-told {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.tell-person-status.not-told:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.tell-person-status.told {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-check {
    width: 16px;
    height: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}


/* Progress */

.tell-progress {
    margin-top: 18px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
    transition: width .3s ease;
}


/* Kaart verdwijnt */

.tell-completed-animation {
    opacity: 0;
    transform: scale(.97);
}


/* Lege pagina */

.empty-dashboard {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.empty-dashboard h3 {
    margin-bottom: 5px;
}


/* Mobile */

@media (max-width: 600px) {

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn {
        flex: 1;
    }

    .tell-filters {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .tell-card {
        padding: 15px;
    }

    .tell-person-status {
        flex-grow: 1;
        justify-content: center;
    }
}


.tell-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tell-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: 0.15s ease;
}

.tell-action-btn:hover {
    background: #e2e8f0;
}

.tell-action-btn.delete:hover {
    background: #fee2e2;
    border-color: #fecaca;
}
