/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #111827;
  color: white;
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  overflow-x: hidden;
}

/* Partículas Animadas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  animation: float linear infinite;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.particle:nth-child(odd) {
  background: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.particle:nth-child(3n) {
  background: rgba(147, 51, 234, 0.3);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.particle:nth-child(4n) {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.particle:nth-child(5n) {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
    transform: translateY(90vh) rotate(36deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) rotate(180deg) scale(1.2);
  }
  90% {
    opacity: 0.9;
    transform: translateY(10vh) rotate(324deg) scale(0.8);
  }
  100% {
    transform: translateY(-100px) rotate(360deg) scale(0.3);
    opacity: 0;
  }
}

/* Layout Principal */
.container {
  max-width: 1024px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d1d5db;
}

.logo-text p {
  font-size: 0.875rem;
  color: #6b7280;
}

.completed-count {
  font-size: 0.875rem;
  color: #9ca3af;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr 2fr;
  }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background-color: #1f2937;
  border-radius: 0.75rem;
  padding: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  background-color: #374151;
  color: #e5e7eb;
}

.category-btn.active {
  background-color: #2563eb;
  color: white;
}

.category-count {
  font-size: 0.75rem;
  background-color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.progress-card {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: white;
}

.progress-text {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.25rem 0;
}

.progress-subtitle {
  color: #e9d5ff;
  font-size: 0.875rem;
}

.progress-bar-container {
  margin-top: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  height: 8px;
}

.progress-bar {
  background-color: white;
  border-radius: 9999px;
  height: 8px;
  transition: width 0.3s;
}

/* Conteúdo Principal */
.main-content {
  background-color: #1f2937;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.content-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e7eb;
}

.task-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
}

/* Adicionar Tarefa */
.add-task-section {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.task-input {
  flex: 1;
  background-color: #374151;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  outline: none;
  transition: all 0.2s;
}

.task-input::placeholder {
  color: #9ca3af;
}

.task-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.add-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-btn:hover {
  background-color: #1d4ed8;
}

/* Lista de Tarefas */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #374151;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.task-item:hover {
  border-color: #6b7280;
}

.task-item.completed {
  opacity: 0.6;
  background-color: #2d3748;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #6b7280;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.task-checkbox:hover {
  border-color: #4ade80;
}

.task-checkbox.checked {
  background-color: #10b981;
  border-color: #10b981;
}

.task-text {
  flex: 1;
  color: #e5e7eb;
}

.task-text.completed {
  text-decoration: line-through;
  color: #6b7280;
}

.delete-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.delete-btn:hover {
  color: #ef4444;
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

/* Ícones */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-sm {
  width: 16px;
  height: 16px;
}
