/* Mobile-first responsive layout */
:root {
  --topbar-height: 3.2em;
  --body-width: calc(100% - 1rem);
  --root-margin: 0;
  --root-padding: 0.5rem;
  --todo-font-size: 1.8rem;
  font-family: "Recursive", "system-ui", Avenir, Helvetica, Arial, sans-serif;
}

/* Tablet and up */
@media (min-width: 768px) {
  :root {
    --body-width: calc(100% - 2rem);
    --root-padding: 1rem;
    --todo-font-size: 1.5rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  :root {
    --body-width: 50rem;
    --root-margin: 0 auto;
    --root-padding: 0rem;
    --todo-font-size: 1.3rem;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

*, * + * {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: black;
  background-color: #f2f2f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: -1 auto;
  min-height: 100vh;
}

#root {
  width: 100%;
  min-width: 320px;
  margin: 0 auto;
  padding-left: var(--root-padding);
  padding-right: var(--root-padding);
  background-color: #f2f2f2;
}

#app {
  width: var(--body-width);
  margin: var(--root-margin);
  padding: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  #app {
    padding: 1.5rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  #app {
    padding: 2rem;
  }
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
  text-align: center;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Top Navigation - Mobile First */
#topnav {
  background-color: #333;
  padding: 0.75rem;
  color: white;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #ffffff;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Tablet and up */
@media (min-width: 768px) {
  #topnav {
    padding: 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
  }
  
  #topbar {
    gap: 1rem;
    flex-wrap: nowrap;
    width: auto;
  }
}

/* Login form styling - Mobile First */
#topbar form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

#topbar input {
  padding: 0.6rem;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  background-color: white;
  color: #333;
  min-width: 100px;
  flex: 1;
  min-width: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  #topbar form {
    flex-wrap: nowrap;
    width: auto;
  }
  
  #topbar input {
    padding: 0.75rem;
    font-size: 1rem;
    min-width: 120px;
    flex: 0 0 auto;
  }
}

#topbar input:focus {
  outline: none;
  border-color: #646cff;
  box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.1);
}

#topbar input::placeholder {
  color: #999;
}

#topbar button {
  padding: 0.75rem 1rem;
  background-color: #646cff;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#topbar button:hover {
  background-color: #535bf2;
}

#topbar button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #646cff;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.tag-config-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.tag-config-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Date History - Mobile First */
.date-history {
  margin-bottom: 1rem;
  overflow: hidden;
}

.date-history-scroll {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

/* Tablet and up */
@media (min-width: 768px) {
  .date-history {
    margin-bottom: 1.5rem;
  }
  
  .date-history-scroll {
    gap: 1rem;
    padding-right: 0.5rem;
  }
}

.date-history-scroll::-webkit-scrollbar {
  display: none;
}

.month-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  margin-right: 0.5rem;
  font-weight: 500;
  align-self: flex-start;
}

.month-label.first-month {
  margin-left: 0;
}

.date-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: 2px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-circle:hover {
  background-color: #e5e5e5;
  transform: scale(1.1);
}

.date-circle.today {
  background-color: #4ade80;
  border-color: #22c55e;
  color: black;
  font-weight: 600;
  transform: scale(1.1);
}

.date-circle.has-completed {
  background-color: #646cff;
  border-color: #535bf2;
  color: white;
}

.date-circle.has-todos {
  background-color: #646cff;
  border-color: #535bf2;
  color: white;
}

.date-circle.has-todos.today {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  border-color: #16a34a;
}

.date-circle.selected {
  background-color: #3b82f6;
  border-color: #1d4ed8;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.date-circle.selected.today {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  border-color: #1e40af;
}

.date-circle.selected:hover {
  transform: scale(1.15);
}

.date-number {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.completion-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #f97316;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flame-icon {
  font-size: 0.5rem;
}

/* Todo Controls - Mobile First */
.todo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.count-badges {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Tablet and up */
@media (min-width: 768px) {
  .todo-controls {
    flex-wrap: nowrap;
    gap: 1rem;
  }
  
  .count-badges {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
}

.count-badges button:focus {
  outline: none;
}

.todo-count {
  background-color: orange;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.todo-count:hover {
  opacity: 0.9;
  border-color: orange;
}

.todo-count.active {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.archived-count {
  background-color: #888;
  color: white;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.archived-count:hover {
  border-color: #888;
}

.archived-count.active {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(136, 136, 136, 0.3);
}

.today-completed {
  background-color: #4ade80;
  color: black;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.today-completed:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.today-completed.active {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.burning-badge {
  background: linear-gradient(135deg, #ff4500 0%, #ff6b00 50%, #ff4500 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 5px rgba(255, 165, 0, 0.5);
  }
  to {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 165, 0, 0.8), 0 0 15px rgba(255, 100, 0, 0.6);
  }
}

.date-filter-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.clear-date-filter {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-date-filter:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Todo Filters - Mobile First */
.todo-filters {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-input {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

/* Tablet and up */
@media (min-width: 768px) {
  .todo-filters {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
  
  .search-input {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

.search-input:focus {
  outline: none;
  border-color: #646cff;
  box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.1);
}

.tag-filter, .schedule-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tag-filter-label, .schedule-filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  margin-right: 0.5rem;
}

.tag-filter-btn, .schedule-filter-btn {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: 2px solid #e5e5e5;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.tag-filter-btn:hover, .schedule-filter-btn:hover {
  background-color: #e5e5e5;
}

.tag-filter-btn.active, .schedule-filter-btn.active {
  background-color: #646cff;
  border-color: #535bf2;
  color: white;
}

.clear-tags-btn, .clear-schedule-filter-btn {
  padding: 0.5rem 1rem;
  background-color: #f87171;
  border: 2px solid #ef4444;
  color: white;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.clear-tags-btn:hover, .clear-schedule-filter-btn:hover {
  background-color: #ef4444;
}

/* Add Todo - Mobile First */
.add-todo {
  margin-bottom: 1rem;
}

.add-todo-main {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.add-todo input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

/* Tablet and up */
@media (min-width: 768px) {
  .add-todo {
    margin-bottom: 1.5rem;
  }
  
  .add-todo-main {
    flex-wrap: nowrap;
  }
  
  .add-todo input {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

.add-todo input:focus {
  outline: none;
  border-color: #646cff;
  box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.1);
}

.add-todo-actions {
  display: flex;
  gap: 0.5rem;
}

.schedule-todo-btn {
  padding: 0.75rem;
  background-color: #f5f5f5;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

.schedule-todo-btn:hover {
  background-color: #e5e5e5;
}

.add-todo button:last-child {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #4ade80 0%, #6ee7b7 50%, #4ade80 100%);
  border: 2px solid #22c55e;
  color: black;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.add-todo-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.schedule-preview {
  color: #0369a1;
  font-size: 0.875rem;
  font-weight: 500;
}

.clear-schedule {
  background: none;
  border: none;
  color: #0369a1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  font-size: 1rem;
}

.clear-schedule:hover {
  background-color: rgba(3, 105, 161, 0.1);
}

/* Todo Items */
ul.todos {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--todo-font-size);
  width: 100%;
}

ul.todos li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.2rem;
  width: 100%;
}

ul.todos li:nth-child(odd) {
  background-color: #eee;
}

.todo-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  background-color: var(--todo-bg, transparent);
  transition: background-color 0.2s ease;
}

.todo-item:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

.todo-item-starred {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  border: 2px solid #ffc107;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
  position: relative;
}

.todo-item-completed-today {
  background: linear-gradient(135deg, #4ade80 0%, #6ee7b7 50%, #4ade80 100%);
  border: 2px solid #22c55e;
  box-shadow: 0 4px 8px rgba(74, 222, 128, 0.3);
}

.todo-item-timer-active {
  border-left: 4px solid #f97316;
  background: linear-gradient(90deg, #fed7aa 0%, transparent 100%);
}

.drag-handle {
  cursor: grab !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  color: #666 !important;
  user-select: none !important;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.todo-item:hover .drag-handle {
  opacity: 1;
  color: #3b82f6;
}

.drag-handle:active {
  cursor: grabbing !important;
}

/* Drag and drop states */
.todo-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.todo-item[draggable="true"] {
  cursor: grab;
}

.todo-item[draggable="true"]:active {
  cursor: grabbing;
}

/* Simple, direct drop target styling */
li.todo-item.drag-hover {
  background-color: rgba(59, 130, 246, 0.1) !important;
  border-left: 4px solid #3b82f6 !important;
}

li.todo-item.drag-insert-above {
  border-top: 4px solid #3b82f6 !important;
  box-shadow: 0 -2px 8px rgba(59, 130, 246, 0.3) !important;
}

li.todo-item.drag-insert-below {
  border-bottom: 4px solid #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

li.todo-item.dragging {
  opacity: 0.5 !important;
  transform: rotate(2deg) scale(1.02) !important;
  z-index: 1000 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Drop zone visual feedback */
ul.todos {
  min-height: 100px;
  position: relative;
}

.todo-text {
  flex: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.todo-text:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

.todo-edit-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 2px solid #646cff;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: inherit;
  font-family: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.todo-edit-input:focus {
  outline: none;
  border-color: #535bf2;
  box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.2);
}

.todo-url {
  position: relative;
  color: #646cff;
  text-decoration: none;
}

.todo-url::before {
  content: "🌍";
  margin-right: 4px;
  font-size: 0.9em;
}

.todo-url::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.2em;
  right: 0;
  height: 1px;
  background-color: currentColor;
}

.todo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.todo-tag {
  background-color: #e5e7eb;
  color: #374151;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.todo-schedule {
  margin-left: 0.5rem;
}

.schedule-badge {
  background-color: #dbeafe;
  border: 1px solid #3b82f6;
  color: #1d4ed8;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.schedule-badge.overdue {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

.todo-pomodoros {
  display: flex;
  gap: 0.125rem;
  margin-left: 0.5rem;
}

.completed-pomodoro {
  font-size: 0.875rem;
}

.pomodoro-section {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pomodoro-btn {
  background-color: #f5f5f5;
  border: 2px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.pomodoro-btn:hover {
  background-color: #e5e5e5;
}

.pomodoro-btn.active {
  background-color: #f97316;
  border-color: #ea580c;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.pomodoro-active {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f97316;
  border: 2px solid #ea580c;
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: white;
}

.pomodoro-timer {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  min-width: 3rem;
  text-align: center;
}

.pomodoro-timer.paused {
  opacity: 0.6;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 50% { opacity: 0.6; }
  51%, 100% { opacity: 1; }
}

.pomodoro-controls {
  display: flex;
  gap: 0.25rem;
}

.pomodoro-pause-btn,
.pomodoro-stop-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  color: white;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.125rem 0.25rem;
  transition: all 0.2s ease;
}

.pomodoro-pause-btn:hover,
.pomodoro-stop-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.todo-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.todo-star:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.todo-actions {
  position: absolute;
  top: -8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.todo-item:hover .todo-actions {
  opacity: 1;
  visibility: visible;
}

.todo-actions button {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  transition: background-color 0.2s ease;
  color: #333;
}

.todo-actions button:hover {
  background-color: #e5e5e5;
}

.archive-btn {
  background-color: #ff9500 !important;
  color: white !important;
  border: none !important;
}

.archive-btn:hover {
  background-color: #e68900 !important;
}

.schedule-btn {
  background-color: #3b82f6 !important;
  color: white !important;
  border: none !important;
}

.schedule-btn:hover {
  background-color: #2563eb !important;
}

.delete {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
}

.delete:hover {
  background-color: #dc2626 !important;
}

/* Date Scheduler Modal */
.date-scheduler-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.date-scheduler {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}

.date-scheduler h3 {
  margin: 0 0 1rem 0;
  text-align: center;
}

.date-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.date-options button {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-options button:hover {
  background-color: #646cff;
  border-color: #535bf2;
  color: white;
}

.date-scheduler input[type="date"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.date-scheduler-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.date-scheduler-actions button {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.date-scheduler-actions button:first-child {
  background-color: #f5f5f5;
  border: 2px solid #e5e5e5;
}

.date-scheduler-actions button:last-child {
  background-color: #ef4444;
  border: 2px solid #dc2626;
  color: white;
}

/* Tag Config Modal */
.tag-config-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.tag-config-modal {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
}

.tag-config-modal h2 {
  margin: 0 0 1rem 0;
  text-align: center;
}

.tag-config-modal button {
  padding: 0.75rem;
  background-color: #646cff;
  border: none;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  margin-top: 1rem;
}

.error-message {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Enhanced Date History Components */
.month-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.month-dates {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  max-width: 300px;
  justify-content: center;
}

.completion-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #dc2626;
  color: white;
  font-size: 0.6rem;
  font-weight: bold;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

/* Tag Configuration Modal */
.tag-config-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.tag-config-modal {
  background: white;
  border-radius: 8px;
  padding: 0;
  min-width: 360px;
  max-width: 90vw;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  background-color: #f8f9fa;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  color: #666;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background-color: #e5e5e5;
  color: #333;
}

.modal-content {
  padding: 12px 16px;
  max-height: 45vh;
  overflow-y: auto;
}

.description {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 0.85rem;
}

.tags-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-config-row {
  position: relative;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #fafafa;
  margin-bottom: 6px;
}

.tag-preview {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.tag-display {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #e5e5e5;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 4px;
}

.tag-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tag-text {
  font-size: 0.85rem;
}

.tag-icon {
  font-size: 0.9rem;
}

.icon-btn, .color-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover, .color-btn:hover {
  border-color: #999;
  background-color: #f5f5f5;
}

.icon-btn.active, .color-btn.active {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.color-btn {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.no-icon {
  color: #999;
}

/* Icon and Color Pickers */
.icon-picker, .color-picker {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 4px;
}

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

.icon-option, .color-option {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-option:hover, .color-option:hover {
  border-color: #999;
  background-color: #f5f5f5;
}

.icon-option.selected, .color-option.selected {
  border-color: #3b82f6;
  background-color: #eff6ff;
  box-shadow: 0 0 0 1px #3b82f6;
}

.color-option {
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
}

.remove-color {
  background: #f8f8f8 !important;
  color: #666;
  font-size: 0.8rem;
}

.remove-color:hover {
  background: #eee !important;
}

/* Modal Footer */
.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
  background-color: #f8f9fa;
  display: flex;
  justify-content: flex-end;
}

.done-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.done-btn:hover {
  background: #2563eb;
}

.no-tags {
  text-align: center;
  color: #666;
  padding: 24px 0;
}

.no-tags p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

/* SortableJS Drag and Drop Support */
.sortable-ghost {
  opacity: 0.4;
  background-color: #e3f2fd;
  border: 2px dashed #2196f3;
  border-radius: 8px;
}

.sortable-chosen {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.sortable-drag {
  opacity: 0.8;
  transform: rotate(3deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Legacy drag clone styles for custom implementation */
.drag-clone {
  pointer-events: none;
  opacity: 0.8;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
  transition: none;
  /* Performance optimizations for smooth dragging */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

/* Touch feedback for drag items */
.todo-item,
.kanban-todo-item,
.matrix-todo-item {
  touch-action: pan-y; /* Allow vertical scrolling but enable horizontal gestures */
  position: relative;
  overflow: hidden;
}

/* Swipe to delete styles */
.todo-item-swiping {
  cursor: grabbing;
}

.swipe-delete-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  gap: 8px;
  z-index: -1;
  color: white;
  font-weight: bold;
}

.swipe-delete-background .delete-icon {
  font-size: 1.5rem;
}

.swipe-delete-background .delete-text {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced drag indicators */
.drag-insert-above::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  z-index: 10;
}

.drag-insert-below::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  z-index: 10;
}

.drag-hover {
  background-color: rgba(59, 130, 246, 0.1);
  border: 2px dashed #3b82f6;
}
  font-style: italic;
  font-size: 0.8rem;
  margin: 0 8px;
}

.configure-btn {
  background: #646cff;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  min-width: 18px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.configure-btn:hover {
  background: #535bf2;
}

.configure-btn.active {
  background: #f59e0b;
}

.icon-picker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.icon-option {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.icon-option:hover {
  border-color: #646cff;
  background-color: #f0f0ff;
}

.icon-option.selected {
  border-color: #646cff;
  background-color: #646cff;
  color: white;
}

.icon-option.remove-icon {
  background-color: #fee2e2;
  border-color: #fecaca;
}

.icon-option.remove-icon:hover {
  background-color: #fca5a5;
  border-color: #f87171;
}

.icon-option.remove-icon.selected {
  background-color: #dc2626;
  border-color: #b91c1c;
}

.modal-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.clear-all-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.clear-all-btn:hover {
  background: #dc2626;
}

.no-tags {
  text-align: center;
  padding: 40px 20px;
}

.no-tags p {
  color: #666;
  margin: 0 0 12px 0;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #e5e5e5;
  background-color: #f8f9fa;
  display: flex;
  justify-content: flex-end;
}

.primary-btn {
  background: #646cff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: #535bf2;
}

/* Enhanced Tag Display with Icons */
.todo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #e5e7eb;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 4px;
  margin-bottom: 2px;
}

.tag-icon {
  font-size: 0.8rem;
}

.tag-text {
  font-size: 0.75rem;
}

/* Routing & Landing Page Styles */
.home-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Beta Notification */
.beta-notification {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 20px rgba(245, 158, 11, 0.3);
  }
}

.beta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  flex-wrap: wrap;
}

.beta-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.beta-message {
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.beta-info {
  font-size: 1.25rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Responsive Beta Notification - Mobile First */
.beta-content {
  flex-direction: column;
  gap: 0.5rem;
}

.beta-message {
  font-size: 0.875rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .beta-content {
    flex-direction: row;
    gap: 1rem;
  }
  
  .beta-message {
    font-size: 0.95rem;
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: black;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.features {
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  opacity: 0.9;
  line-height: 1.6;
}

footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  text-align: center;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* App Layout - Mobile First */
.app-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Unregistered User Notice */
.unregistered-notice {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 2px solid #0ea5e9;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  overflow: hidden;
}

.notice-content {
  padding: 1.5rem;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.notice-icon {
  font-size: 1.5rem;
}

.notice-header h3 {
  color: #0369a1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.notice-body {
  margin-bottom: 1.5rem;
}

.notice-body > p {
  color: #0c4a6e;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-list, .pro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.feature-list li, .pro-list li {
  color: #0c4a6e;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pro-features {
  background: rgba(14, 165, 233, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid #0ea5e9;
}

.pro-header {
  color: #0369a1;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.notice-footer {
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.registration-info {
  color: #0369a1;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
}

.dismiss-notice {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dismiss-notice:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

/* Responsive Unregistered Notice - Mobile First */
.unregistered-notice {
  margin-bottom: 1rem;
}

.notice-content {
  padding: 1rem;
}

.feature-list, .pro-list {
  grid-template-columns: 1fr;
}

.notice-footer {
  flex-direction: column;
  text-align: center;
}

.registration-info {
  text-align: center;
}

/* Tablet and up */
@media (min-width: 768px) {
  .unregistered-notice {
    margin-bottom: 2rem;
  }
  
  .notice-content {
    padding: 1.5rem;
  }
  
  .feature-list, .pro-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .notice-footer {
    flex-direction: row;
    text-align: left;
  }
  
  .registration-info {
    text-align: left;
  }
}

.app-nav {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .app-nav {
    padding: 1rem 1.5rem;
  }
  
  .nav-content {
    flex-wrap: nowrap;
    gap: 1rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .app-nav {
    padding: 1rem 2rem;
  }
}

.nav-brand a {
  color: #646cff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-brand a:hover {
  color: #535bf2;
}

.app-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .app-content {
    padding: 1.5rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .app-content {
    padding: 2rem;
  }
}

/* Not Found Page */
.not-found {
  text-align: center;
  padding: 4rem 2rem;
}

.not-found h1 {
  font-size: 3rem;
  color: #646cff;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.not-found a {
  color: #646cff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.not-found a:hover {
  color: #535bf2;
}

/* Mobile-first responsive design - specific overrides for smaller screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .features h2 {
    font-size: 1.75rem;
  }
  
  .app-nav {
    padding: 0.5rem;
  }
  
  .app-content {
    padding: 0.5rem;
  }
  
  .nav-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================
   IMPROVED HOMEPAGE STYLES
   ============================================ */

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-emoji {
  font-size: 1.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #667eea;
}

.btn-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.badge-subtext {
  opacity: 0.8;
  font-weight: 400;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #1a202c;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a5568;
  font-weight: 500;
}

.feature-icon {
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.hero-note {
  color: #718096;
  font-size: 0.875rem;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-todo-app {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 300px;
}

.demo-header {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.demo-todo {
  padding: 0.75rem 0;
  color: #2d3748;
  border-bottom: 1px solid #f7fafc;
  font-family: 'Recursive', system-ui;
}

.demo-todo:last-child {
  border-bottom: none;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: white;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.feature-description {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-demo {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: 'Recursive', monospace;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: #f8fafc;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.pricing-header {
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border: 2px solid #667eea;
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card.coming-soon {
  opacity: 0.85;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: #718096;
}

.pricing-card p {
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.features-list li {
  padding: 0.5rem 0;
  color: #4a5568;
  text-align: left;
}

.btn-disabled {
  background: #e2e8f0;
  color: #a0aec0;
  border: none;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: not-allowed;
  align-self: flex-start;
  width: 100%;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Social Proof */
.social-proof {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.social-proof-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.social-proof-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.social-proof-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  opacity: 0.8;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: #f8fafc;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #667eea;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #1a202c;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-title {
  color: #718096;
  font-size: 0.9rem;
}

/* Testimonials Responsive Design - Mobile First */
.testimonials-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .testimonial-text {
    font-size: 1.1rem;
  }
  
  .author-avatar {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* ============================================
   EISENHOWER MATRIX STYLES
   ============================================ */

.eisenhower-matrix-section {
  margin: 1.5rem 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.matrix-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.matrix-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.matrix-header p {
  margin: 0.25rem 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.matrix-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.matrix-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.matrix-container {
  padding: 2rem;
}

.eisenhower-matrix {
  position: relative;
  width: 100%;
  height: 500px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

/* Grid lines */
.grid-line {
  position: absolute;
  background: #cbd5e0;
  z-index: 1;
}

.grid-line.vertical {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.grid-line.horizontal {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

/* Quadrant labels */
.quadrant-label {
  position: absolute;
  text-align: center;
  z-index: 2;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 2px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quadrant-label.top-right {
  top: 1rem;
  right: 1rem;
  border-color: #ff6b6b;
  color: #c53030;
}

.quadrant-label.top-left {
  top: 1rem;
  left: 1rem;
  border-color: #4ecdc4;
  color: #2c7a7b;
}

.quadrant-label.bottom-right {
  bottom: 1rem;
  right: 1rem;
  border-color: #45b7d1;
  color: #2b6cb0;
}

.quadrant-label.bottom-left {
  bottom: 1rem;
  left: 1rem;
  border-color: #96ceb4;
  color: #38a169;
}

.quadrant-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.quadrant-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.quadrant-description {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Axis labels */
.axis-label {
  position: absolute;
  font-weight: 600;
  font-size: 1rem;
  color: #4a5568;
  z-index: 2;
}

.importance-label {
  bottom: 10px;
  right: 10px;
}

.urgency-label {
  top: 10px;
  left: 10px;
}

.not-important-label {
  bottom: 10px;
  left: 10px;
}

.not-urgent-label {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Todo items in matrix */
.matrix-todo-item {
  position: absolute;
  background: #4299e1;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: grab;
  z-index: 10;
  transform: translate(-50%, 50%);
  max-width: 150px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.matrix-todo-item:hover {
  transform: translate(-50%, 50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.matrix-todo-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design for Matrix */
@media (max-width: 768px) {
  .matrix-container {
    padding: 1rem;
  }
  
  .eisenhower-matrix {
    height: 400px;
  }
  
  .matrix-header {
    flex-direction: column;
    text-align: center;
  }
  
  .quadrant-label {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .quadrant-icon {
    font-size: 1.2rem;
  }
  
  .quadrant-title {
    font-size: 0.8rem;
  }
  
  .quadrant-description {
    font-size: 0.7rem;
  }
  
  .matrix-todo-item {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    max-width: 120px;
  }
  
  .axis-label {
    font-size: 0.8rem;
  }
}

/* ============================================
   KANBAN BOARD STYLES
   ============================================ */

.kanban-section {
  margin: 1.5rem 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.kanban-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.kanban-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.kanban-header p {
  margin: 0.25rem 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.kanban-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.kanban-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.kanban-container {
  padding: 2rem;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 500px;
}

.kanban-column {
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.kanban-column:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kanban-column-header {
  padding: 1rem;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-column-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.kanban-column-count {
  background: #4ecdc4;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.kanban-column-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.kanban-todo-item {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kanban-todo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #cbd5e0;
}

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

.kanban-todo-item.dragging {
  opacity: 0.5;
  transform: rotate(5deg) scale(1.05);
  z-index: 1000;
}

.kanban-todo-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kanban-todo-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.kanban-todo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.kanban-tag {
  background: #e2e8f0;
  color: #4a5568;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.kanban-schedule {
  display: flex;
  align-items: center;
}

.kanban-schedule-badge {
  background: #bee3f8;
  color: #2b6cb0;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.kanban-schedule-badge.overdue {
  background: #fed7d7;
  color: #c53030;
  font-weight: 600;
}

.kanban-star {
  font-size: 1rem;
  align-self: flex-start;
}

.kanban-pomodoros {
  display: flex;
  gap: 0.125rem;
}

.kanban-pomodoro {
  font-size: 0.8rem;
}

.kanban-completed {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.kanban-completed small {
  color: #718096;
  font-size: 0.7rem;
}

.kanban-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: #a0aec0;
  text-align: center;
}

.kanban-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.kanban-empty-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Drag and drop visual feedback for Kanban */
.kanban-column.drag-over {
  border-color: #4ecdc4;
  background-color: #f0fdfa;
  transform: scale(1.02);
}

.kanban-column.drag-over .kanban-column-header {
  background-color: #e6fffa;
}

/* Different column themes */
.kanban-column:nth-child(1) .kanban-column-count {
  background: #4299e1;
}

.kanban-column:nth-child(2) .kanban-column-count {
  background: #48bb78;
}

.kanban-column:nth-child(3) .kanban-column-count {
  background: #ed8936;
}

/* Responsive Design for Kanban */
@media (max-width: 768px) {
  .kanban-container {
    padding: 1rem;
  }
  
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
  }
  
  .kanban-column {
    min-height: 300px;
  }
  
  .kanban-header {
    flex-direction: column;
    text-align: center;
  }
  
  .kanban-todo-item {
    padding: 0.75rem;
  }
  
  .kanban-todo-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .kanban-container {
    padding: 0.5rem;
  }
  
  .kanban-column-header {
    padding: 0.75rem;
  }
  
  .kanban-column-content {
    padding: 0.75rem;
  }
  
  .kanban-todo-item {
    padding: 0.5rem;
  }
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: #f8fafc;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-note {
  color: #718096;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: #1a202c;
  color: white;
  padding: 4rem 0 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #a0aec0;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-column a {
  color: #a0aec0;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #a0aec0;
  margin: 0;
}

/* Homepage Responsive Design - Mobile First */
.header-container {
  padding: 0 1rem;
}

.header-nav {
  gap: 1rem;
}

.nav-link {
  display: none;
}

.hero-container {
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
}

.hero-features {
  justify-content: center;
  gap: 1rem;
}

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

.pricing-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pricing-card.popular {
  transform: none;
}

.pricing-card.popular:hover {
  transform: translateY(-4px);
}

.social-proof-stats {
  gap: 2rem;
}

.footer-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-links {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  .header-container {
    padding: 0 2rem;
  }
  
  .header-nav {
    gap: 2rem;
  }
  
  .nav-link {
    display: block;
  }
  
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-features {
    justify-content: flex-start;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
  
  .pricing-card.popular {
    transform: scale(1.05);
  }
  
  .pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
  }
  
  .social-proof-stats {
    gap: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  /* Ensure proper page margins and layout */
  @page {
    margin: 0.75in !important;
    size: letter !important;
  }

  /* Reset everything for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Hide all non-essential elements */
  #topnav,
  .app-nav,
  .beta-notification,
  .header,
  .footer,
  .add-todo,
  .todo-controls,
  .todo-filters,
  .date-history,
  .tag-config-modal,
  .date-scheduler-overlay,
  .unregistered-notice,
  .hero,
  .features,
  .pricing,
  .social-proof,
  .cta,
  .todo-actions,
  .pomodoro-section,
  .drag-handle,
  .user-avatar,
  .tag-config-btn,
  .notice-content,
  .nav-content,
  button:not([class*="status-"]) {
    display: none !important;
  }

  /* Page layout */
  html, body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
    font-family: "Times New Roman", Times, serif !important;
    background: white !important;
    color: black !important;
  }

  /* Remove duplicate headers */
  body::before,
  .app-page::before {
    display: none !important;
  }

  /* Main container */
  #root, #app, .app-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  /* Remove header for clean print */
  ul.todos::before {
    display: none !important;
  }

  /* Todo list container */
  ul.todos {
    width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
  }

  /* Individual todo items */
  ul.todos li {
    display: flex !important;
    align-items: center !important;
    padding: 0.12in 0 !important;
    margin: 0 !important;
    border-bottom: 0.5pt solid #ddd !important;
    background: white !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    gap: 0.15in !important;
  }

  ul.todos li:last-child {
    border-bottom: none !important;
  }

  ul.todos li:nth-child(odd) {
    background: white !important;
  }

  /* Todo item container */
  .todo-item {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
    border: none !important;
    gap: 0.15in !important;
  }

  /* Clean checkbox styling */
  .todo-item button[class*="status-"] {
    width: 0.18in !important;
    height: 0.18in !important;
    border: 1.5pt solid black !important;
    background: white !important;
    color: transparent !important;
    font-size: 0 !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: default !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
  }

  .todo-item button.status-done {
    color: black !important;
  }

  .todo-item button.status-done::after {
    content: "✓" !important;
    font-size: 9pt !important;
    font-weight: bold !important;
    color: black !important;
    text-indent: 0 !important;
  }

  .todo-item button.status-pending::after,
  .todo-item button.status-pending::before {
    content: "" !important;
    display: none !important;
  }

  .todo-item button.status-archived {
    color: black !important;
  }

  .todo-item button.status-archived::after {
    content: "A" !important;
    font-size: 8pt !important;
    font-weight: bold !important;
    color: black !important;
    text-indent: 0 !important;
  }

  /* Todo text styling */
  .todo-text {
    flex: 1 !important;
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: black !important;
    background: white !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default !important;
  }

  .todo-text[style*="line-through"] {
    text-decoration: line-through !important;
  }

  /* URL styling */
  .todo-url {
    color: black !important;
    text-decoration: underline !important;
    background: white !important;
  }

  .todo-url::before {
    content: "" !important;
  }

  .todo-url::after {
    content: " (" attr(href) ")" !important;
    font-size: 9pt !important;
    color: #666 !important;
    font-style: italic !important;
  }

  /* Clean tag styling */
  .todo-tags {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 0.1in !important;
    margin-left: 0.2in !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .todo-tag {
    background: white !important;
    color: #666 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 10pt !important;
    font-style: italic !important;
    border-radius: 0 !important;
    display: inline-block !important;
    margin: 0 !important;
  }

  .tag-icon {
    display: none !important;
  }

  .tag-text::before {
    content: "#" !important;
  }

  /* Schedule badges */
  .todo-schedule {
    margin-left: 0.2in !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .schedule-badge {
    background: white !important;
    color: #666 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 10pt !important;
    font-style: italic !important;
    border-radius: 0 !important;
    font-weight: normal !important;
  }

  .schedule-badge::before {
    content: "Due: " !important;
  }

  .schedule-badge.overdue {
    color: black !important;
    font-weight: bold !important;
    font-style: italic !important;
  }

  .schedule-badge.overdue::before {
    content: "OVERDUE: " !important;
  }

  /* Star indicator */
  .todo-item-starred .todo-text::before {
    content: "★ " !important;
    font-size: 11pt !important;
    color: black !important;
    margin-right: 0.05in !important;
  }

  /* Completed today indicator */
  .todo-item-completed-today .todo-text::after {
    content: " (Today)" !important;
    font-size: 9pt !important;
    font-style: italic !important;
    color: #666 !important;
  }

  /* Pomodoro indicators */
  .todo-pomodoros {
    margin-left: 0.1in !important;
    flex-shrink: 0 !important;
    display: flex !important;
    gap: 0.02in !important;
  }

  .completed-pomodoro {
    font-size: 9pt !important;
    color: black !important;
  }

  .completed-pomodoro::after {
    content: "P" !important;
    border: 0.5pt solid black !important;
    border-radius: 50% !important;
    width: 0.12in !important;
    height: 0.12in !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 6pt !important;
    font-weight: bold !important;
  }

  /* Remove special styling effects */
  .todo-item-starred,
  .todo-item-completed-today,
  .todo-item-timer-active {
    background: white !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Hide remaining interactive elements */
  input, textarea, select,
  .pomodoro-btn,
  .archive-btn,
  .delete,
  .schedule-btn,
  .todo-star {
    display: none !important;
  }
}

/* ============================================
   Legal Pages Styles
   ============================================ */

.legal-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.legal-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.legal-main {
  padding: 4rem 0;
  min-height: calc(100vh - 300px);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-content {
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  line-height: 1.7;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a202c;
  text-align: center;
}

.legal-updated {
  text-align: center;
  color: #718096;
  font-style: italic;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  margin-top: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.legal-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.legal-section p {
  margin-bottom: 1rem;
  color: #2d3748;
}

.legal-section ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.legal-section li::marker {
  color: #667eea;
}

.legal-footer {
  background: #1a202c;
  color: white;
  padding: 3rem 0 2rem 0;
  margin-top: auto;
}

.legal-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-footer .footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.legal-footer .footer-brand {
  display: flex;
  flex-direction: column;
}

.legal-footer .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-footer .footer-tagline {
  color: #a0aec0;
  margin: 0;
}

.legal-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-footer .footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.legal-footer .footer-column a {
  color: #a0aec0;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.legal-footer .footer-column a:hover {
  color: white;
}

.legal-footer .footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  text-align: center;
}

.legal-footer .footer-bottom p {
  color: #a0aec0;
  margin: 0;
}

/* Legal Pages Mobile Responsive */
@media (max-width: 768px) {
  .legal-container {
    padding: 0 1rem;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .legal-title {
    font-size: 2rem;
  }
  
  .legal-main {
    padding: 2rem 0;
  }
  
  .legal-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
