.todo-page .card.border-start {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.todo-page .card.border-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.todo-page .card.border-start .avatar-initial {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.todo-page .todo-item {
  border: 1px solid #e7e7ff;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  background: #fff;
}
.todo-page .todo-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}
.todo-page .todo-item.completed {
  opacity: 0.7;
  background-color: #f8f9fa;
}
.todo-page .todo-item.completed .todo-title {
  text-decoration: line-through;
  color: #6c757d;
}
.todo-page .todo-item.completed .todo-description {
  color: #adb5bd;
}
.todo-page .todo-item.overdue {
  border-left: 4px solid #dc3545;
}
.todo-page .todo-item.overdue .todo-due-date {
  color: #dc3545;
  font-weight: 600;
}
.todo-page .todo-item.high-priority {
  border-left: 4px solid #dc3545;
}
.todo-page .todo-item.medium-priority {
  border-left: 4px solid #fd7e14;
}
.todo-page .todo-item.low-priority {
  border-left: 4px solid #28a745;
}
.todo-page .todo-content {
  padding: 1rem;
}
.todo-page .todo-content .todo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.todo-page .todo-content .todo-header .todo-title {
  font-weight: 600;
  color: #495057;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}
.todo-page .todo-content .todo-header .todo-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}
.todo-page .todo-content .todo-header .todo-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.todo-page .todo-content .todo-header .todo-actions .btn i {
  font-size: 0.875rem;
}
.todo-page .todo-content .todo-description {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.todo-page .todo-content .todo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.todo-page .todo-content .todo-meta .todo-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.todo-page .todo-content .todo-meta .todo-tags .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.todo-page .todo-content .todo-meta .todo-due-date {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}
.todo-page .priority-badge.high {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.todo-page .priority-badge.medium {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}
.todo-page .priority-badge.low {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.todo-page .tag-badge.quiz {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.todo-page .tag-badge.lessons {
  background-color: #dbeafe;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.todo-page .tag-badge.flashcards {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fed7aa;
}
.todo-page .tag-badge.math {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.todo-page .tag-badge.science {
  background-color: #fef7ff;
  color: #9333ea;
  border: 1px solid #e9d5ff;
}
.todo-page .tag-badge.history {
  background-color: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}
.todo-page .tag-badge.english {
  background-color: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.todo-page .tag-badge.admin {
  background-color: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.todo-page .tag-badge.personal {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.todo-page .tag-badge.work {
  background-color: #dbeafe;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.todo-page .tag-badge.study {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fed7aa;
}
.todo-page .tag-badge.health {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.todo-page .tag-badge.other {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.todo-page .todo-checkbox .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  cursor: pointer;
}
.todo-page .todo-checkbox .form-check-input:checked {
  background-color: #5a6acf;
  border-color: #5a6acf;
}
.todo-page .todo-checkbox .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(90, 106, 207, 0.25);
}
.todo-page #emptyState .avatar-initial {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.todo-page .input-group-merge .input-group-text {
  background-color: transparent;
  border-right: none;
}
.todo-page .input-group-merge .form-control {
  border-left: none;
}
.todo-page .input-group-merge .form-control:focus {
  border-left: none;
  box-shadow: none;
}
.todo-page .modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.todo-page .modal-content .modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem 1.5rem 1rem;
}
.todo-page .modal-content .modal-header .modal-title {
  font-weight: 600;
  color: #495057;
}
.todo-page .modal-content .modal-body {
  padding: 1.5rem;
}
.todo-page .modal-content .modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem 1.5rem;
}
.todo-page #completedSection .card-header {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.todo-page #completedSection .card-header:hover {
  background-color: #f8f9fa;
}
.todo-page #completedSection .card-header i {
  transition: transform 0.2s ease;
}
.todo-page #completedSection .card-header[aria-expanded=true] i {
  transform: rotate(180deg);
}
@media (max-width: 768px) {
  .todo-page .todo-content {
    padding: 0.75rem;
  }
  .todo-page .todo-content .todo-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .todo-page .todo-content .todo-header .todo-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .todo-page .todo-content .todo-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .todo-page .stats-row .col-12 {
    margin-bottom: 1rem;
  }
  .todo-page .filters-row .col-md-4,
  .todo-page .filters-row .col-md-3,
  .todo-page .filters-row .col-md-2 {
    margin-bottom: 0.75rem;
  }
}
@media (max-width: 576px) {
  .todo-page .todo-content {
    padding: 0.5rem;
  }
  .todo-page .todo-content .todo-header .todo-title {
    font-size: 0.9rem;
  }
  .todo-page .todo-content .todo-description {
    font-size: 0.8rem;
  }
  .todo-page .modal-dialog {
    margin: 0.5rem;
  }
  .todo-page .modal-content .modal-header,
  .todo-page .modal-content .modal-body,
  .todo-page .modal-content .modal-footer {
    padding: 1rem;
  }
}
.todo-page .fade-in {
  animation: fadeIn 0.3s ease-in;
}
.todo-page .slide-in {
  animation: slideIn 0.3s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.todo-page .todo-item.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.todo-page .todo-item.drag-over {
  border: 2px dashed #5a6acf;
  background-color: #f8f9ff;
}
.todo-page .loading {
  opacity: 0.6;
  pointer-events: none;
}
.todo-page .loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #5a6acf;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.todo-page .todo-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  min-width: 300px;
}
.todo-page .todo-toast .toast-header {
  background-color: #5a6acf;
  color: white;
  border-bottom: none;
}
.todo-page .todo-toast .toast-header .btn-close {
  filter: invert(1);
}
.todo-page .todo-progress {
  height: 0.5rem;
  border-radius: 0.25rem;
  background-color: #e9ecef;
  overflow: hidden;
  margin: 1rem 0;
}
.todo-page .todo-progress .progress-bar {
  background: linear-gradient(90deg, #5a6acf, #7c3aed);
  transition: width 0.3s ease;
}
.todo-page .quick-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}
.todo-page .quick-actions .btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.todo-page .quick-actions .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
