/* =====================
   RESET / BASIS
===================== */
* {
    box-sizing: border-box;
}

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

/* =====================
   LAYOUT
===================== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 24px;
}

/* =====================
   HEADER / NAV
===================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* NAV LINKS */
.nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: #cbd5f5;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

.nav-link.active {
    background: #3b82f6;
    color: white;
}

.nav-link.logout {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.nav-link.logout:hover {
    background: #ef4444;
    color: white;
}

/* =====================
   CARDS
===================== */
.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* =====================
   NOTES
===================== */
.note {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #fff;
    transition: transform 0.15s ease;
}

.note:hover {
    transform: translateY(-2px);
}

/* =====================
   FORM ELEMENTS
===================== */
input,
textarea,
select {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    border-radius: 10px;
    border: none;
    background: #0f172a;
    color: #e2e8f0;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
}

/* =====================
   BUTTONS
===================== */
button {
    background: #3b82f6;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* =====================
   SEARCH
===================== */
.search {
    margin-bottom: 15px;
    padding: 12px;
}

/* =====================
   FOOTER
===================== */
.footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

/* =====================
   EDITOR
===================== */
.editor-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.editor-toolbar button {
    background: #334155;
    padding: 6px 10px;
    font-size: 14px;
}

.editor {
    min-height: 120px;
    padding: 12px;
    background: #0f172a;
    border-radius: 10px;
    outline: none;

    display: block;
}

/* =====================
   CHECKBOX FINAL FIX (ECHT)
===================== */

.check-item {
    display: block;
    margin: 4px 0;
}

.check-item label {
    display: inline-flex;   /* 🔥 terug naar inline-flex */
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}

.check-item input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
    margin-top: 3px;
}

.check-item span {
    display: inline;
    outline: none;
    white-space: normal;    /* 🔥 mag doorlopen */
}
/* =====================
   ICON BUTTONS
===================== */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: none;
    cursor: pointer;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.1);
}

.icon-btn.danger:hover {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}

/* =====================
   NOTE ACTIONS
===================== */
.note-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

/* =====================
   SEARCH BOX
===================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.search-box input {
    border: none;
    background: transparent;
    color: white;
    width: 100%;
}