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

:root {
  /* Default morning phase (hardcoded state) */
  --sky-top: #74b9ff;
  --sky-mid: #a8d8f0;
  --sky-bottom: #dfe6e9;
  --sky-text-color: #2d3436;
  --sun-x: 30%;
  --sun-y: 30%;
  --sun-visible: flex;
  --moon-visible: none;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.4);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--sky-text-color);
  margin: 0;
  padding: 0;
  background-color: var(--sky-bottom);
  min-height: 100vh;
  overflow-x: hidden;
  transition: color 1s ease;
}

h1, h2, h3, h4, h5, h6, .font-nunito {
  font-family: 'Nunito', sans-serif;
}

/* Sky System */
.sky-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-mid), var(--sky-bottom));
  transition: background 1s ease;
  overflow: hidden;
}

.sun-character, .moon-character {
  position: absolute;
  left: var(--sun-x);
  top: var(--sun-y);
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  transition: left 2s ease, top 2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sun-character {
  display: var(--sun-visible);
  filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.6));
}
.moon-character {
  display: var(--moon-visible);
  filter: drop-shadow(0 0 15px rgba(223, 230, 233, 0.4));
}

/* Clouds */
.clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  animation: drift linear infinite;
  filter: blur(8px);
}
.cloud-1 { top: 15%; width: 200px; height: 60px; animation-duration: 120s; animation-delay: 0s; left:-200px; }
.cloud-2 { top: 40%; width: 150px; height: 50px; animation-duration: 90s; animation-delay: -30s; left:-150px;}
.cloud-3 { top: 25%; width: 300px; height: 80px; animation-duration: 150s; animation-delay: -60s; left:-300px;}

@keyframes drift {
  0% { transform: translateX(-10vw); }
  100% { transform: translateX(110vw); }
}

/* Components */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: background 1s ease, border 1s ease;
}

.pill {
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.pill-pending { background: #e2e8f0; color: #475569; }
.pill-in_progress { background: #bfdbfe; color: #1d4ed8; }
.pill-blocked { background: #fecaca; color: #b91c1c; }
.pill-completed { background: #bbf7d0; color: #15803d; }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
}

.glass-input, .glass-textarea, .glass-select {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 10px 16px;
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
  color: var(--sky-text-color);
  transition: all 0.2s;
}
.glass-input:focus, .glass-textarea:focus, .glass-select:focus {
  border-color: #74b9ff;
  box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.2);
  background: rgba(255, 255, 255, 0.8);
}
.night-mode .glass-input, .night-mode .glass-textarea, .night-mode .glass-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}
.night-mode .glass-input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(to right, #74b9ff, #0984e3);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-primary:active {
  transform: scale(0.98);
}

.nav-bar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Layout Utilities (Tailwind-like classes where needed, though we use CDN) */
.content-layer {
  position: relative;
  z-index: 10;
}
