/* ===============================
   BATGROUP - Construction Control Center
   Scope: UX Builder HTML sections
================================ */

/* Reset nhẹ trong phạm vi section */
.hero-text-section,
.tagline-section,
.features-section,
.dashboard-section {
  font-family: "Montserrat", "Arial", sans-serif;
  box-sizing: border-box;
}

.hero-text-section *,
.tagline-section *,
.features-section *,
.dashboard-section * {
  box-sizing: border-box;
}

/* ===============================
   1. Hero Text Section
================================ */

.hero-text-section {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 74px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.94)),
    radial-gradient(circle at 50% 105%, rgba(0,105,58,0.12), transparent 36%);
}

.hero-text-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
  background:
    linear-gradient(135deg, transparent 48%, rgba(0,95,55,0.12) 49%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(0,95,55,0.09) 49%, transparent 50%);
  background-size: 34px 34px;
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}

.hero-text-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-text-inner h1 {
  margin: 0;
  color: #00853f;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.section-sub {
  margin: 16px auto 0;
  color: #0d5f3e;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.45;
  font-weight: 500;
}

.accent-line {
  width: 86px;
  height: 4px;
  margin: 24px auto 38px;
  background: linear-gradient(90deg, #00853f, #7cc242);
  border-radius: 100px;
}

.hero-text-body {
  max-width: 700px;
  margin: 0 auto;
}

.hero-para {
  margin: 0;
  color: #174335;
  font-size: 15.5px;
  line-height: 1.9;
  font-weight: 500;
  text-align: left;
}

/* ===============================
   2. Tagline Section
================================ */

.tagline-section {
  position: relative;
  padding: 56px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 50%, rgba(0,143,65,0.95), rgba(0,39,38,0.93) 34%, rgba(3,18,33,1) 78%),
    linear-gradient(110deg, #008b43, #061629 62%);
}

.tagline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(95,255,147,0.16), transparent 32%),
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

.tagline-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
}

.tagline-left p {
  margin: 0 0 24px;
  color: rgba(255,255,255,0.74);
  font-size: clamp(18px, 2vw, 26px);
  font-family: Georgia, "Times New Roman", serif;
}

.tagline-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tagline-line {
  display: block;
  color: #b9e59a;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.tagline-logo {
  justify-self: center;
  text-align: center;
}

.tagline-logo img {
  width: 118px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.28));
}

.logo-wordmark .bat {
  color: #0aaa4a;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-wordmark .bat span {
  color: #7cc242;
}

.tagline-motto {
  margin-top: 8px;
  color: #ff6f3c;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 5px;
  font-weight: 700;
}

/* ===============================
   3. Feature Cards
================================ */

.features-section {
  padding: 52px 20px 58px;
  background: #ffffff;
}

.features-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.feature-card {
  overflow: hidden;
  border-radius: 24px;
  background: #eaf4ea;
  box-shadow: 0 18px 40px rgba(0, 49, 35, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:nth-child(2) {
  background: #e9f1f1;
}

.feature-card:nth-child(3) {
  background: #eff6e9;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(0, 49, 35, 0.15);
}

.feature-card-header {
  min-height: 68px;
  padding: 22px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-title {
  color: #007447;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.feature-card-img {
  height: 168px;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.05);
}

.feature-card-body {
  padding: 28px 28px 34px;
}

.feature-bullet-list {
  margin: 0;
  padding-left: 20px;
  color: #27644b;
}

.feature-bullet-list li {
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 500;
}

.feature-bullet-list li::marker {
  color: #00853f;
}

/* ===============================
   4. Dashboard Section
================================ */

.dashboard-section {
  padding: 50px 20px 66px;
  background: #0d1d35;
  color: #fff;
}

.dashboard-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.dashboard-title {
  margin: 0 0 30px;
  text-align: center;
  color: rgba(255,255,255,0.78);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dashboard-frame {
  overflow: hidden;
  border: 1px solid rgba(82, 125, 255, 0.35);
  border-radius: 10px;
  background: #101827;
  box-shadow:
    0 0 0 1px rgba(117, 42, 255, 0.25),
    0 26px 70px rgba(0,0,0,0.32);
}

/* Title bar */
.dash-titlebar {
  min-height: 42px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #1d2568, #24126a 48%, #351375);
  border-bottom: 1px solid rgba(0, 212, 255, 0.35);
}

.dash-titlebar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.dash-app-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #153b23;
  background: linear-gradient(135deg, #d9fff0, #6ee7a2);
  font-size: 12px;
  font-weight: 700;
}

.dash-project-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-status-pills {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dash-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
}

.dash-pill.online {
  color: #5cff9a;
}

.dash-pill.offline {
  color: #ff6b83;
}

.dash-pill.pending {
  color: #59d7ff;
}

.dash-time {
  min-width: 72px;
  color: #ffffff;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

/* Body */
.dash-body {
  display: grid;
  grid-template-columns: 142px 1fr;
  min-height: 560px;
  background: #0b1220;
}

.dash-sidebar {
  padding: 14px 10px;
  background: linear-gradient(180deg, #16233b, #101827);
  border-right: 1px solid rgba(63, 220, 255, 0.22);
}

.dash-sidebar-section {
  margin: 10px 0 8px;
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 7px 8px;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.72);
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.dash-sidebar-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 170, 255, 0.32), rgba(0, 255, 157, 0.08));
  border-left: 3px solid #00d1ff;
}

.dash-sidebar-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.dash-sidebar-dot.green {
  background: #30ff91;
}

.dash-sidebar-dot.red {
  background: #ff456d;
}

.dash-sidebar-dot.gray {
  background: #8b92a3;
}

/* Camera grid */
.dash-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(260px, 1fr);
  gap: 2px;
  padding: 2px;
  background: linear-gradient(135deg, #00c8ff, #752aff 48%, #ff2fb3);
}

.cam-cell {
  position: relative;
  overflow: hidden;
  background: #15182d;
}

.cam-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  min-height: 26px;
  padding: 6px 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: rgba(8, 12, 25, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cam-label,
.cam-location {
  color: rgba(255,255,255,0.86);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cam-location {
  color: rgba(255,255,255,0.62);
  font-weight: 600;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #ff285c;
  box-shadow: 0 0 0 rgba(255,40,92,0.65);
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,40,92,0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255,40,92,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,40,92,0);
  }
}

.cam-feed {
  width: 100%;
  height: 100%;
  background: #080b11;
}

.cam-feed img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cam-footer {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 28px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: rgba(6, 10, 20, 0.82);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cam-footer-text {
  color: rgba(255,255,255,0.74);
  font-size: 10px;
  font-weight: 600;
}

.cam-footer-icons {
  display: flex;
  gap: 5px;
}

.cam-icon-btn {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #dff8ff;
  background: rgba(255,255,255,0.09);
  border-radius: 4px;
  font-size: 9px;
}

/* Offline */
.cam-offline {
  height: 100%;
  padding: 54px 18px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(103,65,255,0.18), transparent 34%),
    #19162d;
}

.cam-offline-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.22);
}

.cam-offline-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.cam-offline-text {
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.cam-offline-btn {
  border: 1px solid rgba(0, 210, 255, 0.45);
  border-radius: 6px;
  padding: 7px 12px;
  color: #7ee8ff;
  background: rgba(0, 180, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Bottom bar */
.dash-bottombar {
  min-height: 38px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111827;
  border-top: 1px solid rgba(117,42,255,0.35);
}

.dash-live-indicator {
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.dash-view-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.view-btn {
  width: 26px;
  height: 24px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

.view-btn:nth-child(2) {
  grid-template-columns: repeat(3, 1fr);
}

.view-btn:nth-child(3) {
  display: grid;
  place-items: center;
}

.view-btn.active {
  background: rgba(0, 210, 255, 0.25);
  outline: 1px solid rgba(0, 210, 255, 0.55);
}

.view-btn span {
  display: block;
  min-width: 4px;
  min-height: 4px;
  border-radius: 1px;
  background: rgba(255,255,255,0.72);
}

/* ===============================
   Responsive
================================ */

@media (max-width: 991px) {
  .tagline-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tagline-logo {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .dash-body {
    grid-template-columns: 112px 1fr;
  }

  .dash-status-pills {
    display: none;
  }

  .dash-content {
    grid-auto-rows: minmax(220px, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-text-section {
    padding: 50px 18px 54px;
  }

  .hero-para {
    font-size: 14.5px;
    line-height: 1.75;
    text-align: left;
  }

  .tagline-section {
    padding: 42px 18px;
  }

  .features-section {
    padding: 42px 18px;
  }

  .dashboard-section {
    padding: 42px 10px 50px;
  }

  .dashboard-frame {
    border-radius: 8px;
  }

  .dash-titlebar {
    grid-template-columns: 1fr auto;
  }

  .dash-time {
    font-size: 11px;
  }

  .dash-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-content {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .cam-footer-text {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .feature-card-img {
    height: 145px;
  }

  .feature-card-body {
    padding: 24px 22px 28px;
  }

  .feature-bullet-list li {
    font-size: 14.5px;
  }

  .dashboard-title {
    margin-bottom: 20px;
  }

  .dash-content {
    grid-auto-rows: 230px;
  }

  .tagline-motto {
    letter-spacing: 3px;
  }
}
/* ================================
   BATGROUP Dashboard Demo Section
================================ */

.bat-dashboard-section {
  padding: 70px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 209, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #0b1c33 0%, #07111f 100%);
  font-family: "Montserrat", Arial, sans-serif;
  color: #fff;
  overflow: hidden;
}

.bat-dashboard-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.bat-dashboard-heading {
  max-width: 850px;
  margin: 0 auto 38px;
  text-align: center;
}

.bat-dashboard-eyebrow {
  margin: 0 0 10px;
  color: #00d8ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bat-dashboard-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bat-dashboard-heading p:not(.bat-dashboard-eyebrow) {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.7;
}

.bat-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d8ff, #00a859);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  box-shadow: 0 16px 38px rgba(0, 216, 255, 0.25);
  transition: all 0.25s ease;
}

.bat-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 216, 255, 0.38);
}

/* Shell */

.bat-dashboard-shell {
  overflow: hidden;
  border: 1px solid rgba(0, 216, 255, 0.36);
  border-radius: 16px;
  background: #060c19;
  box-shadow:
    0 0 0 1px rgba(0, 216, 255, 0.1),
    0 30px 90px rgba(0,0,0,0.45);
}

/* Topbar */

.bat-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 270px 1fr 230px;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: #080e1f;
  border-bottom: 1px solid rgba(0, 216, 255, 0.25);
}

.bat-brand-area {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.bat-brand-area img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.bat-brand-area strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.bat-brand-area span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 600;
}

.bat-top-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.bat-top-status .status {
  position: relative;
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bat-top-status .status::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
}

.bat-top-status .status.online::before {
  background: #00ff76;
  box-shadow: 0 0 12px rgba(0,255,118,0.85);
}

.bat-top-status .status.offline::before {
  background: #ff345b;
  box-shadow: 0 0 12px rgba(255,52,91,0.85);
}

.bat-top-status button {
  min-height: 32px;
  padding: 0 18px;
  border: 1px solid rgba(0, 216, 255, 0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.bat-top-status .add-camera {
  color: #ffffff;
  background: linear-gradient(135deg, #00d8ff, #00a6d6);
  box-shadow: 0 0 22px rgba(0, 216, 255, 0.28);
}

.bat-user-area {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 10px;
  justify-content: end;
}

.bat-clock {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.bat-user-area small {
  display: block;
  grid-column: 1 / 2;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  text-align: right;
  margin-top: -2px;
}

.bat-avatar {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f80ed;
  color: #fff;
  font-weight: 900;
}

.bat-user-area span {
  grid-row: 1 / 3;
  grid-column: 3 / 4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Main */

.bat-main-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 520px;
}

/* Sidebar */

.bat-sidebar {
  padding: 18px 10px;
  background: #050a16;
  border-right: 1px solid rgba(0, 216, 255, 0.22);
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding: 0 4px;
}

.sidebar-title span {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.sidebar-title button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  color: #00131d;
  background: #00d8ff;
  font-weight: 900;
}

.project-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 216, 255, 0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.project-card.selected {
  border-color: rgba(0, 216, 255, 0.82);
  background: linear-gradient(90deg, rgba(0,216,255,0.18), rgba(0,168,89,0.05));
  box-shadow: 0 0 22px rgba(0,216,255,0.18);
}

.project-icon {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #00d8ff;
  background: rgba(0,216,255,0.12);
  font-size: 15px;
}

.project-card strong {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.project-card.selected strong {
  color: #00d8ff;
}

.project-card span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 700;
}

.project-card em {
  display: block;
  margin-top: 3px;
  color: #00d8ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

/* Camera grid */

.bat-camera-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
  padding: 3px;
  background: rgba(0, 216, 255, 0.35);
}

.camera-box {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0, 216, 255, 0.42);
}

.camera-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.36), transparent 22%, transparent 68%, rgba(0,0,0,0.5)),
    linear-gradient(90deg, rgba(0,216,255,0.12), transparent 18%, transparent 82%, rgba(0,216,255,0.1));
  pointer-events: none;
}

.camera-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(0.96) brightness(0.82) saturate(0.92);
}

.vertical-view img {
  object-fit: cover;
}

.camera-label {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.camera-label strong {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.camera-label span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-radius: 50%;
  vertical-align: middle;
}

.dot.red {
  background: #ff345b;
  box-shadow: 0 0 10px rgba(255,52,91,0.9);
}

.dot.green {
  background: #00ff76;
  box-shadow: 0 0 10px rgba(0,255,118,0.9);
}

.camera-action {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.camera-action span,
.camera-action button {
  border: 1px solid rgba(0, 216, 255, 0.48);
  border-radius: 5px;
  background: rgba(0, 31, 42, 0.72);
  color: #00e2ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.camera-action span {
  padding: 8px 12px;
  color: #00ff76;
  border-color: rgba(0,255,118,0.4);
}

.camera-action button {
  padding: 8px 10px;
}

.camera-action.compact {
  right: auto;
  gap: 6px;
}

.camera-action.compact span,
.camera-action.compact button {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
}

.camera-time {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 120px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 700;
}

/* Bottom bar */

.bat-bottombar {
  height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141928;
  border-top: 1px solid rgba(0, 216, 255, 0.18);
}

.replay-status {
  min-width: 78px;
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  color: #7cb9ff;
  background: rgba(47,128,237,0.12);
  font-size: 12px;
  font-weight: 900;
}

.replay-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff345b;
  box-shadow: 0 0 10px rgba(255,52,91,0.8);
}

.layout-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layout-control button {
  width: 42px;
  height: 32px;
  border: 1px solid rgba(0,216,255,0.18);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.52);
  font-size: 11px;
  font-weight: 800;
}

.layout-control button.active {
  color: #ffffff;
  background: #00aeea;
  border-color: #00d8ff;
  box-shadow: 0 0 16px rgba(0,216,255,0.38);
}

/* Responsive */

@media (max-width: 1100px) {
  .bat-topbar {
    grid-template-columns: 220px 1fr 180px;
  }

  .bat-top-status button:not(.add-camera) {
    display: none;
  }
}

@media (max-width: 900px) {
  .bat-topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .bat-top-status {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .bat-user-area {
    display: none;
  }

  .bat-main-layout {
    grid-template-columns: 1fr;
  }

  .bat-sidebar {
    display: none;
  }

  .bat-camera-grid {
    grid-auto-rows: 230px;
  }
}

@media (max-width: 680px) {
  .bat-dashboard-section {
    padding: 48px 10px;
  }

  .bat-dashboard-heading {
    margin-bottom: 26px;
  }

  .bat-demo-btn {
    width: 100%;
    max-width: 280px;
  }

  .bat-camera-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .bat-bottombar {
    height: auto;
    padding: 12px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-control {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .camera-label strong {
    font-size: 14px;
  }

  .camera-label span,
  .camera-time {
    font-size: 11px;
  }
}