:root {
  --primary-color: #4a90e2;
  --secondary-color: #f5f6fa;
  --text-color: #2d3436;
  --border-color: #dfe6e9;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
}

[data-theme="dark"] {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #ecf0f1;
  --border-color: #34495e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  padding: 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="20" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.1;
}

.sidebar-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lists-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin: 1rem 0;
}

.list-item {
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.list-item.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-item span {
  font-weight: 500;
}

.task-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  min-width: 24px;
  text-align: center;
}

#newListBtn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#newListBtn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.theme-toggle {
  margin-top: auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

#themeToggleBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  padding: 0.8rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#themeToggleBtn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#themeToggleBtn:active {
  transform: translateY(0);
}

#themeToggleBtn .toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#themeToggleBtn .toggle-text {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#themeToggleBtn .sun-icon,
#themeToggleBtn .moon-icon {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#themeToggleBtn .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

#themeToggleBtn .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] #themeToggleBtn {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #themeToggleBtn .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] #themeToggleBtn .moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

.theme-toggle .toggle-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6b8cce, #2d3e50);
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle .toggle-background {
  opacity: 0.2;
}

#themeToggleBtn i {
  transition: transform 0.3s ease;
}

[data-theme="dark"] #themeToggleBtn i {
  transform: rotate(180deg);
}

/* Custom scrollbar for lists container */
.lists-container::-webkit-scrollbar {
  width: 5px;
}

.lists-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.lists-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.main-content {
  padding: 2rem;
  overflow-y: auto;
  background: linear-gradient(135deg, #f6f8fc, #e9effd);
  position: relative;
}

[data-theme="dark"] .main-content {
  background: linear-gradient(135deg, #2c3e50, #1a2634);
}

.toolbar {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .toolbar {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.search-container {
  flex: 1;
  margin-right: 2rem;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

[data-theme="dark"] #searchInput {
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.view-controls {
  display: flex;
  gap: 0.8rem;
}

.view-controls button {
  padding: 0.8rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-controls button:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-2px);
}

.tasks-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem;
}

.task-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .task-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.task-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.task-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.7;
}

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

.task-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

[data-theme="dark"] .tag {
  background: rgba(74, 144, 226, 0.2);
}

.add-task-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-task-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

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

.task-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.task-item:hover .task-actions {
  opacity: 1;
  transform: translateY(0);
}

.task-actions button {
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .task-actions button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.task-actions button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.task-actions button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.task-actions button:active::after {
  width: 200%;
  height: 200%;
}

/* Task styles */
.task-item {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-item.dragging {
  opacity: 0.5;
}

.priority-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.priority-high {
  background-color: var(--danger-color);
  color: white;
}
.priority-medium {
  background-color: var(--warning-color);
  color: white;
}
.priority-low {
  background-color: var(--success-color);
  color: white;
}

/* Enhanced Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.visible .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.confirm-dialog .modal-content {
  max-width: 400px;
}

.confirm-dialog p {
  margin: 1rem 0;
  color: var(--text-color);
  opacity: 0.8;
}

.confirm-dialog .modal-buttons {
  margin-top: 2rem;
}

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

.confirm-dialog .danger:hover {
  background: #c0392b;
}

/* Form styling enhancements */
#taskForm {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#taskForm input,
#taskForm textarea,
#taskForm select {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-buttons button {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-buttons button[type="submit"] {
  background: var(--primary-color);
  color: white;
  border: none;
}

.modal-buttons button[type="button"] {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-color);
}

.modal-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-content {
  background: #1a2634;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Notification styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: white;
  color: var(--text-color);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(120%);
  opacity: 0;
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid var(--danger-color);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.notification i {
  font-size: 1.2rem;
}

.notification.success i {
  color: var(--success-color);
}

.notification.error i {
  color: var(--danger-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .sidebar.active {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
  }
}

/* Time picker styles */
.datetime-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.time-input {
  flex: 1;
  position: relative;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.time-input:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-input input[type="time"] {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-color);
  padding-right: 24px;
}

.time-input .time-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0.7;
}

.time-label {
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--secondary-color);
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.time-separator {
  color: var(--text-color);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.task-time-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.task-time-status i {
  font-size: 1rem;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.3;
  }
}

[data-theme="dark"] .time-input {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .time-label {
  background: var(--secondary-color);
}

/* Time status colors */
.time-status.upcoming {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.time-status.in-progress {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.time-status.expired {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  z-index: 100;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.filter-section {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.dropdown-menu button:hover {
  background: rgba(74, 144, 226, 0.1);
}

.dropdown-menu button.active {
  background: var(--primary-color);
  color: white;
}

/* List view styles */
.tasks-container.list-view {
  display: flex;
  flex-direction: column;
}

.tasks-container.list-view .task-item {
  margin-bottom: 1rem;
}

/* Search enhancements */
.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.5;
  pointer-events: none;
}

/* List Creation Modal Styles */
.list-icon-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
}

.icon-option {
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-option:hover {
  transform: translateY(-2px);
  background: rgba(74, 144, 226, 0.1);
}

.icon-option.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.color-picker {
  margin: 1.5rem 0;
}

.color-picker label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.color-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.create-list-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-list-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* List item enhancements */
.list-item-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.list-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

/* Enhanced List Creation Form Styles */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
  outline: none;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color);
  padding: 0 0.5rem;
  color: var(--text-color);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.form-group .input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.form-group input:focus ~ .input-icon {
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.form-group .character-count {
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.7;
}

/* List Creation Section Styles */
.list-creation-section {
  margin: 2rem 0;
}

.list-creation-section h3 {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-creation-section h3 i {
  color: var(--primary-color);
}

/* Enhanced icon and color selection */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.selection-option {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.selection-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selection-option.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.selection-option.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
}

/* Color option enhancements */
.color-option {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.color-option.active::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ...existing code... */

.list-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.delete-list-btn {
  opacity: 0;
  transform: translateX(10px);
  padding: 0.4rem;
  border: none;
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-item:hover .delete-list-btn {
  opacity: 1;
  transform: translateX(0);
}

.delete-list-btn:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.1);
}

.delete-list-btn .hover-text {
  position: absolute;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  right: calc(100% + 8px);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.delete-list-btn:hover .hover-text {
  opacity: 1;
  transform: translateX(0);
}

.delete-confirmation .modal-content {
  max-width: 400px;
}

.delete-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #e74c3c;
}

.delete-header i {
  font-size: 1.5rem;
}

.task-warning {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(243, 156, 18, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.task-warning i {
  color: #f39c12;
  font-size: 1.2rem;
}

.list-item.deleting {
  animation: slideOutAndFade 0.3s ease forwards;
}

@keyframes slideOutAndFade {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
    margin-bottom: -50px;
  }
}

/* ...existing code... */
