/* Todo List Styles - NotesVault Theme */

/* Main Container */
.todo-main {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, #f9faf4 0%, #e8f5e8 100%);
  font-family: "Poppins", sans-serif;
}

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

/* Header Section */
.todo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.todo-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #163d3b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.todo-title i {
  color: #B4CFB0;
}

.todo-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
}

/* Form Container */
.todo-form-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(22, 61, 59, 0.1);
  margin-bottom: 2rem;
  border: 1px solid rgba(22, 61, 59, 0.1);
}

.todo-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.task-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.task-input:focus {
  outline: none;
  border-color: #B4CFB0;
  background: white;
  box-shadow: 0 0 0 3px rgba(180, 207, 176, 0.1);
}

.task-input::placeholder {
  color: #9ca3af;
}

.add-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #163d3b 0%, #113946 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 61, 59, 0.3);
}

.add-btn:active {
  transform: translateY(0);
}

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

.task-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.task-count, .completed-count {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(22, 61, 59, 0.1);
  color: #163d3b;
}

.completed-count {
  background: rgba(180, 207, 176, 0.2);
  color: #2d5a2d;
}

.task-actions {
  display: flex;
  gap: 0.75rem;
}

.clear-btn, .clear-all-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.clear-all-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.clear-all-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

/* Task List Container */
.todo-list-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(22, 61, 59, 0.1);
  border: 1px solid rgba(22, 61, 59, 0.1);
  min-height: 300px;
  position: relative;
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

.todo-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(22, 61, 59, 0.1);
}

.todo-item.completed {
  background: rgba(180, 207, 176, 0.1);
  border-color: rgba(180, 207, 176, 0.3);
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: #6b7280;
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  margin-right: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.todo-checkbox:checked {
  background: #B4CFB0;
  border-color: #B4CFB0;
}

.todo-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.todo-text {
  flex: 1;
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.5;
}

.todo-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.edit-btn, .delete-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.edit-btn {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.edit-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

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

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #9ca3af;
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.empty-state p {
  font-size: 1rem;
  color: #9ca3af;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.todo-item {
  animation: slideIn 0.3s ease;
}

/* Dark Mode Support */
[data-theme="dark"] .todo-main {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .todo-title {
  color: #dff8f8;
}

[data-theme="dark"] .todo-subtitle {
  color: #a0a0a0;
}

[data-theme="dark"] .todo-form-container,
[data-theme="dark"] .todo-list-container {
  background: #2a2a2a;
  border-color: rgba(223, 248, 248, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .task-input {
  background: #3a3a3a;
  border-color: #4a4a4a;
  color: #dff8f8;
}

[data-theme="dark"] .task-input:focus {
  border-color: #B4CFB0;
  background: #3a3a3a;
}

[data-theme="dark"] .task-input::placeholder {
  color: #808080;
}

[data-theme="dark"] .task-count,
[data-theme="dark"] .completed-count {
  background: rgba(223, 248, 248, 0.1);
  color: #dff8f8;
}

[data-theme="dark"] .completed-count {
  background: rgba(180, 207, 176, 0.2);
  color: #B4CFB0;
}

[data-theme="dark"] .todo-item {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

[data-theme="dark"] .todo-item.completed {
  background: rgba(180, 207, 176, 0.1);
  border-color: rgba(180, 207, 176, 0.2);
}

[data-theme="dark"] .todo-text {
  color: #dff8f8;
}

[data-theme="dark"] .todo-item.completed .todo-text {
  color: #808080;
}

[data-theme="dark"] .empty-state {
  color: #808080;
}

[data-theme="dark"] .empty-state h3 {
  color: #a0a0a0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .todo-container {
    padding: 1rem;
  }
  
  .todo-title {
    font-size: 2rem;
  }
  
  .input-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .add-btn {
    width: 100%;
    justify-content: center;
  }
  
  .todo-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .task-stats {
    justify-content: center;
  }
  
  .task-actions {
    justify-content: center;
  }
  
  .todo-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .todo-actions {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .todo-form-container,
  .todo-list-container {
    padding: 1.5rem;
  }
  
  .todo-title {
    font-size: 1.75rem;
  }
  
  .task-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .task-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .clear-btn,
  .clear-all-btn {
    width: 100%;
    justify-content: center;
  }
} 