:root {
  --bg: #0f0f14;
  --card: rgba(32, 32, 42, 0.95);
  --card-border: rgba(80, 80, 100, 0.6);
  --text: #e8e6e3;
  --text-muted: #8b8685;
  --accent-kyiv: #4ade80;
  --accent-barcelona: #f59e0b;
  --accent-warsaw: #ef4444;
  --accent-london: #60a5fa;
  --accent-paris: #a78bfa;
  --accent-berlin: #8b5cf6;
  --accent-ny: #f472b6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bg-slides {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #1a1a24;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 3.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  background-image: url('../images/brianna-parks-WQW0uTofZiE-unsplash.jpg');
}

.bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.bg-slide.next {
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.75) 0%, rgba(15, 15, 20, 0.88) 100%);
  pointer-events: none;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.widgets-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 4rem);
}

.widget-draggable {
  position: absolute;
  z-index: 2;
}

.widget-drag-handle {
  cursor: move;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.widget-drag-handle:hover {
  color: var(--text);
  background: rgba(80, 80, 100, 0.3);
}

.clocks-column {
  min-width: 200px;
}

.pomodoro.widget-draggable,
.local-time-digital.widget-draggable,
.local-time-analog.widget-draggable,
.worked-today.widget-draggable,
.calendar-section.widget-draggable,
.todo-section.widget-draggable {
  width: 320px;
}

.clocks {
  min-height: 260px;
}


.clock-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 200px;
}

.clock-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.clock-card.kyiv { border-top: 3px solid var(--accent-kyiv); }
.clock-card.clock-card-added { border-top: 3px solid rgba(80, 80, 100, 0.8); }

.clock-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.clock-card-drag {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: move;
  font-size: 0.8rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.clock-card-drag:hover {
  background: rgba(80, 80, 100, 0.4);
  color: var(--text);
}

.worked-today-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.4rem 0;
  text-align: center;
  color: var(--text-muted);
}

.local-time-digital-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 0.35rem;
  color: #a5f3fc;
  text-shadow:
    0 0 4px rgba(45, 212, 191, 0.8),
    0 0 12px rgba(34, 211, 238, 0.9),
    0 0 20px rgba(56, 189, 248, 0.9);
  letter-spacing: 0.08em;
}

.local-time-digital-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.local-time-analog-canvas {
  display: block;
  margin: 0 auto;
}

.local-time-digital.widget-draggable,
.local-time-analog.widget-draggable {
  cursor: move;
}

.clock-card-head .city {
  margin-bottom: 0;
}

.city {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
}

.city-autocomplete {
  position: relative;
  flex: 1;
  min-width: 0;
}

.city-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(30, 30, 40, 0.9);
  color: var(--text);
}

.city-input::placeholder {
  color: var(--text-muted);
}

.city-add-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--accent-kyiv);
  color: #0f0f14;
  cursor: pointer;
  flex-shrink: 0;
}

.city-add-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.city-add-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: none;
}

.city-suggestions.open {
  display: block;
}

.city-suggestion-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(80, 80, 100, 0.3);
}

.city-suggestion-item:last-child {
  border-bottom: none;
}

.city-suggestion-item:hover,
.city-suggestion-item.highlighted {
  background: rgba(80, 80, 100, 0.35);
}

.clock-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.clock-time-block {
  flex-shrink: 0;
  text-align: left;
}

.clock-sep {
  width: 1px;
  min-height: 2.5rem;
  align-self: stretch;
  background: linear-gradient(180deg, transparent 0%, var(--card-border) 15%, var(--card-border) 85%, transparent 100%);
  border-radius: 1px;
  opacity: 0.9;
  flex-shrink: 0;
}

.time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.weather {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  text-align: left;
  padding-left: 0;
  border: none;
  margin: 0;
}

.weather-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.weather-temp {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.25rem;
}

.weather-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--text-muted);
}

.weather-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.weather.loading {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.weather-rises {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rise-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rise-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Pomodoro */
.pomodoro {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-top: 3px solid var(--accent-kyiv);
  width: 100%;
  max-width: 400px;
}

.pomodoro-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pomodoro-display {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  min-height: 1.2em;
}

.pomodoro-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.pomodoro-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(50, 50, 60, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pomodoro-btn:hover {
  background: rgba(70, 70, 85, 0.9);
  border-color: var(--accent-kyiv);
}

.pomodoro-custom {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pomodoro-custom label {
  margin-right: 0.5rem;
}

.pomodoro-custom input {
  width: 3.5rem;
  padding: 0.35rem 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(30, 30, 40, 0.9);
  color: var(--text);
  margin-right: 0.35rem;
}

.pomodoro-start {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.75rem;
  border-radius: 10px;
  border: none;
  background: var(--accent-kyiv);
  color: #0f0f14;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.pomodoro-start:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.pomodoro-start:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pomodoro-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pomodoro-stop {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pomodoro-stop:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.pomodoro-stop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Worked today */
.worked-today {
  padding: 1rem 1.25rem;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.worked-today-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.worked-today-sep {
  display: block;
  height: 0;
  border-top: 1px solid var(--card-border);
  margin: 0.75rem 0;
  opacity: 0.8;
}

/* Calendar (today's events) */
.calendar-section {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-top: 3px solid var(--accent-berlin);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.calendar-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.calendar-auth-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
}

.calendar-signin-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(50, 50, 60, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.calendar-signin-btn:hover {
  background: rgba(70, 70, 85, 0.9);
  border-color: var(--accent-berlin);
}

.calendar-events-list {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.calendar-event-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  margin-left: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(80, 80, 100, 0.3);
  font-size: 0.9rem;
}

.calendar-event-item.calendar-event-color-0 { border-left-color: #a78bfa; }
.calendar-event-item.calendar-event-color-1 { border-left-color: #60a5fa; }
.calendar-event-item.calendar-event-color-2 { border-left-color: #4ade80; }
.calendar-event-item.calendar-event-color-3 { border-left-color: #f59e0b; }
.calendar-event-item.calendar-event-color-4 { border-left-color: #f472b6; }
.calendar-event-item.calendar-event-color-5 { border-left-color: #22d3ee; }
.calendar-event-item.calendar-event-color-6 { border-left-color: #fbbf24; }
.calendar-event-item.calendar-event-color-7 { border-left-color: #c084fc; }

.calendar-event-item:last-child {
  border-bottom: none;
}

.calendar-event-top-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.calendar-event-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calendar-event-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
}

.calendar-event-badge-0 { background: #a78bfa; }
.calendar-event-badge-1 { background: #60a5fa; }
.calendar-event-badge-2 { background: #4ade80; }
.calendar-event-badge-3 { background: #f59e0b; }
.calendar-event-badge-4 { background: #f472b6; }
.calendar-event-badge-5 { background: #22d3ee; }
.calendar-event-badge-6 { background: #fbbf24; }
.calendar-event-badge-7 { background: #c084fc; }

.calendar-event-title {
  color: var(--text);
}

.calendar-events-loading,
.calendar-events-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
}

.calendar-signout-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.calendar-signout-btn:hover {
  background: rgba(80, 80, 100, 0.4);
  color: var(--text);
}

.calendar-events-error {
  margin-bottom: 0.75rem;
}

.calendar-error-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}

.calendar-signin-again-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(50, 50, 60, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.calendar-signin-again-btn:hover {
  background: rgba(70, 70, 85, 0.9);
  border-color: var(--accent-berlin);
}

/* To-do list */
.todo-section {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-top: 3px solid var(--accent-london);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.todo-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.todo-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.todo-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(30, 30, 40, 0.9);
  color: var(--text);
}

.todo-input::placeholder {
  color: var(--text-muted);
}

.todo-add {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--accent-london);
  color: #0f0f14;
  cursor: pointer;
  flex-shrink: 0;
}

.todo-add:hover {
  filter: brightness(1.1);
}

.todo-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  cursor: grab;
  transition: background 0.15s;
}

.todo-item:hover {
  background: rgba(60, 60, 75, 0.5);
}

.todo-item:active {
  cursor: grabbing;
}

.todo-item-done .todo-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-drag-handle {
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
}

.todo-check {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  accent-color: var(--accent-london);
}

.todo-label {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.todo-dragging {
  opacity: 0.5;
  background: rgba(60, 60, 75, 0.5);
}

.todo-drop-target {
  background: rgba(96, 165, 250, 0.15);
  outline: 1px dashed var(--accent-london);
}

.todo-clear-done {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.todo-clear-done:hover {
  background: rgba(80, 80, 100, 0.4);
  color: var(--text);
}

/* Sticky notes */
.sticky-notes-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.sticky-notes-container > * {
  pointer-events: auto;
}

.sticky-note {
  position: absolute;
  min-width: 160px;
  min-height: 120px;
  width: 220px;
  height: 180px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: visible;
  font-family: 'Outfit', sans-serif;
}

.sticky-note-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  cursor: move;
  user-select: none;
  flex-shrink: 0;
  min-height: 32px;
  position: relative;
}

.sticky-note-drag-hint {
  flex: 1;
  font-size: 11px;
  opacity: 0.7;
}

.sticky-note-color-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: currentColor;
}

.sticky-note-color-btn:focus {
  outline: 2px solid var(--text-muted);
  outline-offset: 1px;
}

.sticky-note-delete {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticky-note-delete:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.sticky-note-body {
  flex: 1;
  padding: 8px 10px 10px;
  min-height: 60px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}

.sticky-note-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.15) 50%);
  border-radius: 0 0 4px 0;
}

.sticky-note-resize-handle::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 0 0 2px 0;
}

.sticky-note-text {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.85);
}

.sticky-note-text::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.sticky-note-text:focus {
  outline: none;
}

/* Material-like light colors */
.sticky-note.sticky-note-red {
  background: #ffcdd2;
}

.sticky-note.sticky-note-blue {
  background: #bbdefb;
}

.sticky-note.sticky-note-green {
  background: #c8e6c9;
}

.sticky-note.sticky-note-gray {
  background: #e0e0e0;
}

.sticky-note.sticky-note-yellow {
  background: #fff9c4;
}

.sticky-note.sticky-note-white {
  background: #ffffff;
}

.sticky-note-color-picker {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  padding: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 20;
  pointer-events: auto;
}

.sticky-note-color-picker button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.sticky-note-color-picker button:hover {
  transform: scale(1.1);
}

.sticky-note-color-picker button[data-color="red"] { background: #ffcdd2; }
.sticky-note-color-picker button[data-color="blue"] { background: #bbdefb; }
.sticky-note-color-picker button[data-color="green"] { background: #c8e6c9; }
.sticky-note-color-picker button[data-color="gray"] { background: #e0e0e0; }
.sticky-note-color-picker button[data-color="yellow"] { background: #fff9c4; }
.sticky-note-color-picker button[data-color="white"] { background: #ffffff; }

.add-sticky-note-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 11;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.add-sticky-note-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Config visibility */
[data-config-block].config-hidden,
.config-notes-wrap.config-hidden,
.calendar-auth.config-hidden,
.calendar-events-loading.config-hidden {
  display: none !important;
}

.config-notes-wrap.widget-draggable {
  min-width: 200px;
}

/* Config button */
.config-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 12;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.config-btn:hover {
  color: var(--text);
  background: rgba(50, 50, 65, 0.98);
  transform: scale(1.05);
}

.config-icon {
  width: 22px;
  height: 22px;
}

/* Config modal */
.config-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.config-overlay.open {
  opacity: 1;
  visibility: visible;
}

.config-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

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

.config-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.config-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}

.config-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.config-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.config-modal-close:hover {
  background: rgba(80, 80, 100, 0.3);
  color: var(--text);
}

.config-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.config-section {
  border: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
}

.config-section .config-legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0;
}

.config-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.config-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent-kyiv);
  cursor: pointer;
}

.config-cities-section .config-legend {
  margin-bottom: 0.5rem;
}

.config-cities-list {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.config-city-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-radius: 8px;
  margin-bottom: 2px;
}

.config-city-item:hover {
  background: rgba(80, 80, 100, 0.2);
}

.config-city-name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.config-city-order-btn,
.config-city-remove-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.config-city-order-btn:hover:not(:disabled),
.config-city-remove-btn:hover {
  background: rgba(80, 80, 100, 0.4);
  color: var(--text);
}

.config-city-order-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.config-add-city {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.config-city-autocomplete {
  flex: 1;
  min-width: 0;
  position: relative;
}

.config-add-city .city-input {
  width: 100%;
}

.config-city-suggestions {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.config-city-suggestions.open {
  display: block;
}

.config-add-city-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--accent-kyiv);
  color: #0f0f14;
  cursor: pointer;
  flex-shrink: 0;
}

.config-add-city-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.config-calendar-section .config-legend {
  margin-bottom: 0.5rem;
}

.config-calendar-signed-in {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
}

.config-calendar-signout-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.config-calendar-signout-btn:hover {
  background: rgba(80, 80, 100, 0.4);
  color: var(--text);
}

.config-calendar-list-wrap {
  margin-top: 1rem;
}

.config-calendar-list-legend,
.config-calendar-list-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}

.config-calendar-list-loading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.config-calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.config-calendar-list-item {
  margin-bottom: 0.35rem;
}

.config-calendar-list-item .config-checkbox-label {
  margin-bottom: 0;
}

.config-calendar-name {
  font-size: 0.9rem;
  color: var(--text);
}
