/* zurlk.app UI refresh: home + dashboard */

:root {
  --zui-ink: #102a43;
  --zui-muted: #486581;
  --zui-card: #ffffff;
  --zui-border: #d9e2ec;
  --zui-accent: #0f766e;
  --zui-accent-2: #0284c7;
  --zui-soft: #f4fafb;
  --zui-shadow: 0 14px 40px rgba(16, 42, 67, 0.12);
}

@keyframes zui-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOME */
#hero.zurlk-hero {
  position: relative;
  overflow: hidden;
}

#hero.zurlk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(2, 132, 199, 0.16), transparent 40%),
    radial-gradient(circle at 82% 12%, rgba(15, 118, 110, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(244, 250, 251, 0.55));
  pointer-events: none;
}

#hero.zurlk-hero .container {
  position: relative;
  z-index: 1;
}

#hero.zurlk-hero form[data-trigger="shorten-form"] {
  background: linear-gradient(180deg, #ffffff, #f7fcfd);
  border: 1px solid #cdddea !important;
  box-shadow: var(--zui-shadow);
}

#hero.zurlk-hero .btn-primary {
  background-image: linear-gradient(120deg, var(--zui-accent) 0%, var(--zui-accent-2) 100%);
  border: 0;
}

#hero.zurlk-hero .btn-primary:hover {
  filter: brightness(0.96);
}

.zurlk-home-strip {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.zurlk-home-strip-card {
  border-radius: 18px;
  border: 1px solid var(--zui-border);
  background: var(--zui-card);
  box-shadow: var(--zui-shadow);
  padding: 1.2rem 1.1rem;
  height: 100%;
  animation: zui-rise 0.5s ease both;
}

.zurlk-home-strip-card i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.7rem;
  background: linear-gradient(130deg, var(--zui-accent), var(--zui-accent-2));
}

.zurlk-home-strip-card h3 {
  color: var(--zui-ink);
  margin-bottom: 0.2rem;
  font-size: 1.55rem;
}

.zurlk-home-strip-card p {
  color: var(--zui-muted);
  margin-bottom: 0;
  font-weight: 600;
}

/* DASHBOARD */
.zurlk-dashboard-shell {
  background:
    radial-gradient(circle at 95% 0%, rgba(2, 132, 199, 0.08), transparent 30%),
    radial-gradient(circle at 0% 12%, rgba(15, 118, 110, 0.08), transparent 28%);
}

.zurlk-dashboard-hero {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(130deg, #0f172a 0%, #115e59 52%, #0369a1 100%);
  color: #fff;
  padding: 1.4rem 1.4rem;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
  animation: zui-rise 0.55s ease both;
}

.zurlk-dashboard-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -110px;
  right: -90px;
  pointer-events: none;
}

.zurlk-dashboard-hero__tag {
  display: inline-block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.zurlk-dashboard-hero h2 {
  margin-bottom: 0.4rem;
}

.zurlk-dashboard-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.9rem;
}

.zurlk-dashboard-hero .btn {
  border-radius: 10px;
  border-width: 1px;
}

.zurlk-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.zurlk-kpi-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(3px);
  padding: 0.8rem;
}

.zurlk-kpi-card span {
  font-size: 0.72rem;
  opacity: 0.87;
  display: block;
}

.zurlk-kpi-card strong {
  font-size: 1.15rem;
  line-height: 1.15;
  display: block;
}

.zurlk-dashboard-shell .card.rounded-4 {
  border: 1px solid #d9e6f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

.zurlk-dashboard-shell .border.rounded.rounded-4 {
  border-color: #cfdbe8 !important;
  background: linear-gradient(180deg, #f8fbff, #f7fbfb);
}

.zurlk-dashboard-shell .chart.chart-lg {
  min-height: 270px;
}

@media (max-width: 991.98px) {
  .zurlk-home-strip {
    margin-top: 0;
  }
  .zurlk-dashboard-kpis {
    margin-top: 0.3rem;
  }
}

@media (max-width: 575.98px) {
  .zurlk-dashboard-hero {
    padding: 1rem;
  }
}

/* Dark mode compatibility */
html[data-theme="dark"] .zurlk-home-strip-card {
  background: #0f172a;
  border-color: #334155;
}

html[data-theme="dark"] .zurlk-home-strip-card h3,
html[data-theme="dark"] .zurlk-home-strip-card p {
  color: #e2e8f0;
}

body.dark .zurlk-dashboard-shell .card.rounded-4,
body.dark .zurlk-dashboard-shell .border.rounded.rounded-4 {
  background: #111827;
  border-color: #374151 !important;
}
