/* ==========================================================================
   Globintec — Custom Styles
   These complement Tailwind utilities loaded via CDN.
   ========================================================================== */

/* Smooth scrolling for in-page anchors */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Material Symbols defaults ----- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ----- Elevation tokens (from DESIGN.md) ----- */
.card-elevation-1 {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.card-elevation-2 {
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.10);
}

.ambient-shadow {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* ----- Hover-lift transition (400ms per design system) ----- */
.transition-lift {
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 400ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-lift:hover {
  transform: translateY(-2px);
}

/* ----- Mobile menu ----- */
.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

/* ----- Active nav indicator ----- */
.nav-link-active {
  color: #004ac6;
  font-weight: 700;
  border-bottom: 2px solid #004ac6;
  padding-bottom: 4px;
}

/* ----- Dashboard sidebar styles ----- */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #434655;
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}

.sidebar-link:hover {
  background-color: #eff4ff;
  color: #004ac6;
}

.sidebar-link.is-active {
  background-color: #dbe1ff;
  color: #004ac6;
  font-weight: 600;
}

/* ----- KPI card accents ----- */
.kpi-card {
  border-left-width: 4px;
  border-left-style: solid;
}

.kpi-card.kpi-primary  { border-left-color: #004ac6; }
.kpi-card.kpi-success  { border-left-color: #006c49; }
.kpi-card.kpi-info     { border-left-color: #005e6e; }
.kpi-card.kpi-error    { border-left-color: #ba1a1a; }

/* ----- Bar chart bars (CSS-only) ----- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 16px;
  height: 280px;
  padding: 16px 8px 8px 8px;
}

.bar-chart .bar {
  flex: 1;
  background-color: #dbe1ff;
  border-radius: 6px 6px 0 0;
  position: relative;
  min-width: 30px;
  transition: background-color 300ms ease, transform 300ms ease;
}

.bar-chart .bar:hover {
  background-color: #b4c5ff;
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.bar-chart .bar.is-current {
  background-color: #004ac6;
}

.bar-chart .bar.is-projection {
  background-color: #dbe1ff;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.5) 6px,
    rgba(255, 255, 255, 0.5) 12px
  );
  border: 1px dashed #b4c5ff;
}

.bar-chart .bar-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #434655;
  white-space: nowrap;
}

/* ----- Activity timeline connector ----- */
.activity-item {
  position: relative;
  padding-left: 56px;
}

.activity-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -16px;
  width: 2px;
  background-color: #c3c6d7;
}

.activity-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ----- Filter chips for product directory ----- */
.filter-chip {
  background-color: #dce9ff;
  color: #434655;
  padding: 8px 24px;
  border-radius: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
  border: none;
}

.filter-chip:hover {
  background-color: #d5e3fc;
}

.filter-chip.is-active {
  background-color: #004ac6;
  color: #ffffff;
}

/* ----- Product card hide animation for filtering ----- */
.product-card {
  transition: opacity 300ms ease, transform 300ms ease;
}

.product-card.is-hidden {
  display: none;
}

/* ----- Form focus ring ----- */
.input-field {
  background-color: #ffffff;
  border: 1px solid #c3c6d7;
  border-radius: 8px;
  padding: 8px 16px;
  width: 100%;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  font-family: inherit;
  font-size: 14px;
  color: #0d1c2e;
}

.input-field:focus {
  outline: none;
  border-color: #004ac6;
  box-shadow: 0 0 0 2px rgba(0, 74, 198, 0.2);
}

/* ----- Print: keep hero clean ----- */
@media print {
  header, footer, .no-print { display: none !important; }
}
