/* Custom Palette & Rules
   #F7FBFF - Sky background
   #0077B6 - Primary action cyan/blue
   #FF8A5B - Coral accent / highlight
   #03045E - Deep ocean header / text
*/

@layer base {
  body {
    background-color: #F7FBFF;
    color: #03045E;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F7FBFF;
}
::-webkit-scrollbar-thumb {
  background: #0077B6;
  border-radius: 9999px;
}

/* Selected state for dynamic selectors */
.avatar-opt.selected,
.cat-opt.selected {
  border-color: #0077B6 !important;
  background-color: rgba(0, 119, 182, 0.15) !important;
  transform: scale(1.05);
}

/* Day grid box styling */
.day-box {
  transition: all 0.2s ease-in-out;
}
.day-box.completed {
  background-color: #0077B6;
  color: white;
  border-color: #0077B6;
}
.day-box.completed::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 10px;
  font-weight: 900;
  color: #FF8A5B;
}

/* Animated Progress Bars */
.progress-fill {
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Modal animations */
@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#goalModal > div,
#depositModal > div,
#reportModal > div,
#profileModal > div,
#certModal > div {
  animation: modalPop 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Print Rules for Certificate */
@media print {
  body * {
    visibility: hidden;
  }
  #certModal, #certModal * {
    visibility: visible;
  }
  #certModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    padding: 0 !important;
  }
  #certModal button {
    display: none !important;
  }
}