/* CSS Variables */
:root {
  --color-primary: 239 68 68;
  --bg-body: #09090b;
  --bg-card: rgba(24, 24, 27, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f4f4f5;
  --text-dim: #a1a1aa;
  --glass-bg: rgba(24, 24, 27, 0.6);
  --footer-bg: #000000;
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --bg-gradient: radial-gradient(
    circle at 50% 0%,
    rgba(var(--color-primary), 0.15) 0%,
    #09090b 60%
  );
}

.light-mode {
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #18181b;
  --text-dim: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --footer-bg: #f1f5f9;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --bg-gradient: radial-gradient(
    circle at 50% 0%,
    rgba(var(--color-primary), 0.1) 0%,
    #f8fafc 60%
  );
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.header-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--color-primary));
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body.modal-active {
  overflow: hidden;
}

.date-circle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.date-circle:hover {
  transform: scale(1.1);
  background: rgba(125, 125, 125, 0.1);
}

.progress-bar-fill {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sortable-ghost {
  opacity: 0.4;
  background: var(--border-color);
  border: 2px dashed var(--text-dim);
}
.sortable-drag {
  cursor: grabbing;
}

.circle-bg {
  fill: none;
  stroke: rgba(125, 125, 125, 0.1);
  stroke-width: 3.8;
}
.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease-in-out, stroke 0.3s;
}

.color-swatch.selected {
  ring-width: 2px;
  ring-color: #ffffff;
  transform: scale(1.1);
}
