:root {
  --bg: #e0e0e6;
  --card: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --accent: #2563eb;
}

body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --accent: #60a5fa;
}

body {
  background-color: var(--bg);
  font-family: 'inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card-container {
  background-color: var(--card);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 80%;
  margin:  auto;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

#themeToggle {
  align-self: flex-end;
  margin-bottom: 12px;
  cursor: pointer;
  background: none;
  border: none;
}
h1{
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  margin-top: 20px;
}
span.streak-number{
  font-size: 1.9rem;
  margin-bottom: 30px;
}
.streak-number{
  animation: transform 0.25s ease, color 0.25s ease;
}
.streak-number.bump{
  transform: scale(1.15);
}
.progress-btn{
  background-color: #22c55e;
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0px 4px 14px 0px rgba(34,197,94,0.39);
  transition: transform 0.15s ease, box-shadow 0.0.15s ease;
}
.progress-btn:hover{
  box-shadow: 0px 6px 20px rgba(34,197,94,0.23);
  transform: translateY(-2px);
}
.progress-btn:active{
  transform: scale(0.95);
}
.active-date{
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-top: 0px;
}
#reason{
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  width: 80%;
  font-size: 1rem;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}
#reason.show {
  opacity: 1;
  transform: translateY(0);
}
#reason::placeholder{
  color: #aaa;
}
#reason:focus{
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 5px #22c55e;
}
#savedReason{
  margin-top: 16px;
 font-style: italic;
  color: var(--text-primary);
}
.progress-bar-bg{
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}
#progressBarFill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #a7f3d0);
  border-radius: 10px;
  transition: width 0.4s ease-in-out;
  box-shadow: 0px 0px 15px #22c55e, 0 0 5px #ffffff;
}
.bump{
  animation: bump 0.2s ease;
}
@keyframes bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.label,.subtitle{
  color: var(--text-secondary);
}
#todayDone{
  margin-top: 0px;
  color: var(--text-secondary);
  font-weight: 500;
}
.level-text{
  color: var(--text-primary);
}

@media (min-width: 700px) {
  .card-container {
    width: 80%;
    padding: 15px;
  }
  
  h1 {
    font-size: 1.1rem;
  }
  
  .progress-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
