/* ============================================
   IdeaForge — Page-Specific Styles
   ============================================ */

/* ========== DASHBOARD ========== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.activity-item:hover {
  background: var(--bg-hover);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 16px;
  height: 16px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Quick capture */
.quick-capture {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  transition: all var(--transition-fast);
}

.quick-capture svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}


.quick-capture:focus-within {
  border-color: var(--primary);
  border-style: solid;
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.quick-capture input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  outline: none;
}

.quick-capture input::placeholder {
  color: var(--text-tertiary);
}

/* AI Insight card */
.ai-insight-card {
  background: var(--gradient-subtle);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

.ai-insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-alpha-10) 0%, transparent 70%);
  pointer-events: none;
}

.ai-insight-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ai-insight-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.ai-insight-header span {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--primary);
}

.ai-insight-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== PROJECTS PAGE ========== */
.view-toggle {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle-btn {
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  border-right: 1px solid var(--input-border);
}

.view-toggle-btn:last-child {
  border-right: none;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--primary-alpha-10);
  color: var(--primary);
}

.view-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  border-color: var(--primary-alpha-30);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-3px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.project-card-color {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 4px;
}

.project-card-title {
  flex: 1;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.3;
}

.project-card-desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: auto;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--surface-border);
  margin-top: auto;
}

.project-card-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.project-card-score {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  min-height: 500px;
}

.kanban-column {
  flex: 0 0 280px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--surface-border);
  flex-shrink: 0;
}

.kanban-column-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.kanban-column-count {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}

.kanban-column-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.kanban-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: grab;
  transition: all var(--transition-fast);
  user-select: none;
}

.kanban-card:hover {
  border-color: var(--primary-alpha-30);
  box-shadow: var(--shadow-md);
}

.kanban-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
  box-shadow: var(--shadow-lg);
}

.kanban-card-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.kanban-drop-zone {
  min-height: 60px;
  border: 2px dashed transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.kanban-drop-zone.drag-over {
  border-color: var(--primary-alpha-30);
  background: var(--primary-alpha-10);
}

/* ========== PROJECT DETAIL ========== */
.project-detail {
  max-width: 900px;
}

.project-detail-header {
  margin-bottom: var(--space-6);
}

.project-detail-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.project-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.project-detail-section {
  margin-bottom: var(--space-6);
}

.project-detail-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.project-detail-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* Tasks checklist */
.task-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.task-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  group: true;
}

.task-item:hover {
  background: var(--bg-hover);
}

.task-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-default);
  background: var(--input-bg);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.task-item input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.task-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.task-text {
  flex: 1;
  font-size: var(--text-sm);
}

.task-delete {
  opacity: 0;
  color: var(--text-tertiary);
  padding: 2px;
  transition: all var(--transition-fast);
}

.task-item:hover .task-delete {
  opacity: 1;
}

.task-delete:hover {
  color: var(--danger);
}

.task-delete svg {
  width: 14px;
  height: 14px;
}

.add-task-input {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.add-task-input input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.add-task-input input::placeholder {
  color: var(--input-placeholder);
}

.add-task-input input:focus {
  outline: none;
  border-color: var(--primary);
}

/* AI Evaluation */
.ai-evaluation {
  background: var(--gradient-subtle);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
}

.ai-evaluation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.ai-evaluation-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.ai-evaluation-type {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-evaluation-content {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-evaluation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ========== NOTES PAGE ========== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 160px;
}

.note-card:hover {
  border-color: var(--accent-alpha-20);
  box-shadow: var(--shadow-md), var(--shadow-glow-accent);
  transform: translateY(-2px);
}

.note-card.pinned {
  border-color: var(--warning);
  border-style: solid;
}

.note-card.pinned::before {
  content: '📌';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: var(--text-sm);
}

.note-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.3;
}

.note-card-preview {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  flex: 1;
}

.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--surface-border);
  margin-top: auto;
}

.note-card-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ========== NOTE EDITOR ========== */
.note-editor-container {
  max-width: 800px;
  margin: 0 auto;
}

.note-editor-title {
  width: 100%;
  border: none;
  background: transparent;
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  outline: none;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.note-editor-title::placeholder {
  color: var(--text-disabled);
}

.note-editor-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: var(--glass-blur);
}

.toolbar-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.toolbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.toolbar-btn.active {
  background: var(--primary-alpha-10);
  color: var(--primary);
}

.toolbar-btn svg {
  width: 18px;
  height: 18px;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-default);
  margin: 0 var(--space-1);
}

.note-editor-content {
  min-height: 400px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.8;
  outline: none;
  overflow-y: auto;
}

.note-editor-content:focus {
  border-color: var(--primary-alpha-30);
}

.note-editor-content h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin: var(--space-4) 0 var(--space-2);
}

.note-editor-content h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: var(--space-3) 0 var(--space-2);
}

.note-editor-content h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: var(--space-3) 0 var(--space-2);
}

.note-editor-content p {
  margin-bottom: var(--space-2);
}

.note-editor-content ul,
.note-editor-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
}

.note-editor-content li {
  list-style: inherit;
  margin-bottom: var(--space-1);
}

.note-editor-content ol li {
  list-style-type: decimal;
}

.note-editor-content ul li {
  list-style-type: disc;
}

.note-editor-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: var(--space-4);
  margin: var(--space-3) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.note-editor-content code {
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.note-editor-content pre {
  background: var(--bg-tertiary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-3) 0;
}

.note-editor-content pre code {
  background: none;
  padding: 0;
}

.note-editor-content hr {
  border: none;
  height: 1px;
  background: var(--border-default);
  margin: var(--space-5) 0;
}

.note-editor-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

/* ========== AI CHAT PAGE ========== */
.ai-chat-layout {
  display: flex;
  height: calc(100vh - var(--space-6) * 2);
  gap: var(--space-4);
}

.ai-chat-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-chat-sidebar-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}

.ai-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2);
}

.ai-chat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.ai-chat-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.ai-chat-item.active {
  background: var(--primary-alpha-10);
  color: var(--primary);
}

.ai-chat-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ai-chat-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ai-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: var(--space-8);
}

.ai-chat-welcome-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-glow);
}

.ai-chat-welcome-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.ai-chat-welcome h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.ai-chat-welcome p {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  max-width: 400px;
  margin-bottom: var(--space-6);
}

.ai-prompt-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  max-width: 500px;
  width: 100%;
}

.ai-prompt-template {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-hover);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.ai-prompt-template:hover {
  border-color: var(--primary-alpha-30);
  color: var(--text-primary);
  background: var(--primary-alpha-10);
}

.ai-prompt-template svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.ai-prompt-template-title {
  font-weight: var(--font-semibold);
  margin-bottom: 2px;
}

.ai-prompt-template-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.chat-message-timestamp {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .ai-chat-layout {
    flex-direction: column;
    height: auto;
  }

  .ai-chat-sidebar {
    width: 100%;
    max-height: 200px;
  }

  .ai-chat-main {
    min-height: 500px;
  }
}

/* ========== SETTINGS PAGE ========== */
.settings-layout {
  max-width: 700px;
}

.settings-section {
  margin-bottom: var(--space-8);
}

.settings-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.settings-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-4);
}

.settings-row:not(:last-child) {
  border-bottom: 1px solid var(--border-default);
}

.settings-row-info {
  flex: 1;
}

.settings-row-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: 2px;
}

.settings-row-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-default);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

/* Theme selector */
.theme-options {
  display: flex;
  gap: var(--space-3);
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.theme-option:hover {
  border-color: var(--border-hover);
}

.theme-option.active {
  border-color: var(--primary);
  background: var(--primary-alpha-10);
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  overflow: hidden;
}

.theme-preview-dark {
  background: hsl(230, 25%, 8%);
}

.theme-preview-light {
  background: hsl(220, 20%, 97%);
}

.theme-preview-system {
  background: linear-gradient(135deg, hsl(230, 25%, 8%) 50%, hsl(220, 20%, 97%) 50%);
}

.theme-option-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

/* Data management */
.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Category manager */
.category-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.category-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-hover);
  border-radius: var(--radius-md);
}

.category-item-name {
  flex: 1;
  font-size: var(--text-sm);
}

.category-item-delete {
  color: var(--text-tertiary);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.category-item-delete:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.category-item-delete svg {
  width: 14px;
  height: 14px;
}