/* ===== PROFESSIONAL MODERN DESIGN ===== */
/* Clean, compact, bold colors, minimal shadows */

html {
  box-sizing: border-box;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  background: #0f172a;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.375rem 0;
  color: #f1f5f9;
}

p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ===== LAYOUT ===== */

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.hamburger {
  display: none;
}

/* ===== SIDEBAR ===== */

.sidebar {
  width: 220px;
  background: #1e293b;
  border-right: 1px solid #334155;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 3000;
}

.logo {
  margin-bottom: 1rem;
  text-align: center;
}

.logo img {
  height: 60px;
  transition: opacity 0.2s ease;
}

.logo img:hover {
  opacity: 0.8;
}

#add-project-form {
  margin-bottom: 0.875rem;
}

#project-name {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  transition: border-color 0.2s ease;
}

#project-name::placeholder {
  color: #64748b;
}

#project-name:focus {
  outline: none;
  border-color: #3b82f6;
}

.add-project-btn {
  width: 100%;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.add-project-btn:active {
  background: #1d4ed8;
}

.select-project {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid #334155;
}

.select-project p {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-select,
#project-select {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.project-select:hover,
#project-select:hover {
  border-color: #3b82f6;
}

.project-select:focus,
#project-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.logout {
  width: 100%;
  background: #1e293b;
  color: #ef4444;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.logout:hover {
  background: #334155;
  border-color: #ef4444;
}

/* ===== MAIN CONTENT ===== */

.main-content {
  flex: 1;
  padding: 1rem;
  background: #0f172a;
  overflow-y: auto;
  position: relative;
}

#app {
  position: relative;
  z-index: 1;
}

/* Masonry layout: items will be positioned absolutely by JavaScript */
#app.masonry-enabled .category {
  position: absolute;
  top: 0;
  left: 0;
}

/* ===== CATEGORY HEADER ===== */

.category-header-row {
  margin-top: 0.5rem;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
  flex-wrap: wrap;
}

#add-category-form {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#category-name {
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  min-width: 180px;
  transition: border-color 0.2s ease;
}

#category-name::placeholder {
  color: #64748b;
}

#category-name:focus {
  outline: none;
  border-color: #3b82f6;
}

#add-category-form button,
.add-category-form button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#add-category-form button:hover,
.add-category-form button:hover {
  background: #2563eb;
}

.delete-project-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-project-btn:hover {
  background: #dc2626;
}

/* ===== CATEGORY CARDS ===== */

.category {
  background: #1e293b;
  border: none;
  padding: 0.75rem;
  margin-bottom: 0.875rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

/* When masonry is enabled, categories are positioned absolutely */
#app.masonry-enabled .category {
  margin-bottom: 0;
}

.category:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.heading-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 0.625rem 0;
  margin-bottom: 0.625rem;
  border-bottom: 1px solid #334155;
}

.left-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 0;
}

.title {
  margin: 0;
}

.form-check-input {
  cursor: pointer;
  width: 36px;
  height: 18px;
  background-color: #334155;
  border: 1px solid #475569;
  border-radius: 18px;
  transition: all 0.2s ease;
}

.form-switch .form-check-input:checked {
  background-color: #10b981;
  border-color: #10b981;
}

.form-check-label {
  color: #94a3b8;
  font-size: 0.6875rem;
  margin-right: 0.375rem;
}

.delete-category-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.delete-category-btn:hover {
  background: #dc2626;
}

/* ===== ACTION TYPES ===== */
/* Bold colored backgrounds, no borders */

.action-type {
  margin-bottom: 0.625rem;
  padding: 0.625rem;
  border-radius: 6px;
  border: none;
  transition: opacity 0.2s ease;
  background: #0f172a;
}

/* Bold vibrant colored backgrounds - striking and bold */
.Optional {
  background: rgba(16, 185, 129, 0.3);
}

.Optional:hover {
  background: rgba(16, 185, 129, 0.35);
}

.Fix {
  background: rgba(239, 68, 68, 0.3);
}

.Fix:hover {
  background: rgba(239, 68, 68, 0.35);
}

.Add {
  background: rgba(59, 130, 246, 0.3);
}

.Add:hover {
  background: rgba(59, 130, 246, 0.35);
}

.Update {
  background: rgba(245, 158, 11, 0.3);
}

.Update:hover {
  background: rgba(245, 158, 11, 0.35);
}

.action-type form input,
.action-type form select,
.action-type form button {
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #334155;
  margin: 0 0.3125rem 0.3125rem 0;
  background: #1e293b;
  color: #f1f5f9;
  transition: border-color 0.2s ease;
}

.action-type form input:focus,
.action-type form select:focus {
  outline: none;
  border-color: #3b82f6;
}

.action-type form button {
  background: #3b82f6;
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.action-type form button:hover {
  background: #2563eb;
}

.action-title-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.action-title {
  color: #f1f5f9;
  font-weight: 600;
}

.remove-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #64748b;
  transition: color 0.2s ease;
  padding: 0.25rem;
  border-radius: 3px;
  line-height: 1;
}

.remove-action-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ===== TASKS ===== */

.task {
  margin-left: 0;
  padding: 0.5rem 0.625rem;
  background: #1e293b;
  border: none;
  border-left: 4px solid #64748b;
  border-radius: 6px;
  margin-bottom: 0.4375rem;
  cursor: grab;
  position: relative;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2rem;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.task:active {
  cursor: grabbing;
}

.task.drag-over {
  border-top: 2px solid #3b82f6;
  margin-top: 0.4375rem;
}

.task:hover {
  background: #334155;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.task.white {
  border-left-color: #64748b;
}

.task.in-progress,
.task.orange {
  border-left-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4), 0 1px 2px rgba(245, 158, 11, 0.2);
  background: #1e293b;
}

.task.in-progress:hover,
.task.orange:hover {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.6), 0 2px 4px rgba(245, 158, 11, 0.3);
  background: #334155;
}

.task.done,
.task.green {
  border-left-color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 1px 2px rgba(16, 185, 129, 0.2);
  background: #1e293b;
  opacity: 0.9;
}

.task.done:hover,
.task.green:hover {
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.6), 0 2px 4px rgba(16, 185, 129, 0.3);
  background: #334155;
}

.task-text {
  color: #f1f5f9;
  font-size: 0.8125rem;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
  word-wrap: break-word;
  padding-right: 0.5rem;
}

.task:hover .status-options {
  opacity: 1;
  visibility: visible;
}

.status-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-left: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  flex-shrink: 0;
  pointer-events: none;
  width: 140px;
}

.task:hover .status-options {
  pointer-events: auto;
}

.status-option {
  font-size: 0.6875rem;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

.status-option:hover {
  opacity: 0.9;
}

.status-option.white {
  background: #475569;
  color: #f1f5f9;
}

.status-option.orange {
  background: #f59e0b;
  color: #0f172a;
}

.status-option.green {
  background: #10b981;
  color: #0f172a;
}

.status-option.delete {
  background: #ef4444;
  color: white;
}

.task input[type="text"] {
  padding: 0.375rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
}

.edit-task-btn {
  background: none;
  border: none;
  padding: 0 0.375rem;
  margin-left: 0.25rem;
  cursor: pointer;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: color 0.2s ease;
  border-radius: 3px;
  flex-shrink: 0;
}

.edit-task-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.edit-task-btn i.fa-solid.fa-pen-to-square {
  font-size: 0.75rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.edit-task-btn:hover i.fa-solid.fa-pen-to-square {
  color: #3b82f6;
}

.edit-task-btn {
  display: none;
}

/* ===== ACTION TYPE SELECTOR ===== */

.action-type-selector {
  min-width: 110px;
  padding: 0.4375rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.75rem;
  margin-right: 0.4375rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.action-type-selector:hover {
  border-color: #3b82f6;
}

.action-type-selector:focus {
  outline: none;
  border-color: #3b82f6;
}

.add-action-type-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.4375rem 0.75rem;
  font-weight: 500;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 0.5rem 0 0 0;
}

.add-action-type-btn:hover {
  background: #2563eb;
}

.add-action-type-form {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  flex-wrap: wrap;
}

/* ===== EXPLAINER TEXT ===== */

.explainer-text {
  font-size: 0.6875rem;
  color: #ef4444;
  margin-top: 0.3125rem;
  display: block;
  min-height: 14px;
  line-height: 1.4;
}

/* ===== READONLY BANNER ===== */

.readonly-banner {
  background: #f59e0b;
  color: #0f172a;
  padding: 0.625rem;
  text-align: center;
  font-weight: 500;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  font-size: 0.8125rem;
}

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

.custom-modal {
  background: #1e293b;
  border: none;
  padding: 1.25rem;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.custom-modal.custom-wide {
  max-width: 600px;
}

.custom-modal p {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

.confirm,
.cancel {
  padding: 0.5rem 1rem;
  margin: 0.5rem 0.375rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.confirm {
  background: #ef4444;
  color: white;
}

.confirm:hover {
  background: #dc2626;
}

.confirm:disabled {
  background: #334155;
  cursor: not-allowed;
  color: #64748b;
}

.cancel {
  background: #334155;
  color: #f1f5f9;
  border: 1px solid #475569;
}

.cancel:hover {
  background: #475569;
}

.modal-warning {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 0.625rem;
}

.modal-info {
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
  color: #f1f5f9;
}

.modal-label {
  font-size: 0.75rem;
  margin-bottom: 0.4375rem;
  color: #94a3b8;
  font-weight: 500;
}

.modal-input {
  font-size: 0.8125rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.625rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ===== DISABLED STATES ===== */

input.disabled-btn,
textarea.disabled-btn {
  background: #1e293b !important;
  color: #64748b !important;
  pointer-events: none;
  border-color: #334155 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.delete-category-btn.disabled-btn {
  background: #1e293b !important;
  color: #64748b !important;
  border-color: #334155 !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

/* ===== SCROLLBAR ===== */

.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: #0f172a;
}

.main-content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
  }

  #app {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  #app {
    column-count: 1;
  }

  .sidebar {
    position: fixed;
    right: -220px;
    top: 0;
    height: 100%;
    width: 220px;
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .sidebar.open {
    right: 0;
  }

  h1 {
    font-size: 1.125rem;
  }

  .main-content {
    width: 100%;
    padding: 0.875rem;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0.625rem;
    right: 0.625rem;
    z-index: 1002;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 0.625rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
  }

  .hamburger:hover {
    background: #2563eb;
  }

  .category-header-row {
    margin-top: 2.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  #add-category-form,
  .add-category-form {
    flex-direction: column;
  }

  #category-name {
    width: 100%;
    min-width: auto;
  }

  .delete-project-btn {
    width: 100%;
  }

  .edit-task-btn {
    display: inline-flex;
  }

  .task-text {
    cursor: pointer;
    padding-right: 0.5rem;
  }

  .task {
    padding: 0.5rem 0.625rem;
  }

  .status-options {
    display: none !important;
  }
}

@media (max-width: 450px) {
  h1 {
    font-size: 1rem;
  }

  .main-content {
    padding: 0.75rem;
  }

  .category {
    padding: 0.625rem;
  }

  .heading-wrapper {
    flex-direction: column;
    gap: 0.625rem;
  }

  .delete-category-btn {
    width: 100%;
  }

  .custom-modal {
    padding: 1rem;
  }

  .task-details-modal {
    max-width: 90%;
  }

  .task-modal-section {
    padding: 0.625rem;
  }

  .task-status-buttons {
    flex-direction: column;
    gap: 0.375rem;
  }

  .task-status-btn {
    width: 100%;
  }

  .task-modal-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .task-modal-delete-btn,
  .task-modal-save-btn {
    width: 100%;
  }

  .task {
    padding: 0.5rem 0.625rem;
  }

  .task-text {
    padding-right: 0.5rem;
  }
}

/* ===== TASK DETAILS MODAL ===== */

.task-details-modal {
  max-width: 500px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.task-details-modal h2 {
  margin: 0;
  font-size: 1rem;
}

.task-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #334155;
}

.task-modal-close {
  background: none;
  border: none;
  font-size: 1.125rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.task-modal-section {
  margin-bottom: 0.875rem;
}

.task-modal-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.4375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.task-modal-textarea {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.task-modal-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.task-modal-textarea::placeholder {
  color: #64748b;
}

/* Status Buttons */
.task-status-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.task-status-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.task-status-btn:hover {
  border-color: var(--status-color);
  background: #334155;
}

.task-status-btn.active {
  border-color: var(--status-color);
  background: var(--status-color);
  color: #0f172a;
}

.task-status-btn.active::before {
  content: '✓ ';
  font-weight: bold;
}

/* Timestamps */
.task-timestamps-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-timestamp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.625rem;
  background: #1e293b;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.task-timestamp-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

.task-timestamp-value {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
}

/* Modal Actions */
.task-modal-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #334155;
}

.task-modal-delete-btn,
.task-modal-save-btn {
  flex: 1;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.task-modal-delete-btn {
  background: #1e293b;
  color: #ef4444;
  border: 1px solid #334155;
}

.task-modal-delete-btn:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.task-modal-save-btn {
  background: #3b82f6;
  color: white;
}

.task-modal-save-btn:hover {
  background: #2563eb;
}

.task-modal-save-btn:active,
.task-modal-delete-btn:active {
  opacity: 0.9;
}

/* Scrollbar for modal */
.task-details-modal::-webkit-scrollbar {
  width: 6px;
}

.task-details-modal::-webkit-scrollbar-track {
  background: #0f172a;
}

.task-details-modal::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.task-details-modal::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ===== THEME TOGGLE ===== */

.theme-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0;
  margin-top: 0.625rem;
  border-top: 1px solid #334155;
  gap: 0.4375rem;
}

.theme-toggle-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 22px;
  background: #334155;
  border-radius: 22px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 1px solid #475569;
}

.theme-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #f1f5f9;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
}

body.light-mode .theme-toggle-slider {
  left: 26px;
}

.theme-icon {
  color: #0f172a;
  font-size: 0.625rem;
}
