/* Task Manager - CSS Styles */
:root {
  /* Light theme colors */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #7209b7;
  --success-color: #4cc9f0;
  --danger-color: #f72585;
  --warning-color: #f8961e;
  --info-color: #4cc9f0;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
  
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Dark theme colors */
body.dark {
  --primary-color: #4895ef;
  --primary-dark: #4361ee;
  --secondary-color: #9d4edd;
  --success-color: #4895ef;
  --danger-color: #f72585;
  --warning-color: #f9844a;
  --info-color: #4895ef;
  
  --bg-primary: #1e1e2e;
  --bg-secondary: #2d2d3d;
  --bg-card: #252536;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-color: #444455;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  min-height: calc(100vh - 120px);
  padding: 2rem 0;
}

/* Header and Navigation */
header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--primary-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.25rem;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #d1146d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: rgba(247, 37, 133, 0.1);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}

.alert-success {
  background-color: rgba(76, 201, 240, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

/* Authentication pages */
.auth-page {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.auth-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.auth-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.2));
}

.auth-header h2 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.auth-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1rem;
}

.auth-form-content {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.form-hint {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group label i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group i {
  position: absolute;
  left: 1rem;
  top: 2.4rem;
  color: var(--text-secondary);
  z-index: 2;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group input:focus + i {
  color: var(--primary-color);
}

.btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.auth-footer p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.auth-footer a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-back {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  margin-top: 0.5rem;
}

/* Dashboard */
.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

#add-task-btn {
  margin-left: auto;
}

.task-form-container {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.controls-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.5rem 1rem;
  background-color: var(--bg-card);
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.search-icon {
  color: var(--text-secondary);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
}

#search-input::placeholder {
  color: var(--text-secondary);
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.filter-container select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
}

.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.task-item:hover {
  box-shadow: var(--shadow-hover);
}

.task-item.completed {
  opacity: 0.7;
  background-color: var(--bg-secondary);
}

.task-item.completed .task-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.task-checkbox-container {
  margin-top: 0.25rem;
}

.task-checkbox {
  display: none;
}

.task-label {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.task-checkbox:checked + .task-label {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.task-checkbox:checked + .task-label::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-content {
  flex: 1;
}

.task-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.task-description {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.task-meta {
  margin-bottom: 1rem;
}

.due-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.due-date i {
  margin-right: 0.25rem;
}

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

.empty-tasks {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-tasks i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.empty-tasks h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Form container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-box {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-header h2 i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
  margin: 0;
}

/* Landing page */
.landing-container {
  padding: 2rem 1rem;
  background-color: var(--bg-secondary);
  min-height: calc(100vh - 120px);
}

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-header {
  margin-bottom: 2rem;
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.description-section,
.features-section,
.testimonials-section,
.founder-section,
.goals-section,
.purpose-section,
.background-section {
  padding: 4rem 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.description-section h2,
.features-section h2,
.testimonials-section h2,
.founder-section h2,
.goals-section h2,
.purpose-section h2,
.background-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
}

.testimonials-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
}

.testimonials-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 200px;
}

.testimonials-track {
  display: flex;
  width: 300%; /* Adjusted for 4 testimonials per view * 4 views */
  animation: scroll 30s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-item {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  min-width: calc(25% - 2rem);
  margin: 0 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.testimonial-item p {
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonials-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-66.666%);
  }
}

/* Responsive for testimonials */
@media (max-width: 992px) {
  .testimonial-item {
    min-width: 50%;
    margin: 0 0.5rem;
  }

  .testimonials-track {
    width: 600%; /* 12 testimonials * 50% = 600% */
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 768px) {
  .testimonial-item {
    min-width: 100%;
    margin: 0 1rem 1rem 1rem;
    padding: 1rem;
  }

  .testimonials-track {
    width: 1200%; /* 12 testimonials * 100% = 1200% */
  }

  .testimonials-wrapper {
    height: auto;
    min-height: 600px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-75%);
    }
  }
}

.founder-section p,
.goals-section ul,
.purpose-section ul,
.background-section p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-secondary);
}

.founder-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 2rem auto;
}

.founder-image {
  flex: 0 0 auto;
  width: 200px;
}

.founder-image img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
  border: 4px solid var(--bg-card);
}

.founder-message {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

.founder-message p {
  margin-bottom: 1.5rem;
}

.founder-message p:last-child {
  margin-bottom: 0;
}

/* Responsive for founder section */
@media (max-width: 768px) {
  .founder-content {
    flex-direction: column;
    text-align: center;
  }

  .founder-image {
    width: 150px;
    margin: 0 auto;
  }

  .founder-message {
    margin-top: 1rem;
  }
}

.goals-section ul,
.purpose-section ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.goals-section li,
.purpose-section li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.goals-section li:last-child,
.purpose-section li:last-child {
  border-bottom: none;
}

.goals-section li::before,
.purpose-section li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.75rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.nav-menu-visible {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  #add-task-btn {
    margin-left: 0;
  }
  
  .controls-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .task-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .task-checkbox-container {
    align-self: flex-start;
  }
  
  .welcome-actions {
    flex-direction: column;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .task-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .auth-form {
    padding: 1.5rem;
  }
  
  .form-box {
    padding: 1.5rem;
  }
  
  .task-actions {
    flex-direction: row;
    justify-content: center;
  }
}