/* Chilexpress Dashboard - Custom Styles & Theme Extension */

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

:root {
  --cx-yellow: #FFCC00;
  --cx-navy: #002B49;
  --cx-blue: #005A9C;
  --cx-dark-bg: #070B12;
  --cx-card-bg: #0F172A;
  --cx-card-border: #1E293B;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--cx-dark-bg);
  color: #F8FAFC;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090D16;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cx-yellow);
}

/* Custom Range Input (Slider) Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1E293B;
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cx-yellow);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #FFE066;
}

/* Accent blue slider thumb */
input[type="range"].accent-blue::-webkit-slider-thumb {
  background: #3B82F6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
input[type="range"].accent-blue::-webkit-slider-thumb:hover {
  background: #60A5FA;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism utility */
.glass-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 41, 59, 0.8);
}

.glass-card-active {
  border-color: var(--cx-yellow);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.15);
}

/* Glowing text effects */
.text-glow-yellow {
  text-shadow: 0 0 12px rgba(255, 204, 0, 0.35);
}

/* Grid & Layout Helpers */
.cx-badge {
  background-color: var(--cx-yellow);
  color: var(--cx-navy);
  font-weight: 800;
  font-style: italic;
  transform: skewX(-12deg);
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cx-badge span {
  transform: skewX(12deg);
}
