@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  --success-color: #10b981;
  --success-hover: #059669;
}

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: var(--text-primary);
  /* Changed background color as requested: Soft flowing pastel sunrise gradient */
  background: linear-gradient(-45deg, #ffecd2, #fcb69f, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: bgFlow 15s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Light Mode Soft Pastel Orbs */
body::before, body::after {
  content: "";
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

body::before {
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
  top: -10%;
  left: -10%;
}

body::after {
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, 15vh) scale(1.15); }
  100% { transform: translate(-15vw, 20vh) scale(0.9); }
}

/* Bright & Clean Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03), 0 5px 15px rgba(0,0,0,0.02);
  padding: 40px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px auto;
  
  /* Entrance Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-panel:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0,0,0,0.03);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.05);
}

/* Typography with soft text clipping */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.brand-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.brand-header h3.inst {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.brand-header h2 {
  font-size: 2.8rem;
  background: linear-gradient(
    to right, 
    #1e293b 20%, 
    #3b82f6 40%, 
    #d946ef 60%, 
    #1e293b 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.brand-header h3.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  color: #0f172a;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
  color: rgba(0,0,0,0.4);
}

/* Modern Clean Buttons */
.btn-custom {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-success {
  background: var(--success-color);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--danger-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: white;
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
}

/* Dashboard List */
.todo-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.todo-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.header-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.header-actions .btn-custom {
  width: auto;
  margin: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.home-card {
  text-align: center;
}

.home-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 15px;
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.8);
}

@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

.completed-box {
  border-left: 5px solid green;
}

.pending-box {
  border-left: 5px solid red;
}

.completed-task .todo-title {
  text-decoration: line-through;
  color: green;
}

.completed-task .todo-desc {
  text-decoration: line-through;
  opacity: 0.7;
}

.overdue {
  color: red;
  font-weight: bold;
}

.priority.high {
  color: red;
  font-weight: bold;
}

.priority.medium {
  color: orange;
}

.priority.low {
  color: green;
}
