:root {
  --primary-color: #4a90e2;
  --secondary-color: #2c3e50;
  --background-color: #f5f7fa;
  --card-background: rgba(255, 255, 255, 0.9);
  --text-color: #2c3e50;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background-color);
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease;
}
.dark-mode{
  background-color: #2c3e50;
  color: #f1f1f1;
}

.app {
  background: var(--card-background);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 28px;
  color: var(--text-color);
  font-weight: 600;
}



.theme-toggle.active .sun-icon {
  color: #ffd700;
}

.theme-toggle.active .moon-icon {
  color: #ffffff;
}

.todo-container {
  margin-top: 20px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

li:hover {
  background: rgba(74, 144, 226, 0.1);
}

li.completed {
  opacity: 0.7;
}

li.completed span {
  text-decoration: line-through;
  color: #95a5a6;
}

input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

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

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 14px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  left: 5px;
  top: 2px;
}

.input-group {
  display: flex;
  margin-top: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

#todo-input,#todo-desc {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

#todo-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#add-btn, .theme-toggle {
  padding: 12px 20px;
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#add-btn:hover {
  background: #357abd;
  transform: translateY(-2px);
}

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

.stats {
  margin-top: 20px;
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

.stats span {
  color: var(--text-color);
  font-weight: 500;
}
.quotes{
  margin-top: 20px;
  font-style: italic;
  color: #7f8c8d;
  text-align: center;
  font-size: 16px;
  max-width: 400px;
}

.modal{
  display: none;
  position: fixed;
  bottom:0;
  right:15px;
  border:3px solid #f1f1f1
}
