body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0b0e16;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
}

/* --- Layout principale --- */
.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100vh;
}

.sidebar {
    grid-column: 1 / 2;
    grid-row: 1;
    background-color: #121626;
    padding: 20px;
    border-right: 1px solid #22273a;
    display: flex;
    flex-direction: column;
}

.editor,
.empty {
    grid-column: 2 / 3;
    grid-row: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor[hidden],
.empty[hidden] {
    display: none !important;
}

/* --- Banner --- */
#infoBanner {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(124,154,255,0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

#infoBanner button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    font-weight: 600;
}
#infoBanner button:hover {
    background-color: rgba(255,255,255,0.2);
}

/* --- Sidebar --- */
.sidebar h2 {
    margin-top: 0;
    color: #7c9aff;
}

#newNoteBtn {
    background-color: #6df0ff;
    color: #0b0e16;
    border: none;
    padding: 8px 10px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}
#newNoteBtn:hover {
    background-color: #7c9aff;
}

#notesList {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    overflow-y: auto;
    flex: 1;
}
#notesList li {
    padding: 8px;
    border-bottom: 1px solid #22273a;
    cursor: pointer;
}
#notesList li.active {
    background-color: #1d2238;
    color: #6df0ff;
}

.storage-info {
    font-size: 0.875rem;
    color: #b0b0b0;
    margin-top: 1rem;
}

/* --- Empty state --- */
.empty {
    align-items: center;
    justify-content: center;
}
.empty .empty-box {
    text-align: center;
    border: 1px dashed #2f3650;
    border-radius: 12px;
    padding: 24px 32px;
    max-width: 520px;
    background: #0f1422;
}
.empty h3 {
    margin: 0 0 8px;
    color: #7c9aff;
}
.empty p {
    margin: 0;
    color: #9aa3b2;
}

/* --- Editor --- */
.fields {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.fields input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #22273a;
    background-color: #101420;
    color: #e0e0e0;
}

#noteContent {
    flex: 1;
    resize: none;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #22273a;
    background-color: #101420;
    color: #e0e0e0;
    font-size: 14px;
}

.timestamps {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9aa3b2;
    margin-bottom: 10px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.timer button {
    background-color: #22273a;
    color: #e0e0e0;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.timer button:hover {
    background-color: #2f3650;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
#saveNote {
    background-color: #6df0ff;
    color: #0b0e16;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
#saveNote:hover {
    background-color: #7c9aff;
}

button.danger {
    background-color: #ff6d6d;
    color: #0b0e16;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
button.danger:hover {
    background-color: #ff8a8a;
}