/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
  z-index: 9999;
  padding: 20px;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sidebar-header h6 {
  font-size: 16px;
  color: #1a1a1a;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
  opacity: .6;
}

.close-btn:hover {
  opacity: 1;
}

/* MENU */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  padding: 12px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: 0.3s ease;
  color: #4b5563;
}

.sidebar-menu li:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

/* OVERLAY */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 9998;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HEADER */
.main-header {
  background: transparent;
}

/* TOP ROW */
.header-top {
  padding: 0px 30px 10px 30px
}

.header-title {
  font-weight: 500;
  letter-spacing: .6px;
  color: #1a1a1a;
  font-size: clamp(14px, 2.5vw, 26px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* HAMBURGER */
.hamburger {
  width: 28px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #4b5563;
  margin: 6px 0;
  border-radius: 3px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.hamburger span:hover {
  opacity: 1;
  transform: scaleX(1.1);
}

/* CREATE BUTTON */
.create-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid #e5e7eb;
  padding: 10px 24px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* DIVIDER */
.header-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 10px 0;
}


.header-bottom,
.kpi-row,
.main-grid,
.segment-status,
.mine-dashboard {
  padding: 12px 30px;
}

.header-bottom,
.kpi-row {
  font-size: 14px;
  border-top: 1px solid #e5e7eb;
}

/* Icons */
.bottom-left i {
  font-size: 20px;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-actions i {
  font-size: 18px;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
  padding: 6px;
  border-radius: 6px;
}

.bottom-left i:hover,
.panel-actions i:hover {
  opacity: 1;
  background: #f3f4f6;
  transform: scale(1.1);
}

/* Text */
.welcome-text {
  opacity: 0.8;
  color: #4b5563;
}

.time-text {
  opacity: 0.6;
  color: #6b7280;
}

/* MOBILE FIRST */
@media (max-width: 767px) {

  .header-bottom {
    padding: 10px 15px;
  }

  .bottom-left {
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .bottom-left::-webkit-scrollbar {
    display: none;
  }

  .bottom-right {
    justify-content: space-between;
    font-size: 13px;
  }

  .welcome-text {
    font-size: 13px;
  }

  .time-text {
    font-size: 12px;
  }
}



/* HEADER */
.title {
  font-weight: 500;
  letter-spacing: .5px;
}

@media (max-width: 768px) {

  .header-top {
    padding: 10px 12px;
  }

  .create-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .header-title {
    font-size: 14px;
  }

}

.kpi-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 130px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* Gloss shine top */
.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.04),
      transparent);
}

/* Content Area */
.kpi-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  position: relative;
  z-index: 2;
}

.kpi-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-img {
  width: 58px;
  height: 58px;
  /* filter: drop-shadow(0 6px 10px rgba(0,0,0,0.6)); */
}

.kpi-icon {
  font-size: 28px;
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.kpi-title {
  font-size: 16px;
  font-weight: 500;
  opacity: .95;
}

.kpi-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Footer strip */
.kpi-footer {
  padding: 10px 26px;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 2;
  text-align: right;
}

.positive {
  color: #10b981;
}

/* GOLD */
.gold-card {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* BLUE */
.blue-card {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* RED */
.red-card {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}


/* KPI CARDS */
.kpi {
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 60%);
}

.kpi-sub {
  font-size: 13px;
  opacity: .8;
}

.positive {
  color: #52ffb3;
}

/* KPI COLORS */
.kpi-gold {
  background: linear-gradient(135deg, #a8791c, #e3b341);
}

.kpi-blue {
  background: linear-gradient(135deg, #244c9e, #3c6ed6);
}

.kpi-red {
  background: linear-gradient(135deg, #7b1f29, #c0392b);
}

/* WRAPPER */
.status-wrapper {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  min-height: 110px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

/* BLOCK BASE */
.status-block {
  flex: 1;
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #ffffff;
}

/* vertical divider */
.status-block:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e5e7eb;
}

/* TOP OVERLAY SHADE */
.status-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

/* Bottom darker strip */
.status-block .block-bottom {
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  opacity: 0.8;
}

/* TEXT */
.block-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.block-number {
  font-size: 34px;
  font-weight: 600;
}

.block-label {
  font-size: 20px;
  font-weight: 500;
}

/* Dots */
.dots span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* COLORS (SOLID + SHADE) */
.gold {
  background: #f59e0b;
}

.green {
  background: #10b981;
}

.red {
  background: #ef4444;
}

.telemetry-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 26px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* subtle top gloss */
.telemetry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

/* top section */
.telemetry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.telemetry-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.telemetry-icon {
  font-size: 24px;
  opacity: .9;
}

.telemetry-title {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
}

.telemetry-value {
  font-size: 34px;
  font-weight: 600;
  color: #ffffff;
}

/* middle divider line */
.telemetry-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 14px 0;
}

/* bottom text */
.telemetry-bottom {
  font-size: 14px;
  opacity: 0.8;
  color: #ffffff;
}

.mine-dashboard .emissions-panel {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

/* HEADER */
.mine-dashboard .emission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.mine-dashboard .emission-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mine-dashboard .emission-icon {
  color: #f59e0b;
  font-size: 22px;
}

.mine-dashboard .emission-title {
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
}

.mine-dashboard .emission-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mine-dashboard .emission-range {
  font-size: 14px;
  opacity: 0.7;
  color: #6b7280;
}

.mine-dashboard .small-icon {
  font-size: 20px;
  opacity: 0.7;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 6px;
}

.mine-dashboard .small-icon:hover {
  opacity: 1;
  background: #f3f4f6;
  transform: scale(1.1);
}

/* MINI TOGGLE */
.mine-dashboard .mini-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}

.mine-dashboard .mini-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mine-dashboard .toggle-slider {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 20px;
  transition: .3s ease;
}

.mine-dashboard .toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #3b82f6;
  border-radius: 50%;
  transition: .3s ease;
}

/* When Checked */
.mine-dashboard .mini-toggle input:checked+.toggle-slider {
  background: #e5e7eb;
}

.mine-dashboard .mini-toggle input:checked+.toggle-slider::before {
  transform: translateX(20px);
}


/* GRAPH */
.mine-dashboard .emission-graph {
  padding: 20px 24px;
}

/* FOOTER */
.mine-dashboard .emission-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e5e7eb;
}

.mine-dashboard .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  opacity: 0.85;
}

.mine-dashboard .legend-item.muted {
  opacity: 0.5;
}

.mine-dashboard .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mine-dashboard .orange {
  background: #f59e0b;
}

.mine-dashboard .green {
  background: #10b981;
}

.mine-dashboard .blue {
  background: #3b82f6;
}

.mine-dashboard .gray {
  background: #9ca3af;
}

.mine-dashboard .glass-panel.fullscreen {
  position: fixed !important;
  inset: 20px;
  z-index: 9999;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 18px;
  animation: zoomIn .25s ease;
}

.mine-dashboard body.panel-active::before,
body.panel-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

@keyframes zoomIn {
  from {
    transform: scale(.97);
    opacity: .7;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


.mine-dashboard .site-panel {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 0px;
}

/* HEADER */
.mine-dashboard .site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.mine-dashboard .site-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
}

.mine-dashboard .site-actions i {
  margin-left: 14px;
  font-size: 18px;
  opacity: 0.6;
  cursor: pointer;
  color: #6b7280;
}

/* MAP AREA */
.mine-dashboard .site-map-area {
  position: relative;
  padding: 20px;
}

.mine-dashboard .site-map {
  width: 100%;
  border-radius: 12px;
  display: block;
  opacity: 1;
  height: 350px;
  border: 1px solid #e5e7eb;
}

/* Top Left Label */
.mine-dashboard .map-label {
  position: absolute;
  top: 35px;
  left: 40px;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 18px;
}

/* Top Right Alert Pill */
.mine-dashboard .map-alert-pill {
  position: absolute;
  top: 30px;
  right: 60px;
  background: #fef3c7;
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fbbf24;
}

/* FLOATING KPI */
.mine-dashboard .floating-kpis {
  position: absolute;
  right: 40px;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mine-dashboard .floating-card {
  background: #ffffff;
  backdrop-filter: blur(10px);
  padding: 20px 26px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  min-width: 260px;
  border: 1px solid #e5e7eb;
}

.mine-dashboard .floating-card.large .big-value {
  font-size: 36px;
  font-weight: 600;
}

.mine-dashboard .floating-card.small .small-value {
  font-size: 26px;
  font-weight: 500;
}

.mine-dashboard .positive {
  color: #10b981;
  font-size: 16px;
}

.mine-dashboard .muted {
  opacity: 0.6;
  font-size: 14px;
  color: #6b7280;
}

/* FOOTER */
.mine-dashboard .site-footer {
  display: flex;
  gap: 30px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #4b5563;
  opacity: 0.8;
}

.mine-dashboard .footer-item {
  position: relative;
  padding-right: 20px;
}

.mine-dashboard .footer-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: #e5e7eb;
}

.mine-dashboard .safety-panel {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

/* HEADER */
.mine-dashboard .safety-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.mine-dashboard .safety-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: #1a1a1a;
}

.mine-dashboard .safety-title i {
  color: #ef4444;
  font-size: 22px;
  transition: all 0.3s ease;
}

.mine-dashboard .safety-title i:hover {
  transform: scale(1.1);
}

.mine-dashboard .safety-actions i {
  margin-left: 12px;
  opacity: 0.7;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 6px;
}

.mine-dashboard .safety-actions i:hover {
  opacity: 1;
  background: #f3f4f6;
  transform: scale(1.1);
}

/* TOPBAR */
.mine-dashboard .safety-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.mine-dashboard .safety-topbar .left {
  display: flex;
  align-items: center;
}

.mine-dashboard .filter-pill {
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.mine-dashboard .last-incident {
  margin-left: 14px;
  font-size: 14px;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.mine-dashboard .incident-count {
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
}

/* ALERT LIST */
.mine-dashboard .alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.mine-dashboard .alert-row.highlight {
  background: linear-gradient(90deg,
      rgba(239, 68, 68, 0.1),
      rgba(239, 68, 68, 0.02));
}

.mine-dashboard .alert-time {
  width: 90px;
}

.mine-dashboard .alert-time .time {
  font-size: 16px;
  color: #1a1a1a;
}

.mine-dashboard .alert-time .location {
  font-size: 14px;
  opacity: 0.6;
  color: #6b7280;
}

.mine-dashboard .alert-info {
  flex: 1;
}

.mine-dashboard .alert-info .title {
  font-size: 16px;
  color: #1a1a1a;
}

.mine-dashboard .alert-info .sub {
  font-size: 14px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

/* STATUS PILL */
.mine-dashboard .status-pill {
  background: #f59e0b;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

/* FOOTER */
.mine-dashboard .safety-footer {
  padding: 16px 22px;
  text-align: right;
  font-size: 14px;
  opacity: 0.7;
  color: #6b7280;
}

.mine-dashboard .anomaly-panel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 0px;
}

/* HEADER */
.mine-dashboard .anomaly-header {
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.mine-dashboard .anomaly-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #1a1a1a;
}

.mine-dashboard .anomaly-title i {
  color: #f59e0b;
  font-size: 20px;
  transition: all 0.3s ease;
}

.mine-dashboard .anomaly-title i:hover {
  transform: scale(1.1);
}

.mine-dashboard .anomaly-actions i {
  margin-left: 12px;
  opacity: 0.7;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 6px;
}

.mine-dashboard .anomaly-actions i:hover {
  opacity: 1;
  background: #f3f4f6;
  transform: scale(1.1);
}

/* BODY (LIGHT SECTION) */
.mine-dashboard .anomaly-body {
  background: #fef3c7;
  padding: 22px;
  border-bottom: 1px solid #e5e7eb;
}

.mine-dashboard .anomaly-content {
  display: flex;
  gap: 18px;
}

.mine-dashboard .left-icon i {
  font-size: 32px;
  color: #f59e0b;
  transition: all 0.3s ease;
}

.mine-dashboard .left-icon i:hover {
  transform: scale(1.1);
}

/* TEXT */
.mine-dashboard .anomaly-text h5 {
  margin: 0;
  font-size: 20px;
  color: #1a1a1a;
}

.mine-dashboard .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mine-dashboard .time {
  font-size: 14px;
  color: #6b7280;
}

.mine-dashboard .sub-title {
  margin-top: 6px;
  font-size: 16px;
  color: #4b5563;
}

.mine-dashboard .desc {
  margin-top: 4px;
  font-size: 14px;
  color: #6b7280;
}

/* FOOTER (GOLD STRIP) */
.mine-dashboard .anomaly-footer {
  background: #f59e0b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
}

.mine-dashboard .left-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #1a1a1a;
}

.mine-dashboard .anomaly-btn {
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 20px;
  border: none;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}


/* MAIN GRID spacing adjust */
.main-grid {
  margin-top: 10px;
}

/* GLASS PANEL */
.glass-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header */
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1a1a;
}

.panel-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}

.panel-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.glass-panel .panel-icon {
  font-size: 12px;
}

/* Images */
.img-box {
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e5e7eb;
}

.img-box img {
  width: 100%;
  display: block;
  opacity: 1;
}

.update-text {
  position: absolute;
  bottom: 8px;
  right: 47px;
  font-size: 12px;
  opacity: 0.7;
  color: #6b7280;
}


/* Toggle */
.toggle-switch {
  width: 38px;
  height: 18px;
  background: #e5e7eb;
  border-radius: 20px;
  margin-left: 8px;
  position: relative;
}

.toggle-switch::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
}

/* Equipment Table */
.equipment-table {
  margin-top: 10px;
}

.equipment-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.status {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.status.success {
  background: #d1fae5;
  color: #065f46;
}

.status.danger {
  background: #fee2e2;
  color: #991b1b;
}

.status.warning {
  background: #fed7aa;
  color: #92400e;
}

.value {
  text-align: right;
  opacity: 0.8;
  color: #6b7280;
}



/* PANEL BASE */
.panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.panel-header {
  font-size: 14px;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-bottom: 15px;
  color: #6b7280;
}

.panel-body {
  font-size: 14px;
  color: #4b5563;
}

.placeholder {
  height: 220px;
  background: #f9fafb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  border: 1px solid #e5e7eb;
}

/* Equipment */
.equipment-item {
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
}

/* Warning Panel */
.warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
}

/* Bottom Section Container */
.panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  position: relative;
}

/* LEFT SIDE */
.filter-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
  color: #4b5563;
}

.filter-item:hover {
  background: #f3f4f6;
}

.filter-item i {
  font-size: 14px;
  opacity: 0.7;
  color: #6b7280;
  transition: all 0.3s ease;
}

.filter-item:hover i {
  opacity: 1;
  transform: scale(1.1);
}

/* Dot */
.filter-dot {
  width: 6px;
  height: 6px;
  background: #d1d5db;
  border-radius: 50%;
}

/* RIGHT SIDE */
.filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* TOGGLE SWITCH */
.toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 20px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e5e7eb;
  border-radius: 20px;
  transition: .3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  right: 2px;
  top: 2px;
  background: #3b82f6;
  border-radius: 50%;
  transition: .3s;
}

.toggle input:checked+.slider {
  background: #e5e7eb;
}

.toggle input:checked+.slider:before {
  transform: translateX(0);
}


/* FULLSCREEN MODE */
.glass-panel.fullscreen {
  position: fixed !important;
  inset: 20px;
  z-index: 9999;
  width: auto;
  height: auto;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 20px;
  animation: zoomIn .25s ease;
}

/* Smooth animation */
@keyframes zoomIn {
  from {
    transform: scale(.96);
    opacity: .7;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Optional: dim background */
body.panel-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
}