/* ==========================================================================
   Developer Start Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Theming
   -------------------------------------------------------------------------- */

:root {
  /* Dark theme (default) */
  --start-bg: #0d1117;
  --start-surface: #161b22;
  --start-border: #30363d;
  --start-text: #e6edf3;
  --start-text-muted: #8b949e;
  --start-accent: #47b2e4;
  --start-accent-hover: #5bc0eb;
  --start-danger: #f85149;
  --start-success: #3fb950;
  --start-warning: #d29922;

  --widget-bg: #21262d;
  --widget-header: #161b22;
  --widget-border: #30363d;
  --widget-shadow: rgba(0, 0, 0, 0.3);

  --header-height: 56px;
  --grid-gap: 8px;
  --widget-radius: 8px;
  --widget-opacity: 1;
}

[data-theme="light"] {
  --start-bg: #f6f8fa;
  --start-surface: #ffffff;
  --start-border: #d0d7de;
  --start-text: #24292f;
  --start-text-muted: #57606a;

  --widget-bg: #ffffff;
  --widget-header: #f6f8fa;
  --widget-border: #d0d7de;
  --widget-shadow: rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--start-text);
  background-color: var(--start-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Background overlay for images */
body.has-bg-image::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: var(--bg-blur, blur(0px));
  opacity: var(--bg-opacity, 0.5);
  z-index: -1;
}

a {
  color: var(--start-accent);
  text-decoration: none;
}

a:hover {
  color: var(--start-accent-hover);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.start-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--start-surface);
  border-bottom: 1px solid var(--start-border);
  z-index: 100;
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-left {
  flex: 0 0 auto;
}

.header-right {
  flex: 1;
  justify-content: flex-end;
  gap: 12px;
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--start-border);
  margin: 0 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--start-text);
}

.brand-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.beta-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  cursor: help;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tools-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 12px;
  transition: all 0.2s;
}

.tools-btn:hover {
  background: rgba(71, 178, 228, 0.3);
  color: var(--start-accent);
}

/* Page Selector */
.page-selector {
  position: relative;
}

.page-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  background: var(--start-surface);
  border-color: var(--start-accent);
}

.page-btn i {
  font-size: 12px;
  transition: transform 0.2s;
}

.page-selector.open .page-btn i {
  transform: rotate(180deg);
}

.page-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--widget-shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.page-selector.open .page-dropdown {
  opacity: 1;
  visibility: visible;
}

.page-list {
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.page-item.active {
  background: rgba(71, 178, 228, 0.15);
  color: var(--start-accent);
}

.page-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.page-item:hover .page-item-actions {
  opacity: 1;
}

.page-item-btn {
  padding: 4px;
  background: none;
  border: none;
  color: var(--start-text-muted);
  cursor: pointer;
  border-radius: 4px;
}

.page-item-btn:hover {
  color: var(--start-text);
  background: var(--start-border);
}

.page-dropdown-actions {
  padding: 8px;
  border-top: 1px solid var(--start-border);
}

.page-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: none;
  border: 1px dashed var(--start-border);
  border-radius: 6px;
  color: var(--start-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-action-btn:hover {
  border-color: var(--start-accent);
  color: var(--start-accent);
}

/* Header Buttons */
.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--start-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-btn:hover {
  color: var(--start-text);
  background: var(--widget-bg);
}

.header-btn.active {
  color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
  border-color: var(--start-accent);
}

.add-widget-btn {
  color: var(--start-accent);
  border-color: var(--start-accent);
}

.add-widget-btn:hover {
  background: rgba(71, 178, 228, 0.15);
}

.cancel-edit-btn {
  color: #f85149;
  border-color: #f85149;
}

.cancel-edit-btn:hover {
  background: rgba(248, 81, 73, 0.15);
}

/* --------------------------------------------------------------------------
   Main Grid Area
   -------------------------------------------------------------------------- */

.start-main {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--grid-gap);
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   GridStack Customization
   -------------------------------------------------------------------------- */

.grid-stack {
  min-height: calc(100vh - var(--header-height) - var(--grid-gap) * 2);
}

.grid-stack-item-content {
  background: var(--widget-bg);
  border: 1px solid var(--widget-border);
  border-radius: var(--widget-radius);
  box-shadow: 0 2px 8px var(--widget-shadow);
  opacity: var(--widget-opacity);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Make custom widget elements fill their grid cell */
.grid-stack-item-content > * {
  flex: 1;
  min-height: 0;
}

/* Edit mode styles */
.edit-mode .grid-stack-item-content {
  border-color: var(--start-accent);
  border-style: dashed;
}

.edit-mode .gs-item-content:hover {
  box-shadow: 0 4px 16px var(--widget-shadow);
}

/* Placeholder during drag */
.grid-stack-placeholder > .placeholder-content {
  background: rgba(71, 178, 228, 0.1);
  border: 2px dashed var(--start-accent);
  border-radius: var(--widget-radius);
}

/* Resize handles */
.grid-stack > .grid-stack-item > .ui-resizable-handle {
  opacity: 0;
  transition: opacity 0.2s;
}

.edit-mode .grid-stack > .grid-stack-item > .ui-resizable-handle {
  opacity: 1;
}

.edit-mode .grid-stack > .grid-stack-item > .ui-resizable-se {
  background: var(--start-accent);
  width: 16px;
  height: 16px;
  right: 0;
  bottom: 0;
  border-radius: 0 0 var(--widget-radius) 0;
}

/* Size indicator during resize */
.widget-size-indicator {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--start-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 100;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  letter-spacing: 1px;
}

/* Edit mode info panel */
.edit-mode-info {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: var(--widget-bg);
  border: 1px solid var(--start-accent);
  border-radius: var(--widget-radius);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--start-text);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  max-width: 280px;
  opacity: 0.75;
}

.edit-mode .edit-mode-info {
  display: block;
}

.edit-mode-info-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--start-accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-mode-info-title i {
  font-size: 14px;
}

.edit-mode-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--start-border);
}

.edit-mode-info-row:last-child {
  border-bottom: none;
}

.edit-mode-info-label {
  color: var(--start-text-muted);
}

.edit-mode-info-value {
  font-weight: 500;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  color: var(--start-text);
}

/* Hide edit mode info panel on small screens */
@media (max-width: 768px) {
  .edit-mode-info {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Widget Base Styles
   -------------------------------------------------------------------------- */

.widget {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  background: var(--widget-header);
  border-bottom: 1px solid var(--widget-border);
  flex-shrink: 0;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--start-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 0;
  overflow: hidden;
}

.widget-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-title i {
  color: var(--start-accent);
}

.widget-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.edit-mode .widget-actions {
  opacity: 1;
}

.widget-action-btn {
  padding: 2px 4px;
  background: none;
  border: none;
  color: var(--start-text-muted);
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.2s;
}

.widget-action-btn:hover {
  color: var(--start-text);
  background: var(--start-border);
}

.widget-action-btn.delete:hover {
  color: var(--start-danger);
  background: rgba(248, 81, 73, 0.15);
}

.widget-body {
  flex: 1;
  padding: 10px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Make the first child (widget content div) fill the body, ignore <style> tags */
.widget-body > *:first-child {
  flex: 1;
  min-height: 0;
}

.widget-body.scrollable {
  overflow: auto;
}

.widget-body::-webkit-scrollbar {
  width: 6px;
}

.widget-body::-webkit-scrollbar-track {
  background: transparent;
}

.widget-body::-webkit-scrollbar-thumb {
  background: var(--start-border);
  border-radius: 3px;
}

.widget-body::-webkit-scrollbar-thumb:hover {
  background: var(--start-text-muted);
}

/* Widget Loading State */
.widget-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--start-text-muted);
}

.widget-loading i {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Widget Error State */
.widget-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--start-text-muted);
  padding: 16px;
}

.widget-error i {
  font-size: 32px;
  color: var(--start-danger);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Widget Display Modes
   -------------------------------------------------------------------------- */

/* Mode 1: Hide Header (hover) - Header shows on hover, content expands */
.widget.display-hide-header .widget-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.2s ease;
  z-index: 10;
  background: var(--widget-header);
}

.widget.display-hide-header .widget-body {
  height: 100%;
  transition: padding-top 0.2s ease;
}

.widget.display-hide-header:hover .widget-header {
  opacity: 1;
  transform: translateY(0);
}

.widget.display-hide-header:hover .widget-body {
  padding-top: 22px; /* Height of header */
}

/* Mode 2: Hide Frame (hover) - Transparent container, shows on hover */
.grid-stack-item-content:has(.widget.display-hide-frame) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: all 0.2s ease;
}

.widget.display-hide-frame .widget-header {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.grid-stack-item-content:has(.widget.display-hide-frame):hover {
  background: var(--widget-bg);
  border-color: var(--widget-border);
  box-shadow: 0 2px 8px var(--widget-shadow);
}

.edit-mode .grid-stack-item-content:has(.widget.display-hide-frame) {
  background: var(--widget-bg);
  border-color: var(--start-accent);
  border-style: dashed;
  box-shadow: 0 2px 8px var(--widget-shadow);
}

.widget.display-hide-frame:hover .widget-header {
  opacity: 1;
}

/* Mode 3: Full Header Hide - Header only shows in edit mode */
.widget.display-full-header-hide .widget-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.2s ease;
  z-index: 10;
  background: var(--widget-header);
  pointer-events: none;
}

.widget.display-full-header-hide .widget-body {
  height: 100%;
}

.edit-mode .widget.display-full-header-hide .widget-header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.edit-mode .widget.display-full-header-hide .widget-body {
  padding-top: 22px;
}

/* Mode 4: Full Frame Hide - Container only shows in edit mode */
.grid-stack-item-content:has(.widget.display-full-frame-hide) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: all 0.2s ease;
}

.widget.display-full-frame-hide .widget-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.edit-mode .grid-stack-item-content:has(.widget.display-full-frame-hide) {
  background: var(--widget-bg);
  border-color: var(--start-accent);
  border-style: dashed;
  box-shadow: 0 2px 8px var(--widget-shadow);
}

.edit-mode .widget.display-full-frame-hide .widget-header {
  opacity: 1;
  pointer-events: auto;
}

/* Mode 5: Full Frame Hide Readonly - Same as #4 plus blocks all clicks */
.grid-stack-item-content:has(.widget.display-full-frame-hide-readonly) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: all 0.2s ease;
}

.widget.display-full-frame-hide-readonly .widget-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.widget.display-full-frame-hide-readonly .widget-body {
  position: relative;
}

/* Transparent overlay to block clicks */
.widget.display-full-frame-hide-readonly .widget-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  cursor: default;
}

.edit-mode .grid-stack-item-content:has(.widget.display-full-frame-hide-readonly) {
  background: var(--widget-bg);
  border-color: var(--start-accent);
  border-style: dashed;
  box-shadow: 0 2px 8px var(--widget-shadow);
}

.edit-mode .widget.display-full-frame-hide-readonly .widget-header {
  opacity: 1;
  pointer-events: auto;
}

/* Remove click blocker in edit mode */
.edit-mode .widget.display-full-frame-hide-readonly .widget-body::after {
  display: none;
}

/* Disable bookmark clicks in edit mode */
.edit-mode .bookmark-item {
  cursor: default;
  pointer-events: none;
}

.edit-mode .bookmark-item:hover {
  transform: none;
  border-color: var(--start-border);
}

/* Hide scrollbar option - targets widget-body and all nested scrollable elements */
.widget.hide-scrollbar .widget-body,
.widget.hide-scrollbar .widget-body * {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.widget.hide-scrollbar .widget-body::-webkit-scrollbar,
.widget.hide-scrollbar .widget-body *::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-content.modal-lg {
  max-width: 700px;
}

.modal-content.modal-sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--start-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  padding: 8px;
  background: none;
  border: none;
  color: var(--start-text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--start-text);
  background: var(--widget-bg);
}

.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--start-border);
}

/* --------------------------------------------------------------------------
   Widget Library
   -------------------------------------------------------------------------- */

.widget-search {
  position: relative;
  margin-bottom: 20px;
}

.widget-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--start-text-muted);
}

.widget-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  color: var(--start-text);
  font-size: 14px;
}

.widget-search input:focus {
  outline: none;
  border-color: var(--start-accent);
}

.widget-search input::placeholder {
  color: var(--start-text-muted);
}

.widget-category {
  margin-bottom: 24px;
}

.widget-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--start-text-muted);
}

.widget-category-title i {
  color: var(--start-accent);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.widget-card {
  padding: 16px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.widget-card:hover {
  border-color: var(--start-accent);
  transform: translateY(-2px);
}

.widget-card i {
  font-size: 24px;
  color: var(--start-accent);
  margin-bottom: 8px;
}

.widget-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--start-text);
}

.widget-card-desc {
  font-size: 11px;
  color: var(--start-text-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Settings
   -------------------------------------------------------------------------- */

.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--start-border);
}

.settings-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--start-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.settings-tab:hover {
  color: var(--start-text);
  background: var(--widget-bg);
}

.settings-tab.active {
  color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
}

.settings-tab i {
  font-size: 14px;
  margin-right: 2px;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.setting-group {
  margin-bottom: 20px;
}

.setting-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--start-text);
}

.setting-control {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.setting-help {
  font-size: 12px;
  color: var(--start-text-muted);
  margin: 4px 0 12px 0;
}

.share-url-container {
  margin-top: 12px;
  padding: 12px;
  background: var(--start-surface);
  border-radius: 8px;
  border: 1px solid var(--start-border);
}

.share-url-input-group {
  display: flex;
  gap: 8px;
}

.share-url-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--start-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 12px;
  font-family: monospace;
}

.share-url-info {
  font-size: 11px;
  color: var(--start-text-muted);
  margin: 8px 0 0 0;
}

/* Share Modal */
.share-modal-desc {
  color: var(--start-text-muted);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.share-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  width: 100%;
}

.share-modal-divider {
  height: 1px;
  background: var(--start-border);
  margin: 20px 0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--start-border);
  color: var(--start-text);
}

.btn-outline:hover {
  background: var(--start-surface);
  border-color: var(--start-text-muted);
}

.share-modal-btn i {
  font-size: 18px;
}

/* Share header button */
.share-btn {
  padding: 6px 10px !important;
}

.share-btn i {
  font-size: 16px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.setting-row label {
  min-width: 80px;
  font-size: 13px;
  color: var(--start-text-muted);
}

.setting-row input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: var(--start-border);
  border-radius: 2px;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--start-accent);
  border-radius: 50%;
  cursor: pointer;
}

.setting-row span {
  min-width: 40px;
  font-size: 12px;
  color: var(--start-text-muted);
  text-align: right;
}

.setting-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 14px;
}

.setting-input:focus {
  outline: none;
  border-color: var(--start-accent);
}

.setting-select {
  padding: 8px 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 14px;
  cursor: pointer;
}

.setting-select-sm {
  padding: 6px 10px;
  font-size: 13px;
}

.setting-presets {
  width: 100%;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--start-text-muted);
}

.setting-presets option {
  color: var(--start-text);
}

.setting-color {
  width: 40px;
  height: 36px;
  padding: 2px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  cursor: pointer;
}

.setting-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-color-clear {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.setting-color-clear:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.5);
  color: #ff6464;
}

.setting-color-label {
  font-size: 12px;
  color: var(--start-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Bookmarks Settings UI
   -------------------------------------------------------------------------- */

.bookmarks-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
}

.bookmark-settings-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bookmark-settings-item.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.bookmark-settings-item.drag-over-top {
  border-top: 2px solid var(--start-accent);
}

.bookmark-settings-item.drag-over-bottom {
  border-bottom: 2px solid var(--start-accent);
}

.bookmark-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 40px;
  color: var(--start-text-muted);
  cursor: grab;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.bookmark-drag-handle:hover {
  color: var(--start-text);
  background: var(--start-surface);
}

.bookmark-drag-handle:active {
  cursor: grabbing;
}

.bookmark-settings-item .bookmark-inputs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookmark-settings-item .bookmark-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-accent);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.bookmark-settings-item .bookmark-icon-btn:hover {
  border-color: var(--start-accent);
}

.bookmark-settings-item .bookmark-icon-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bookmark-settings-item input {
  padding: 8px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 4px;
  color: var(--start-text);
  font-size: 13px;
}

.bookmark-settings-item input:focus {
  outline: none;
  border-color: var(--start-accent);
}

.bookmark-settings-item .bookmark-delete-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--start-danger);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.7;
}

.bookmark-settings-item .bookmark-delete-btn:hover {
  opacity: 1;
  background: rgba(248, 81, 73, 0.15);
}

.bookmark-add-row {
  display: flex;
  justify-content: center;
  padding: 8px;
}

.bookmark-add-row button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: none;
  border: 1px dashed var(--start-border);
  border-radius: 6px;
  color: var(--start-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.bookmark-add-row button:hover {
  border-color: var(--start-accent);
  color: var(--start-accent);
}

/* Icon Picker Modal */
.icon-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.icon-picker {
  width: 350px;
  max-height: 400px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.icon-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--start-border);
}

.icon-picker-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.icon-picker-close {
  background: none;
  border: none;
  color: var(--start-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.icon-picker-close:hover {
  color: var(--start-text);
  background: var(--widget-bg);
}

.icon-picker-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--start-border);
}

.icon-picker-tab {
  padding: 6px 12px;
  background: none;
  border: none;
  color: var(--start-text-muted);
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.icon-picker-tab:hover {
  color: var(--start-text);
  background: var(--widget-bg);
}

.icon-picker-tab.active {
  color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
}

.icon-picker-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.icon-picker-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-picker-item:hover {
  border-color: var(--start-accent);
  color: var(--start-accent);
}

.icon-picker-item.selected {
  border-color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
  color: var(--start-accent);
}

.icon-picker-url {
  padding: 12px;
}

.icon-picker-url input {
  width: 100%;
  padding: 10px 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 13px;
}

.icon-picker-url input:focus {
  outline: none;
  border-color: var(--start-accent);
}

.icon-picker-url p {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--start-text-muted);
}

.icon-picker-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--start-border);
}

.gradient-controls {
  align-items: center;
}

.gradient-controls span {
  color: var(--start-text-muted);
  font-size: 13px;
}

/* Wallpaper Gallery */
.wallpaper-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wallpaper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallpaper-item img,
.wallpaper-item .wallpaper-none {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.wallpaper-item .wallpaper-none {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--start-bg);
  border: 2px solid var(--start-border);
  color: var(--start-text-muted);
  font-size: 18px;
}

.wallpaper-item:hover img,
.wallpaper-item:hover .wallpaper-none {
  border-color: var(--start-accent);
}

.wallpaper-item.selected img,
.wallpaper-item.selected .wallpaper-none {
  border-color: var(--start-accent);
  box-shadow: 0 0 0 2px rgba(71, 178, 228, 0.3);
}

.wallpaper-item span {
  font-size: 11px;
  color: var(--start-text-muted);
  text-align: center;
}

.wallpaper-item.selected span {
  color: var(--start-accent);
}

/* Wallpaper Loading */
.wallpaper-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--start-text-muted);
  font-size: 13px;
}

.wallpaper-loading i {
  animation: spin 1s linear infinite;
}

.wallpaper-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--start-text-muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Wallpaper Browser (Background Tab)
   -------------------------------------------------------------------------- */

.wallpaper-browser {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Source Tabs */
.wallpaper-source-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--widget-bg);
  border-radius: 8px;
}

.wallpaper-source-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--start-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.wallpaper-source-tab:hover {
  color: var(--start-text);
  background: var(--start-surface);
}

.wallpaper-source-tab.active {
  color: var(--start-accent);
  background: rgba(71, 178, 228, 0.15);
}

.wallpaper-source-tab i {
  font-size: 14px;
}

/* Gallery Container */
.wallpaper-gallery-container {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.wallpaper-gallery-container::-webkit-scrollbar {
  width: 6px;
}

.wallpaper-gallery-container::-webkit-scrollbar-track {
  background: transparent;
}

.wallpaper-gallery-container::-webkit-scrollbar-thumb {
  background: var(--start-border);
  border-radius: 3px;
}

/* Category Filter */
.wallpaper-category-container {
  margin-bottom: 12px;
}

.wallpaper-category-container select {
  width: 100%;
  padding: 8px 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 13px;
  cursor: pointer;
}

/* Custom URL Input */
.wallpaper-custom-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallpaper-custom-container input {
  width: 100%;
  padding: 10px 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 13px;
}

.wallpaper-custom-container input:focus {
  outline: none;
  border-color: var(--start-accent);
}

.wallpaper-custom-container input::placeholder {
  color: var(--start-text-muted);
}

/* Load More Button */
.wallpaper-load-more {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: var(--widget-bg);
  border: 1px dashed var(--start-border);
  border-radius: 6px;
  color: var(--start-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallpaper-load-more:hover {
  border-color: var(--start-accent);
  color: var(--start-accent);
}

.wallpaper-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Preview Section */
.wallpaper-preview-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--start-border);
}

.wallpaper-preview-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--start-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.wallpaper-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--start-bg);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallpaper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallpaper-preview .preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--start-text-muted);
}

.wallpaper-preview .preview-placeholder i {
  font-size: 32px;
  opacity: 0.5;
}

.wallpaper-preview .preview-placeholder span {
  font-size: 12px;
}

/* Apply Button */
.wallpaper-apply-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--start-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wallpaper-apply-btn:hover {
  background: var(--start-accent-hover);
}

/* Image Options Section */
.wallpaper-options {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--start-border);
}

.wallpaper-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wallpaper-option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallpaper-option-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--start-text-muted);
}

.wallpaper-option-group select,
.wallpaper-option-group input[type="color"] {
  padding: 8px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 13px;
  cursor: pointer;
}

.wallpaper-option-group input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
}

/* Bar Fill Options */
.bar-fill-options {
  margin-top: 12px;
  padding: 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 8px;
}

.bar-fill-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--start-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.bar-fill-info {
  font-size: 11px;
  color: var(--start-text-muted);
  margin-bottom: 10px;
  font-style: italic;
}

.bar-fill-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-fill-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-fill-row select {
  flex: 1;
  padding: 8px 10px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 12px;
}

.bar-fill-row input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 2px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  cursor: pointer;
}

.bar-fill-gradient-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.bar-fill-gradient-controls input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 2px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 4px;
  cursor: pointer;
}

.bar-fill-gradient-controls span {
  font-size: 11px;
  color: var(--start-text-muted);
}

/* Theme Buttons */
.theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  color: var(--start-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: var(--start-accent);
}

.theme-btn.active {
  background: rgba(71, 178, 228, 0.15);
  border-color: var(--start-accent);
  color: var(--start-accent);
}

/* Pages List in Settings */
.pages-list {
  margin-bottom: 16px;
}

.pages-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.pages-list-item input {
  flex: 1;
  padding: 6px 10px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 4px;
  color: var(--start-text);
  font-size: 14px;
}

.pages-list-item-actions {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

/* About Panel */
.about-content {
  text-align: center;
}

.about-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.about-content p {
  color: var(--start-text-muted);
  margin: 0 0 16px;
}

.about-content .version {
  font-size: 12px;
  color: var(--start-text-muted);
}

.about-content h4 {
  margin: 24px 0 12px;
  font-size: 14px;
  color: var(--start-text-muted);
}

.shortcuts-list {
  text-align: left;
  background: var(--widget-bg);
  border-radius: 8px;
  padding: 12px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--start-border);
}

.shortcut:last-child {
  border-bottom: none;
}

.shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 4px 8px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.about-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

/* Help Content */
.help-content {
  display: grid;
  gap: 16px;
}

.help-section {
  padding: 16px;
  background: var(--widget-bg);
  border-radius: 8px;
}

.help-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
}

.help-section h3 i {
  color: var(--start-accent);
}

.help-section p {
  margin: 0;
  color: var(--start-text-muted);
  font-size: 13px;
}

.help-dont-show {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--start-text-muted);
  cursor: pointer;
}

.help-dont-show input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--start-accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--start-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--start-accent-hover);
}

.btn-secondary {
  background: var(--widget-bg);
  border: 1px solid var(--start-border);
  color: var(--start-text);
}

.btn-secondary:hover {
  border-color: var(--start-accent);
}

.btn-danger {
  background: var(--start-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #e53935;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  transition: bottom 0.2s ease;
}


.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--widget-shadow);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-color: var(--start-success);
}

.toast.success i {
  color: var(--start-success);
}

.toast.error {
  border-color: var(--start-danger);
}

.toast.error i {
  color: var(--start-danger);
}

.toast.warning {
  border-color: var(--start-warning);
}

.toast.warning i {
  color: var(--start-warning);
}

/* --------------------------------------------------------------------------
   Export/Import Modals
   -------------------------------------------------------------------------- */

.export-modal-desc,
.import-modal-desc {
  color: var(--start-text-muted);
  margin-bottom: 16px;
}

.export-options,
.import-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.export-option,
.import-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.export-option:hover,
.import-option:hover {
  border-color: var(--start-accent);
}

.export-option.disabled {
  opacity: 0.6;
  cursor: default;
}

.export-option.disabled:hover {
  border-color: var(--start-border);
}

.export-option input[type="checkbox"],
.import-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--start-accent);
}

.export-option .option-label,
.import-option .option-label {
  font-weight: 500;
  color: var(--start-text);
  flex: 1;
  min-width: 150px;
}

.export-option .option-help,
.import-option .option-help {
  width: 100%;
  font-size: 12px;
  color: var(--start-text-muted);
  margin-left: 24px;
}

/* Inline data export options (Settings > Data tab) */
.data-export-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.data-export-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--start-text);
  cursor: pointer;
}

.data-export-options label.disabled {
  opacity: 0.6;
  cursor: default;
}

.data-export-options input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--start-accent);
}

.export-scope {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--start-border);
}

.export-scope-label {
  color: var(--start-text-muted);
  font-size: 14px;
}

.export-scope-select {
  flex: 1;
  padding: 8px 12px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 14px;
}

.export-scope-select:focus {
  outline: none;
  border-color: var(--start-accent);
}

.import-summary {
  padding: 12px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  margin-bottom: 16px;
}

.import-summary-title {
  font-weight: 600;
  color: var(--start-text);
  margin-bottom: 8px;
}

.import-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.import-summary-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--start-text-muted);
  font-size: 14px;
}

.import-summary-list li i {
  color: var(--start-accent);
}

.import-options-title {
  font-weight: 500;
  color: var(--start-text);
  margin-bottom: 8px;
}

/* New Page Modal */
.new-page-field {
  margin-bottom: 16px;
}

.new-page-field:last-child {
  margin-bottom: 0;
}

.new-page-field .field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--start-text-muted);
  margin-bottom: 8px;
}

.new-page-field .field-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  color: var(--start-text);
  font-size: 14px;
}

.new-page-field .field-input:focus {
  outline: none;
  border-color: var(--start-accent);
}

.new-page-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.new-page-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--start-surface);
  border: 1px solid var(--start-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.new-page-option:hover {
  border-color: var(--start-accent);
}

.new-page-option:has(input:checked) {
  border-color: var(--start-accent);
  background: rgba(var(--start-accent-rgb), 0.1);
}

.new-page-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--start-accent);
}

.new-page-option .option-label {
  font-weight: 500;
  color: var(--start-text);
  flex: 1;
  min-width: 150px;
}

.new-page-option .option-help {
  width: 100%;
  font-size: 12px;
  color: var(--start-text-muted);
  margin-left: 24px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .header-btn span {
    display: none;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .widget-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .brand-tag,
  .beta-badge,
  .tools-btn {
    display: none;
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }
}
