*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 100%);
}

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  
  /* Backgrounds */
  --bg-primary: #f0f4f8;
  --bg-secondary: #e1e8ed;
  
  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --surface-hover: #f3f4f6;
  
  /* Borders */
  --border: #d1dce5;
  --border-dark: #b0bec8;
  
  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

header {
  text-align: center;
  padding: 2rem 2rem;
  background: var(--surface);
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(79, 70, 229, 0.03) 35px,
      rgba(79, 70, 229, 0.03) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(16, 185, 129, 0.02) 35px,
      rgba(16, 185, 129, 0.02) 70px
    );
  border-bottom: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.main {
  display: flex;
  flex: 1;
  padding: 2rem;
  gap: 2rem;
  background: transparent;
  min-height: calc(100vh - 120px);
  position: relative;
}

.sidebar {
  background: var(--surface);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  width: 28vw;
  box-shadow: var(--shadow-md);
}

.display {
  background: var(--surface);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-xl);
  width: 72vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

.display h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.display h2 {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1.25rem;
}

.parentCreationDiv, .yourProjects {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.parentCreationDiv h2, .yourProjects h2 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.projectCreationDiv, .todoCreationDiv {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.projectCreationDiv input, .todoCreationDiv input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.projectCreationDiv input:focus, .todoCreationDiv input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.projectCreationDiv button, .todoCreationDiv button {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--secondary);
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.projectCreationDiv button:hover, .todoCreationDiv button:hover {
  background: var(--secondary-dark);
}

.projectCreationDiv button:active, .todoCreationDiv button:active {
  transform: scale(0.95);
}

.projectHome {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 1.5rem 0;
}

.projectHome:hover {
  background: var(--primary-dark);
}

.projectDiv {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.projectDiv:hover {
  background: var(--surface-hover);
  border-color: var(--border-dark);
}

.projectDiv p {
  font-weight: 500;
  font-size: 1rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projectDiv button {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--danger);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.projectDiv button:hover {
  background: var(--danger-dark);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  margin: 8% auto;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: min(90vw, 550px);
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { 
      transform: translateY(-50px) scale(0.9);
      opacity: 0;
  }
  to { 
      transform: translateY(0) scale(1);
      opacity: 1;
  }
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-muted);
  font-size: 1.75rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.close:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.modalInputTask {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}

.modalInputTask:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.modalInputDesc {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.modalInputDesc:focus {
  outline: none;
}

.dueDateDiv {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.dueDate {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

#dueDate {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#dueDate:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.todoFooterDiv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.selectproject {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.projectselectlabel {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

#projectselect {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  min-width: 150px;
  transition: all 0.2s ease;
}

#projectselect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.todoFooterDiv button {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.todoFooterDiv button:hover {
  background: var(--primary-dark);
}

.todoFooterDiv button:active {
  transform: scale(0.98);
}

.displayProjectDiv {
  width: 95%;
  max-width: 1100px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-dark);
  animation: fadeInUp 0.4s ease;
}

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

.displayProjectHeader {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.displayProjectHeader h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.displayProjectHeader h2 {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.125rem;
}

.displayTodoDiv {
  width: 100%;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
}

.displayTodoDiv::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--primary);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.displayTodoDiv:hover {
  background: var(--surface-hover);
  border-color: var(--border-dark);
}

.displayTodoDiv input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.displayTodoDiv input[type="checkbox"]:hover {
  border-color: var(--secondary);
}

.displayTodoDiv input[type="checkbox"]:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}

.displayTodoDiv input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

.displayTodoContent {
  flex: 1;
}

.displayTodoContent p:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.displayTodoContent p:nth-child(2) {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.displayTodoContent p:nth-child(3) {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  display: inline-block;
}

.displayTodoContent hr {
  display: none;
}

/* Enhanced input placeholders */
input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Focus states for better accessibility */
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

input:focus-visible, select:focus-visible {
  outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main {
      flex-direction: column;
      gap: 1.5rem;
  }
  
  .sidebar, .display {
      width: 100%;
  }
  
  header h1 {
      font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .main {
      padding: 1rem;
  }
  
  .sidebar, .modal-content {
      padding: 1.5rem;
  }
  
  .displayProjectDiv {
      padding: 1.5rem;
  }
  
  .displayTodoDiv {
      flex-direction: column;
      gap: 1rem;
      padding: 1.5rem;
  }
  
  header h1 {
      font-size: 1.5rem;
  }
  
  header {
      padding: 1.5rem 1rem;
  }
  
  .display h1 {
      font-size: 1.75rem;
  }
  
  .modalInputTask {
      font-size: 1.25rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/*# sourceMappingURL=main.css.map*/