/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: #f0f4f8;
  color: #1f2937;
  position: relative;
  overflow-x: hidden;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
}
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }


/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.background-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: move 30s infinite alternate;
}
.blob1 { width: 450px; height: 450px; background: #a5b4fc; top: -100px; left: -150px; }
.blob2 { width: 550px; height: 550px; background: #c4b5fd; bottom: -150px; right: -200px; animation-delay: -8s; }
.blob3 { width: 350px; height: 350px; background: #fbcfe8; bottom: 50px; left: 100px; animation-delay: -15s; }

@keyframes move {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(200px, 100px) rotate(270deg) scale(1.2); }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes checkmarkPop {
  0%   { transform: scale(0); }
  80%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.animate-checkmark-pop { animation: checkmarkPop 300ms ease-out; }

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.95); }
}
.animate-fade-out { animation: fadeOut 300ms ease-out forwards; }

@keyframes eraseOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-100%); }
}
.animate-erase-out { animation: eraseOut 400ms ease-in forwards; }

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.animate-shake { animation: shake 500ms ease-in-out; }

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}


/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.75rem 2rem;
  position: relative;
  z-index: 1;
}


/* ============================================================
   DATE / TIME DISPLAY
   ============================================================ */
.date-time-container {
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 500;
  width: 100%;
  max-width: 32rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.25);
}
#current-date, #current-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#current-date i, #current-time i { color: #6366f1; }

@media (min-width: 480px) {
  .date-time-container {
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
}
@media (min-width: 640px) {
  .date-time-container {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}


/* ============================================================
   CARD
   ============================================================ */
.todo-app-card {
  width: 100%;
  max-width: 32rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
}
@media (min-width: 480px) {
  .todo-app-card { padding: 1.5rem; }
}
@media (min-width: 640px) {
  .todo-app-card { padding: 2rem; border-radius: 1.25rem; }
  .app-container  { padding-top: 3rem; }
}


/* ============================================================
   HEADER
   ============================================================ */
.header { margin-bottom: 1.5rem; }
.header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}
.header-icon { margin-right: 0.6rem; color: #6366f1; }
.header-subtitle {
  font-family: 'Open Sans', sans-serif;
  color: #6b7280;
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

@media (min-width: 480px) {
  .header-title   { font-size: 2.25rem; }
  .header-subtitle { font-size: 0.875rem; }
}
@media (min-width: 640px) {
  .header-title { font-size: 2.75rem; }
}


/* ============================================================
   TODO INPUT FORM  (text + due date + add button)
   ============================================================ */
.todo-input-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
}

/* Text input — always flex: 1, shares top row with button on mobile */
.todo-input {
  font-family: 'Roboto', sans-serif;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.7rem 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 300ms, box-shadow 300ms;
  font-size: 0.875rem;
}
.todo-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #6366f1;
}
.todo-input--error { border-color: #ef4444; }
.todo-input--error:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #ef4444;
}

/* Due date wrap — full width on mobile (order: 3 pushes below), inline on desktop */
.due-date-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: border-color 300ms, box-shadow 300ms;
  order: 3;      /* below text + button on mobile */
  flex: 1 1 100%;/* full width on mobile */
  min-width: 0;
}
.due-date-wrap:focus-within {
  border-color: transparent;
  box-shadow: 0 0 0 2px #6366f1;
  background: #eef2ff;
}
.due-date-icon { color: #6366f1; font-size: 0.875rem; flex-shrink: 0; }

.due-date-field {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: #374151;
  cursor: pointer;
  background: transparent;
}
.due-date-field:focus { outline: none; }
/* Style the date input placeholder on browsers that support it */
.due-date-field::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}

/* Add button */
.add-todo-button {
  font-family: 'Poppins', sans-serif;
  order: 2;
  flex-shrink: 0;
  background-color: #6366f1;
  color: #fff;
  padding: 0.7rem 1.125rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 300ms, transform 150ms;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}
.add-todo-button:hover  { background-color: #4f46e5; transform: translateY(-1px); }
.add-todo-button:active { transform: scale(0.96); }
.add-todo-button:focus  { outline: none; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5); }

/* On larger screens, put due date between text and button */
@media (min-width: 540px) {
  .due-date-wrap {
    flex: 0 1 auto;
    order: 2;
    width: auto;
  }
  .add-todo-button { order: 3; }
}


/* ============================================================
   ACTIONS TOOLBAR  (clear completed / cancel)
   ============================================================ */
.actions-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.clear-completed-button {
  background-color: #f3f4f6;
  color: #4b5563;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 300ms;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.clear-completed-button:hover {
  background-color: #e5e7eb;
  color: #1f2937;
  border-color: #d1d5db;
}
.clear-completed-button .clear-button-text { display: none; }

.cancel-clear-button {
  background-color: #fef2f2;
  color: #ef4444;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 300ms;
  border: 1px solid #fecaca;
  flex-shrink: 0;
}
.cancel-clear-button:hover {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.cancel-clear-button .clear-button-text { display: none; }

@media (min-width: 480px) {
  .clear-completed-button { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
  .clear-completed-button .clear-button-text { display: inline; }
  .cancel-clear-button { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
  .cancel-clear-button .clear-button-text { display: inline; }
}


/* ============================================================
   SORT & FILTER BAR
   ============================================================ */
.sort-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: 'Oswald', sans-serif;
  position: relative;
  padding: 0.3rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: 1px solid #e5e7eb;
  transition: all 200ms;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.filter-tab:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}
.filter-tab--active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.filter-tab--active:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

/* Overdue badge inside the tab */
.overdue-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  animation: badgePulse 2s ease-in-out infinite;
}
.filter-tab--active .overdue-count-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #ef4444;
  animation: none;
}

.sort-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4b5563;
  background: #f9fafb;
  cursor: pointer;
  transition: all 200ms;
  appearance: auto;
  -webkit-appearance: auto;
}
.sort-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.sort-select:hover { background: #f3f4f6; border-color: #d1d5db; }

@media (min-width: 480px) {
  .filter-tab   { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
  .sort-select  { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
}


/* ============================================================
   TASK SUMMARY
   ============================================================ */
.task-summary {
  font-family: 'Raleway', sans-serif;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  min-height: 1.2em;
}
.summary-dot { color: #d1d5db; }
.summary-overdue {
  color: #ef4444;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.summary-overdue i { font-size: 0.65rem; }


/* ============================================================
   TODO LIST
   ============================================================ */
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.empty-todo-list {
  text-align: center;
  color: #9ca3af;
  padding: 2.5rem 0;
}
.empty-todo-list i { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.empty-todo-list .font-semibold { font-weight: 600; color: #6b7280; margin-bottom: 0.25rem; }
.empty-todo-list p {
  font-family: 'Caveat', cursive;
  margin: 0.15rem 0;
  font-size: 1.2rem;
}


/* ============================================================
   TODO ITEM
   ============================================================ */
.todo-item {
  display: flex;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  background-color: #f9fafb;
  border-radius: 0.625rem;
  border: 1px solid #f3f4f6;
  transition: background-color 250ms, box-shadow 250ms, border-color 250ms;
  gap: 0.5rem;
}
.todo-item:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}
.todo-item--editing {
  background-color: #eef2ff;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Toggle button */
.toggle-button {
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  color: transparent;
  transition: all 250ms;
}
.toggle-button:hover:not(.toggle-button--completed) {
  border-color: #22c55e;
  background: #f0fdf4;
}
.toggle-button--completed {
  border-color: #22c55e;
  background-color: #22c55e;
  color: #fff;
}
.toggle-check-icon { font-size: 0.75rem; }

/* Content */
.todo-content {
  flex: 1;
  min-width: 0;
}

/* Edit wrapper (text + date row) */
.edit-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.edit-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #6366f1;
  padding-bottom: 2px;
  font-size: 0.9rem;
}
.edit-input:focus { outline: none; }

.edit-date-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #6366f1;
  flex-wrap: wrap;
}
.edit-date-label { color: #6b7280; font-size: 0.7rem; }
.edit-date-input {
  flex: 1;
  min-width: 120px;
  font-size: 0.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 0.3rem;
  padding: 0.2rem 0.4rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.edit-date-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.clear-date-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  background: #fee2e2;
  color: #ef4444;
  transition: background 200ms;
  flex-shrink: 0;
}
.clear-date-btn:hover { background: #fecaca; }

/* Todo text */
.todo-text {
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  overflow-wrap: break-word;
  word-break: break-word;
  color: #1f2937;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  transition: color 200ms;
}
.todo-text--completed {
  text-decoration: line-through;
  color: #9ca3af;
  cursor: default;
}

/* Meta row */
.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 0.3rem;
  align-items: center;
}
.todo-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.todo-date i { font-size: 0.65rem; }


/* ============================================================
   DUE DATE BADGES
   ============================================================ */
.due-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

/* Overdue — red, pulsing */
.due-badge--overdue {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  animation: badgePulse 2s ease-in-out infinite;
}
.due-badge--overdue i { color: #ef4444; }

/* Due today — orange */
.due-badge--today {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}
.due-badge--today i { color: #f97316; }

/* Due soon (1–3 days) — amber */
.due-badge--soon {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.due-badge--soon i { color: #d97706; }

/* Future — indigo */
.due-badge--future {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.due-badge--future i { color: #6366f1; }

/* Completed task due date — muted */
.due-badge--done {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}
.due-badge--done i { color: #9ca3af; }


/* ============================================================
   ITEM ACTIONS (edit / delete buttons)
   ============================================================ */
.actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 250ms;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.todo-item:hover .actions { opacity: 1; }

/* On touch devices, always show actions */
@media (hover: none) {
  .actions { opacity: 1; }
}

.action-button {
  font-size: 0.875rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 200ms, background 200ms;
}
.edit-button   { color: #3b82f6; }
.edit-button:hover   { color: #1d4ed8; background: #eff6ff; }
.delete-button { color: #ef4444; }
.delete-button:hover { color: #b91c1c; background: #fee2e2; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: 0.8rem;
  width: 100%;
  max-width: 32rem;
  padding: 0 0.75rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.credit-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.6rem 0.875rem;
  text-align: left;
  transition: all 300ms;
  flex: 1;
}
.credit-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}
.credit-text {
  margin: 0 0 0.3rem 0;
  color: #4b5563;
  font-size: 0.75rem;
}
.credit-text .fa-laptop-code { margin-right: 0.3rem; color: #6366f1; }
.credit-name { font-weight: 600; color: #1f2937; }
.github-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 300ms;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.75rem;
}
.github-link:hover { color: #6366f1; }
.github-link:hover span { text-decoration: underline; }

.help-button {
  background: #f9fafb;
  color: #4b5563;
  padding: 0.6rem 0.875rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 300ms;
  border: 1px solid #e5e7eb;
  font-size: 0.8rem;
  white-space: nowrap;
}
.help-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
  border-color: #d1d5db;
  background: #fff;
  color: #1f2937;
}

@media (max-width: 380px) {
  .footer-content {
    flex-direction: column;
    align-items: stretch;
  }
  .help-button { justify-content: center; }
}


/* ============================================================
   DIALOGS
   ============================================================ */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
  padding: 1rem;
}
.dialog-overlay--visible {
  opacity: 1;
  visibility: visible;
}
.dialog-box {
  background: #fff;
  border-radius: 0.875rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 26rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: scale(0.95);
  transition: transform 200ms ease-in-out;
  text-align: center;
}
.dialog-overlay--visible .dialog-box { transform: scale(1); }

.dialog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.dialog-title .fa-triangle-exclamation { color: #f59e0b; }
.dialog-title .fa-life-ring            { color: #6366f1; }

.dialog-message {
  color: #6b7280;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.help-textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 0.7rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 300ms;
}
.help-textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #6366f1;
}

.dialog-success-message {
  color: #16a34a;
  background: #f0fdf4;
  padding: 0.7rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

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

.dialog-button {
  padding: 0.55rem 1.125rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 200ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  min-width: 7rem;
}
.dialog-button--cancel {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
.dialog-button--cancel:hover { background: #e5e7eb; }
.dialog-button--confirm {
  background: #ef4444;
  color: #fff;
}
.dialog-button--confirm:hover { background: #dc2626; }
.dialog-button--submit {
  background: #6366f1;
  color: #fff;
}
.dialog-button--submit:hover { background: #4f46e5; }
.dialog-button--submit:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}


/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1f2937;
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease-in-out;
  z-index: 2000;
  font-size: 0.8rem;
  max-width: calc(100vw - 2rem);
  text-align: left;
}
.toast-notification--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.toast-notification i { color: #60a5fa; font-size: 1.1rem; flex-shrink: 0; }
