/* ========== General Styles ========== */
body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-bottom: 50px;
  transition: all 0.3s ease;
}
#bghed{
  background-color: #16213e !important;
}

/* ========== Header Styles ========== */
header h1 {
  font-size: 2rem;
  font-weight: bold;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========== Card Styles ========== */
.card {
  background: #0f3460;
  color: white;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

/* .card:hover {
  transform: translateY(-5px);
} */

/* ========== Input Styles ========== */
.form-control {
  background: #16213e;
  color: white;
  border: 2px solid #533483;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #aaa;
}

.form-control:focus {
  border-color: #764ba2;
  box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25);
  background-color: transparent;
  outline: none;
  color: white;
}

/* ========== Input Group ========== */
.input-group-text {
  background: #16213e;
  color: white;
  border: 2px solid #533483;
}

/* ========== Button Styles ========== */
.btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ========== Task Item Styles ========== */
.task-item {
  background: #16213e;
  color: white;
  border: 1px solid #533483;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.task-item:hover {
  /* transform: translateX(-10px); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.task-item.completed {
  background: #1a3a2e;
  opacity: 0.8;
}

.task-item.completed .task-name,
.task-item.completed .task-description {
  text-decoration: line-through;
  color: #95a5a6;
}

.task-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e8e8e8;
  margin-bottom: 5px;
}

.task-description {
  font-size: 1rem;
  color: #b8b8b8;
  margin-bottom: 0;
}

/* ========== Action Buttons ========== */
.btn-sm {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.btn-done {
  background-color: #27ae60;
  color: white;
  border: none;
}

.btn-done:hover {
  background-color: #229954;
  color: white;
}

.btn-edit {
  background-color: #3498db;
  color: white;
  border: none;
}

.btn-edit:hover {
  background-color: #2980b9;
  color: white;
}

.btn-delete {
  background-color: #e74c3c;
  color: white;
  border: none;
}

.btn-delete:hover {
  background-color: #c0392b;
  color: white;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

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

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* ========== Search Highlight ========== */
.highlight {
  background-color: #f39c12;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
  color: #1a1a2e;
}

/* ========== Alert ========== */
.alert {
  border-radius: 8px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .task-item {
    padding: 15px;
  }
  
  .task-name {
    font-size: 1rem;
  }
  
  .task-description {
    font-size: 0.875rem;
  }
}
