/* ==========================
   Global Styles
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  /* Gradient background with subtle animation */
  background: linear-gradient(135deg, #e0f7fa, #f0f4f8, #d1c4e9);
  background-size: 600% 600%;
  animation: gradientShift 20s ease infinite;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* Background animation */
@keyframes gradientShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* ==========================
   Header
========================== */
.header {
  background: rgba(99,102,241,0.9); /* semi-transparent gradient overlay */
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(59,130,246,0.9));
  color: #fff;
  padding: 1.8rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.header h1 {
  font-size: 2rem;
  font-weight: bold;
}

.header-meta {
  margin-top: 5px;
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 1px;
}

/* ==========================
   Layout
========================== */
.container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* Add subtle shadowed cards on gradient background */
.left, .right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
  position: relative;
}

/* ==========================
   Cards
========================== */
.card {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px); /* subtle frosted glass effect */
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

/* ==========================
   Forms
========================== */
form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 500;
  color: #374151;
}

form input,
form select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

form input:focus,
form select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn.primary {
  background: #6366f1;
  color: white;
}

.btn.primary:hover {
  background: #4f46e5;
}

.btn:hover {
  opacity: 0.9;
}

/* ==========================
   Filters & Progress
========================== */
.filters label {
  margin-top: 10px;
  font-weight: 500;
}

.progress-row {
  display: flex;
  align-items: center;
  margin-top: 15px;
  gap: 0.8rem;
}

.progress-label {
  font-size: 0.9rem;
  color: #374151;
}

.progress-bar {
  flex: 1;
  height: 14px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#progress-fill {
  background: linear-gradient(90deg, #10b981, #22c55e);
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

#progress-percent {
  font-size: 0.85rem;
  font-weight: bold;
  color: #111827;
  min-width: 40px;
  text-align: right;
}

/* ==========================
   Tasks List
========================== */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.task {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 6px solid #6366f1;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

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

.task .info {
  flex: 1;
}

.task .info .meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 3px;
}

.actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.priority-low { color: #10b981; font-weight: bold; }
.priority-medium { color: #f59e0b; font-weight: bold; }
.priority-high { color: #ef4444; font-weight: bold; }

.status-chip {
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  background: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.status-chip:hover {
  background: #d1d5db;
}

/* ==========================
   Upcoming Section
========================== */
.upcoming {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.up-item {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #6366f1;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.up-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================
   Footer
========================== */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.95);
  margin-top: 1.5rem;
  color: #4b5563;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  backdrop-filter: blur(5px);
}

.footer .small {
  font-size: 0.8rem;
  margin-top: 3px;
  color: #6b7280;
}

/* ==========================
   Responsive Design
========================== */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}
