.hidden {
    display: none !important;
}

#section-notes {
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    color: var(--dracula-foreground);
    font-size: 24px;
}

#add-note-button {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--dracula-purple);
    border-radius: 10px;
    background: var(--dracula-current-line);
    color: var(--dracula-foreground);
    font-size: 14px;
    font-weight: bold;
    touch-action: manipulation;
}

#add-note-button:active {
    transform: scale(0.96);
}

.note-card {
    margin-bottom: 12px;
    border-radius: 16px;
    background: var(--dracula-current-line);
    overflow: hidden;
}

.note-header {
    width: 100%;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--dracula-foreground);
    text-align: left;
    touch-action: manipulation;
}

.note-title {
    display: block;
    font-size: 17px;
    font-weight: bold;
}

.note-date {
    display: block;
    margin-top: 4px;
    color: var(--dracula-comment);
    font-size: 13px;
}

.note-content {
    display: none;
    padding: 0 16px 16px;
    color: var(--dracula-foreground);
}

.note-card.expanded .note-content {
    display: block;
}

.note-details {
    margin-bottom: 16px;
    line-height: 1.5;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.note-actions button {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: var(--dracula-background);
    color: var(--dracula-foreground);
    font-weight: bold;
    touch-action: manipulation;
}

/* Note editor */

.note-editor {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--dracula-purple);
    border-radius: 16px;
    background: var(--dracula-current-line);
}

.note-editor-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#note-editor-title {
    margin: 0 0 4px;
    color: var(--dracula-purple);
    font-size: 22px;
}

.note-editor-content label,
.note-details-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--dracula-foreground);
    font-size: 14px;
    font-weight: bold;
}

.note-editor-content input {
    min-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 1px solid var(--dracula-comment);
    border-radius: 10px;
    outline: none;
    background: var(--dracula-background);
    color: var(--dracula-foreground);
    font-size: 16px;
}

.note-editor-content input:focus {
    border-color: var(--dracula-purple);
}

.note-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--dracula-comment);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--dracula-background);
}

.note-toolbar button,
.note-toolbar select {
    min-width: 38px;
    min-height: 36px;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    background: var(--dracula-current-line);
    color: var(--dracula-foreground);
    font-size: 14px;
    touch-action: manipulation;
}

.note-toolbar button:active {
    transform: scale(0.94);
}

.note-toolbar select {
    min-width: 70px;
}

.note-details {
    min-height: 180px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid var(--dracula-comment);
    border-radius: 0 0 10px 10px;
    outline: none;
    background: var(--dracula-background);
    color: var(--dracula-foreground);
    line-height: 1.5;
}

.note-details:focus {
    border-color: var(--dracula-purple);
}

.note-details:empty::before {
    content: "Enter the details of this note...";
    color: var(--dracula-comment);
}

.note-editor-buttons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.note-editor-buttons button {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    touch-action: manipulation;
}

#note-cancel {
    background: var(--dracula-background);
    color: var(--dracula-foreground);
}

#note-save {
    background: var(--dracula-purple);
    color: var(--dracula-background);
}

.note-editor-buttons button:active {
    transform: scale(0.97);
}

.note-details h1,
.note-details h2,
.note-details h3,
.note-details p {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.notes-empty {
    padding: 20px 0;
    color: var(--dracula-comment);
    text-align: center;
}