.notes-two-panel {
    box-shadow: 0 4px 24px rgba(102,126,234,0.08);
    border-radius: 16px;
    background: #fff;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0 16px 16px 16px;
}
.notes-left {
    background: linear-gradient(135deg, #f5f8ff 0%, #e8f4fc 100%);
    border-right: 1.5px solid #e0e7ef;
    border-radius: 16px 0 0 16px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.04);
}
.notes-right {
    background: #fff;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 2px 8px rgba(102,126,234,0.04);
}
.notes-toolbar .example-btn {
    background: #eef3fa;
    color: #163f63;
    border: 1px solid #d3e0f7;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.notes-toolbar .example-btn:hover {
    background: #d3e0f7;
    border-color: #667eea;
    color: #163f63;
}
#notesPreview {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1.5px solid #e0e7ef;
    min-height: 180px;
    font-size: 1.2em;
    padding: 18px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.04);
}
.notes-left input#noteTitle {
    margin-bottom: 12px;
}
.notes-actions {
    margin-top: 18px;
}
.modal-content.notes-modal-content {
    position: fixed;
    top: var(--header-height, 64px);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height, 64px));
    z-index: 1000;
    background: #fff;
    overflow: auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    max-width: 100vw;
    width: 100%;
    padding: 0;
}
body {
    --header-height: 64px;
}
.notes-toolbar .example-btn {
    padding: 4px 10px;
    font-size: 0.95em;
    min-width: 32px;
    min-height: 32px;
    border-radius: 4px;
    margin-bottom: 2px;
    box-shadow: none;
}
.notes-left input#noteTitle {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1.5px solid var(--primary-color);
    font-size: 1.08em;
    font-weight: 500;
    background: #f5f8ff;
    color: #163f63;
    box-shadow: 0 2px 8px rgba(102,126,234,0.04);
    transition: border-color 0.2s;
}
.notes-left input#noteTitle:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: #eef3fa;
}
.notes-left {
    gap: 8px;
}
.notes-actions {
    margin-top: 10px;
}
/* Two-panel notes modal layout */
.notes-two-panel {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 320px;
}
.notes-left {
    flex: 0 0 340px;
    min-width: 220px;
    max-width: 400px;
    background: #fafafa;
    border-right: 1px solid #eee;
    padding: 18px 12px 18px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notes-right {
    flex: 2 1 700px;
    min-width: 320px;
    max-width: 100vw;
    background: #fff;
    padding: 18px 18px 18px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.notes-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
@media (max-width: 900px) {
    .notes-two-panel {
        flex-direction: column;
    }
    .notes-left, .notes-right {
        min-width: 0;
        max-width: 100%;
        border: none;
        padding: 12px 8px;
    }
    #notesPreview {
        min-height: 80px;
        font-size: 1em;
    }
}
@media (max-width: 600px) {
    .notes-two-panel {
        flex-direction: column;
    }
    .notes-left, .notes-right {
        min-width: 0;
        max-width: 100%;
        border: none;
        padding: 10px 4px;
    }
    #notesPreview {
        min-height: 60px;
        font-size: 0.95em;
    }
}
/* Responsive notes modal layout for mobile and desktop */
.notes-modal-content {
    max-width: 100vw;
    width: 100%;
    padding: 0;
}
.notes-flex-layout {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}
.notes-sidebar {
    flex: 0 0 220px;
    min-width: 180px;
    max-width: 260px;
    background: #fafafa;
    border-right: 1px solid #eee;
    padding: 18px 12px 18px 18px;
    box-sizing: border-box;
}
.notes-main {
    flex: 1 1 420px;
    min-width: 280px;
    padding: 18px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notes-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.notes-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.notes-preview-container {
    flex: 2 1 420px;
    min-width: 220px;
    max-width: 600px;
    background: #fff;
    border-left: 1px solid #eee;
    padding: 18px 18px 18px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
#notesPreview {
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    min-height: 120px;
    font-size: 1.2em;
    word-break: break-word;
}
@media (max-width: 900px) {
    .notes-flex-layout {
        flex-direction: column;
        gap: 0;
    }
    .notes-sidebar, .notes-main, .notes-preview-container {
        min-width: 0;
        max-width: 100%;
        border: none;
        padding: 12px 8px;
    }
    .notes-preview-container {
        padding-top: 0;
    }
    #notesPreview {
        min-height: 80px;
        font-size: 1em;
    }
}
@media (max-width: 600px) {
    .notes-modal-content {
        padding: 0;
    }
    .notes-flex-layout {
        flex-direction: column;
        gap: 0;
    }
    .notes-sidebar, .notes-main, .notes-preview-container {
        min-width: 0;
        max-width: 100%;
        border: none;
        padding: 10px 4px;
    }
    .notes-preview-container {
        padding-top: 0;
    }
    #notesPreview {
        min-height: 60px;
        font-size: 0.95em;
    }
}
