/* Notebook settings page */ .notebook-settings { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; max-width: 100rem; margin: 0 auto; padding: 1.5rem; min-height: calc(100vh - 4rem); } @media (max-width: 768px) { .notebook-settings { grid-template-columns: 1fr; gap: 1rem; } } /* Sidebar navigation */ .notebook-settings-nav { display: flex; flex-direction: column; gap: 0.25rem; position: sticky; top: 1rem; align-self: start; } @media (max-width: 768px) { .notebook-settings-nav { flex-direction: row; flex-wrap: wrap; position: static; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; } } .notebook-settings-nav button { padding: 0.75rem 1rem; text-align: left; background: transparent; border: none; color: var(--color-muted); font-size: 0.875rem; cursor: pointer; transition: color 0.15s, background 0.15s; } .notebook-settings-nav button:hover { color: var(--color-text); background: var(--color-surface); } .notebook-settings-nav button.active { color: var(--color-text); background: var(--color-surface); font-weight: 600; } /* Content area */ .notebook-settings-content { min-width: 0; } /* Section styling */ .notebook-settings-section { display: flex; flex-direction: column; gap: 1.5rem; } .notebook-settings-section h2 { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--color-text); padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); } .notebook-settings-description { margin: 0; color: var(--color-muted); font-size: 0.875rem; } /* Form fields */ .notebook-settings-field { display: flex; flex-direction: column; gap: 0.5rem; } .notebook-settings-field label { font-size: 0.875rem; font-weight: 500; color: var(--color-text); } .notebook-settings-field input[type="text"], .notebook-settings-field select { padding: 0.625rem 0.75rem; border: 1px solid var(--color-border); background: var(--color-base); color: var(--color-text); font-family: var(--font-ui); font-size: 0.875rem; } .notebook-settings-field input:focus, .notebook-settings-field select:focus { outline: none; border-color: var(--color-primary); } .notebook-settings-hint { font-size: 0.75rem; color: var(--color-muted); } /* Toggle field */ .notebook-settings-toggle label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; } .notebook-settings-toggle input[type="checkbox"] { width: 1rem; height: 1rem; } /* Tags */ .notebook-settings-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; border: 1px solid var(--color-border); background: var(--color-base); min-height: 2.5rem; } .notebook-settings-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; background: var(--color-surface); border: 1px solid var(--color-border); font-size: 0.75rem; color: var(--color-text); } .notebook-settings-tag-remove { background: none; border: none; padding: 0; margin-left: 0.25rem; color: var(--color-muted); cursor: pointer; font-size: 1rem; line-height: 1; } .notebook-settings-tag-remove:hover { color: var(--color-error); } .notebook-settings-tags-input { flex: 1; min-width: 100px; border: none !important; background: transparent !important; padding: 0.25rem !important; } .notebook-settings-tags-input:focus { outline: none; } /* Actions */ .notebook-settings-actions { display: flex; justify-content: flex-start; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--color-border); } /* Error display */ .notebook-settings-error { padding: 0.75rem 1rem; background: color-mix(in srgb, var(--color-error) 10%, transparent); border: 1px solid var(--color-error); color: var(--color-error); font-size: 0.875rem; } /* Theme section - needs full width */ .notebook-settings-theme { container-type: inline-size; } .notebook-settings-theme .theme-editor-page { padding: 0; max-width: none; } /* On smaller screens, stack the theme editor */ @container (max-width: 50rem) { .notebook-settings-theme .theme-editor-page { grid-template-columns: 1fr; } .notebook-settings-theme .theme-editor-preview { position: static; max-height: none; } } /* Danger zone */ .notebook-settings-danger h2 { color: var(--color-error); border-color: var(--color-error); } .notebook-settings-danger-item { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem; background: color-mix(in srgb, var(--color-error) 5%, transparent); border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent); } .notebook-settings-danger-info h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 600; color: var(--color-text); } .notebook-settings-danger-info p { margin: 0; font-size: 0.875rem; color: var(--color-muted); } /* Confirm dialog */ .notebook-settings-confirm-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .notebook-settings-confirm-dialog { background: var(--color-surface); border: 1px solid var(--color-border); padding: 1.5rem; max-width: 400px; width: 90%; } .notebook-settings-confirm-dialog h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--color-text); } .notebook-settings-confirm-dialog p { margin: 0 0 1.5rem; color: var(--color-muted); font-size: 0.875rem; } .notebook-settings-confirm-actions { display: flex; justify-content: flex-end; gap: 0.75rem; } /* Unauthorized state */ .notebook-settings-unauthorized { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; text-align: center; padding: 2rem; } .notebook-settings-unauthorized h1 { margin: 0 0 0.5rem; font-size: 1.5rem; color: var(--color-text); } .notebook-settings-unauthorized p { margin: 0; color: var(--color-muted); } /* Placeholder */ .notebook-settings-placeholder { padding: 2rem; text-align: center; color: var(--color-muted); background: var(--color-surface); border: 1px dashed var(--color-border); }