* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}

body {
    display: flex;
}

.sidebar {
    width: 300px;
    min-width: 300px;
    height: 100vh;

    background: #181818;
    border-right: 1px solid #2a2a2a;

    display: flex;
    flex-direction: column;
}

.top {
    padding: 15px;
    display: flex;
    gap: 10px;

    border-bottom: 1px solid #2a2a2a;
}

button {
    padding: 10px;
    background: #252525;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    background: #333;
}

#notesList {
    flex: 1;
    overflow-y: auto;
}

.note-item {
    padding: 15px;
    border-bottom: 1px solid #2a2a2a;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    cursor: pointer;
}

.note-item:hover {
    background: #222;
}

.note-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.note-date {
    font-size: 12px;
    color: #888;
}

.delete-btn {
    background: #ff3b3b;

    width: 30px;
    height: 30px;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.delete-btn:hover {
    background: #ff5555;
}

#editor {
    flex: 1;
    height: 100vh;

    min-width: 0;
}
