:root {
  --uv-red: #ed1d24;
  --uv-navy: #1a2331;
  --uv-navy-2: #283243;
  --uv-bg: #f7fafc;
  --uv-surface: #ffffff;
  --uv-text: #1a2331;
  --uv-muted: #718096;
}

body {
  background: var(--uv-bg);
  color: var(--uv-text);
  font-family: "Exo 2", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.uv-brand {
  font-family: "Exo 2", sans-serif;
}

.uv-nav {
  background: var(--uv-surface);
  border-color: rgba(26, 35, 49, 0.12);
}

.uv-brand {
  color: var(--uv-navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uv-nav-link {
  color: var(--uv-navy);
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(26, 35, 49, 0.22);
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(26, 35, 49, 0.04);
}

.uv-nav-link:hover {
  color: var(--uv-red);
  border-color: rgba(237, 29, 36, 0.45);
  background: #fff7f8;
}

.uv-nav-link-logout {
  background: var(--uv-red);
  border-color: var(--uv-red);
  color: #ffffff;
}

.uv-nav-link-logout:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

.uv-accent {
  color: var(--uv-red);
}

.uv-btn-primary {
  background: var(--uv-red);
  color: #fff;
}

.uv-btn-primary:hover {
  background: var(--uv-navy);
}

.uv-btn-new {
  color: #15803d !important;
}

.uv-btn-new:hover {
  color: #ffffff !important;
}

button:not(.uv-nav-link):not(.connect-btn),
input[type="button"],
input[type="submit"],
input[type="reset"],
a[class*="rounded"]:not(.uv-nav-link),
a[role="button"]:not(.uv-nav-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff !important;
  color: var(--uv-navy) !important;
  border: 1px solid rgba(26, 35, 49, 0.25) !important;
  transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button:not(.uv-nav-link):not(.connect-btn):hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
a[class*="rounded"]:hover,
a[role="button"]:hover {
  background-color: var(--uv-navy) !important;
  color: #ffffff !important;
  border-color: var(--uv-navy) !important;
  box-shadow: 0 10px 18px -12px rgba(26, 35, 49, 0.6);
}

main button:not(.uv-nav-link):not(.connect-btn):hover,
main input[type="button"]:hover,
main input[type="submit"]:hover,
main input[type="reset"]:hover,
main a[class*="rounded"]:hover,
main a[role="button"]:hover {
  background-color: var(--uv-navy) !important;
  color: #ffffff !important;
  border-color: var(--uv-navy) !important;
}

button:not(.uv-nav-link):not(.connect-btn):active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
a.uv-nav-link:active,
a[class*="rounded"]:active,
a[role="button"]:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.97);
}

button:not(.uv-nav-link)[class*="red"]:hover,
input[type="button"][class*="red"]:hover,
input[type="submit"][class*="red"]:hover,
input[type="reset"][class*="red"]:hover,
a[class*="rounded"][class*="red"]:hover,
a[role="button"][class*="red"]:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

/* Force all delete/danger buttons to red fill on hover everywhere in app. */
button[class*="border-red-"]:hover,
button[class*="text-red-"]:hover,
input[type="button"][class*="border-red-"]:hover,
input[type="submit"][class*="border-red-"]:hover,
input[type="reset"][class*="border-red-"]:hover,
a[class*="border-red-"]:hover,
a[class*="text-red-"]:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

button:not(.uv-nav-link)[class*="red"],
input[type="button"][class*="red"],
input[type="submit"][class*="red"],
input[type="reset"][class*="red"],
a[class*="rounded"][class*="red"],
a[role="button"][class*="red"] {
  background-color: #ffffff !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

.bg-slate-900 {
  background-color: var(--uv-navy) !important;
}

button:not(.uv-nav-link).bg-slate-900,
input[type="button"].bg-slate-900,
input[type="submit"].bg-slate-900,
input[type="reset"].bg-slate-900,
a[class*="rounded"].bg-slate-900,
a[role="button"].bg-slate-900 {
  background-color: #ffffff !important;
  color: var(--uv-navy) !important;
  border: 1px solid rgba(26, 35, 49, 0.25) !important;
}

.hover\:bg-slate-700:hover {
  background-color: var(--uv-red) !important;
}

.border-slate-300 {
  border-color: rgba(26, 35, 49, 0.25) !important;
}

.text-slate-500 {
  color: var(--uv-muted) !important;
}

.text-blue-700 {
  color: var(--uv-red) !important;
}

.uv-data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.uv-data-table thead th {
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.uv-data-table tbody td {
  padding: 0.7rem 0.7rem;
  vertical-align: top;
}

@media (max-width: 767px) {
  .uv-data-table thead th {
    padding: 0.85rem 1rem;
  }

  .uv-data-table tbody td {
    padding: 0.95rem 1rem;
  }
}

.bg-slate-100,
.bg-slate-50 {
  background-color: #f7fafc !important;
}

button:not(.uv-nav-link).uv-btn-new,
input[type="button"].uv-btn-new,
input[type="submit"].uv-btn-new,
input[type="reset"].uv-btn-new,
a.uv-btn-new {
  color: #15803d !important;
  border-color: rgba(26, 35, 49, 0.25) !important;
}

a.uv-btn-new[class*="rounded"]:not(.uv-nav-link) {
  color: #15803d !important;
}

a.uv-btn-warn[class*="rounded"]:not(.uv-nav-link) {
  color: #ca8a04 !important;
}

button:not(.uv-nav-link).uv-btn-new:hover,
input[type="button"].uv-btn-new:hover,
input[type="submit"].uv-btn-new:hover,
input[type="reset"].uv-btn-new:hover,
a.uv-btn-new:hover {
  background-color: #15803d !important;
  color: #ffffff !important;
  border-color: #15803d !important;
}

/* High-specificity "new" override (must beat main button hover blue rule). */
main button:not(.uv-nav-link):not(.connect-btn).uv-btn-new:hover,
main input[type="button"].uv-btn-new:hover,
main input[type="submit"].uv-btn-new:hover,
main input[type="reset"].uv-btn-new:hover,
main a[class*="rounded"].uv-btn-new:hover {
  background-color: #15803d !important;
  color: #ffffff !important;
  border-color: #15803d !important;
}

button:not(.uv-nav-link).uv-btn-warn,
input[type="button"].uv-btn-warn,
input[type="submit"].uv-btn-warn,
input[type="reset"].uv-btn-warn,
a.uv-btn-warn {
  color: #b45309 !important;
  border-color: #fcd34d !important;
}

button:not(.uv-nav-link).uv-btn-warn:hover,
input[type="button"].uv-btn-warn:hover,
input[type="submit"].uv-btn-warn:hover,
input[type="reset"].uv-btn-warn:hover,
a.uv-btn-warn:hover {
  background-color: #facc15 !important;
  color: #1a2331 !important;
  border-color: #facc15 !important;
}

/* High-specificity warning override (must beat main button hover blue rule). */
main button:not(.uv-nav-link):not(.connect-btn).uv-btn-warn:hover,
main input[type="button"].uv-btn-warn:hover,
main input[type="submit"].uv-btn-warn:hover,
main input[type="reset"].uv-btn-warn:hover,
main a[class*="rounded"].uv-btn-warn:hover {
  background-color: #facc15 !important;
  color: #1a2331 !important;
  border-color: #facc15 !important;
}

/* High-specificity danger override (must beat main button hover blue rule). */
main button:not(.uv-nav-link):not(.connect-btn)[class*="border-red-"]:hover,
main button:not(.uv-nav-link):not(.connect-btn)[class*="text-red-"]:hover,
main input[type="button"][class*="border-red-"]:hover,
main input[type="submit"][class*="border-red-"]:hover,
main input[type="reset"][class*="border-red-"]:hover,
main a[class*="rounded"][class*="border-red-"]:hover,
main a[class*="rounded"][class*="text-red-"]:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

.uv-survey-bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 68, 68, 0.18), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(30, 41, 59, 0.2), transparent 42%),
    linear-gradient(155deg, #f8d7dd 0%, #e6ebf4 48%, #cfd9e8 100%);
}

.uv-admin-bg {
  background: linear-gradient(155deg, #e5e7eb 0%, #a7b4c9 48%, #1a2331 100%);
}

.uv-portal-bg {
  background: linear-gradient(155deg, #020816 0%, #061225 42%, #ffffff 100%);
}

.uv-scraper-bg {
  background: linear-gradient(155deg, #d5535d 0%, #9f1d2c 44%, #000000 100%);
}

.uv-survey-cctv {
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(2, 5, 17, 0.28), rgba(2, 5, 17, 0.28)),
    url("../assets/CCTV1.png") center center / cover no-repeat fixed;
}

.uv-logo-on-dark {
  filter: brightness(0) invert(1);
}

.uv-survey-bg > :not(script):not(.uv-cityline) {
  position: relative;
  z-index: 1;
}

.uv-survey-form .uv-answer-shell {
  border: 1px solid rgba(37, 57, 86, 0.26);
  border-radius: 12px;
  background: #dfe8f6;
  box-shadow: 0 10px 22px -18px rgba(26, 35, 49, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 0.9rem 0.95rem;
}

.uv-survey-form .uv-answer-shell textarea,
.uv-survey-form .uv-answer-shell input[type="text"],
.uv-survey-form .uv-answer-shell input[type="email"],
.uv-survey-form .uv-answer-shell input[type="number"],
.uv-survey-form .uv-answer-shell select {
  width: 100%;
  border: 1px solid rgba(37, 57, 86, 0.25);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
  padding: 0.72rem 0.8rem;
}

.uv-survey-form .uv-answer-shell textarea:focus,
.uv-survey-form .uv-answer-shell input[type="text"]:focus,
.uv-survey-form .uv-answer-shell input[type="email"]:focus,
.uv-survey-form .uv-answer-shell input[type="number"]:focus,
.uv-survey-form .uv-answer-shell select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.uv-survey-form .uv-answer-shell label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(63, 98, 152, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 52%, #e8edf3 100%);
  padding: 0.5rem 0.7rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
}

.uv-survey-form .uv-answer-shell input[type="checkbox"],
.uv-survey-form .uv-answer-shell input[type="radio"] {
  accent-color: #1a2331;
}

/* All complex questions: remove pill/button-like label styling. */
.uv-survey-form.uv-complex-question .uv-answer-shell label {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0.35rem 0;
}

.uv-survey-form.uv-complex-question .uv-answer-shell .space-y-1 > div label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.2rem 0;
}

.uv-survey-form.uv-complex-question .uv-answer-shell .space-y-1 > div > label {
  margin-bottom: 0.65rem;
}

.uv-survey-form.uv-complex-question .uv-answer-shell .space-y-1 ul,
.uv-survey-form.uv-complex-question .uv-answer-shell .space-y-1 .checkbox-number-rows,
.uv-survey-form.uv-complex-question .uv-answer-shell .space-y-1 .address-rows {
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
}

/* Forced start complex question: remove pill/button-like label styling. */
.uv-survey-form.uv-complex-forced .uv-answer-shell label {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0.35rem 0;
}

.uv-survey-form.uv-complex-forced .uv-answer-shell .space-y-1 > div label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.2rem 0;
}

.uv-cityline {
  /* Tymczasowo ukryte: markup zostaje w szablonie zakomentowany do łatwego przywrócenia. */
  display: none !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.uv-city-stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 320px;
  opacity: 0.95;
}

.uv-city-base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--uv-navy);
}

.uv-homes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.uv-homes.uv-front {
  z-index: 3;
}

.uv-homes.uv-back {
  z-index: 2;
  transform: translateX(-24px) translateY(20px);
}

.uv-homes.uv-moreback {
  z-index: 1;
  transform: translateX(72px) translateY(36px);
}

.uv-homes.uv-back > div,
.uv-homes.uv-back > div::before,
.uv-homes.uv-back > div::after {
  background: #394860;
}

.uv-homes.uv-moreback > div,
.uv-homes.uv-moreback > div::before,
.uv-homes.uv-moreback > div::after {
  background: #56637a;
}

.uv-home1,
.uv-home2,
.uv-home3,
.uv-home4,
.uv-home5,
.uv-home6,
.uv-home7,
.uv-home8,
.uv-home9,
.uv-home10,
.uv-home11,
.uv-home12,
.uv-home13,
.uv-home14 {
  position: absolute;
  bottom: 0;
  background: #1a2331;
}

.uv-home1 { left: 2.6%; width: 1.3%; min-width: 16px; height: 170px; }
.uv-home2 { left: 10.4%; width: 1.3%; min-width: 16px; height: 230px; }
.uv-home3 { left: 17.5%; width: 1.3%; min-width: 16px; height: 160px; }
.uv-home4 { left: 25.3%; width: 5.8%; min-width: 70px; height: 250px; clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0 100%, 0% 38%); }
.uv-home5 { left: 35.1%; width: 1.3%; min-width: 16px; height: 175px; }
.uv-home6 { left: 42.8%; width: 1.3%; min-width: 16px; height: 270px; }
.uv-home7 { left: 50%; width: 1.3%; min-width: 16px; height: 165px; }
.uv-home8 { left: 54.5%; width: 1.3%; min-width: 16px; height: 185px; }
.uv-home9 { left: 62.3%; width: 1.3%; min-width: 16px; height: 235px; }
.uv-home10 { left: 69.5%; width: 1.3%; min-width: 16px; height: 170px; }
.uv-home11 { left: 77.3%; width: 5.8%; min-width: 70px; height: 260px; clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0 100%, 0% 38%); }
.uv-home12 { left: 80.6%; width: 1.3%; min-width: 16px; height: 180px; }
.uv-home13 { left: 88.4%; width: 1.3%; min-width: 16px; height: 240px; }
.uv-home14 { left: 95.5%; width: 1.3%; min-width: 16px; height: 165px; }

.uv-front .uv-home2,
.uv-front .uv-home6,
.uv-front .uv-home11 {
  background: #22324a;
}

.uv-front .uv-home4,
.uv-front .uv-home9,
.uv-front .uv-home13 {
  background: #8f1d2a;
}

.uv-front .uv-home4::before,
.uv-front .uv-home4::after,
.uv-front .uv-home9::before,
.uv-front .uv-home9::after,
.uv-front .uv-home13::before,
.uv-front .uv-home13::after {
  background: inherit;
}

.uv-home1::before, .uv-home5::before, .uv-home8::before, .uv-home12::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 20px;
  height: 130px;
  background: inherit;
}

.uv-home1::after, .uv-home5::after, .uv-home8::after, .uv-home12::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 30px;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0% 100%);
}

.uv-home2::before, .uv-home6::before, .uv-home9::before, .uv-home13::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 60px;
  height: 165px;
  background: inherit;
}

.uv-home2::after, .uv-home6::after, .uv-home9::after, .uv-home13::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: 0;
  width: 100px;
  height: 90px;
  background: inherit;
}

.uv-home3::before, .uv-home7::before, .uv-home10::before, .uv-home14::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 30px;
  height: 84px;
  background: inherit;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0% 100%);
}

.uv-home3::after, .uv-home7::after, .uv-home10::after, .uv-home14::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 20px;
  height: 126px;
  background: inherit;
}

@media (max-width: 768px) {
  .uv-cityline {
    height: 170px;
  }
  .uv-city-stage {
    width: 100%;
    height: 170px;
  }
  .uv-home1, .uv-home2, .uv-home3, .uv-home4, .uv-home5, .uv-home6, .uv-home7,
  .uv-home8, .uv-home9, .uv-home10, .uv-home11, .uv-home12, .uv-home13, .uv-home14 {
    min-width: 10px;
    height: 96px;
    bottom: 0;
  }
  .uv-home2, .uv-home6, .uv-home9, .uv-home11, .uv-home13 {
    height: 132px;
  }
  .uv-city-base {
    height: 0;
  }
}

