@import 'sidebar.css';
@import 'header.css';
@import 'kpi.css';
@import 'segment.css';
@import 'mine-dashboard.css';

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 30% 10%, #1b2436 0%, #0b1220 60%),
    linear-gradient(180deg, #0c1322 0%, #080e1a 100%);
  color: #e6ecff;
}


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

/* GLASS PANEL */
.glass-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent),
    linear-gradient(145deg, #11192b, #0d1424);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 25px 60px rgba(0,0,0,0.7);
}

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

.panel-title {
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-actions {
    display: flex;
    gap: 13px;
    align-items: center;
}

.panel-icon {
  background: linear-gradient(135deg,#ffb347,#ffcc33);
  color: #000;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

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

/* Images */
.img-box {
  background: #0c1220;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

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

.update-text {
  position: absolute;
  bottom: 8px;
  right: 47px;
  font-size: 12px;
  opacity: .7;
}


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

.toggle-switch::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #4cff8f;
  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 rgba(255,255,255,0.05);
}

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

.status.success {
  background: #2d6b48;
}

.status.danger {
  background: #9b2c2c;
}

.status.warning {
  background: #a66a00;
}

.value {
  text-align: right;
  opacity: .8;
}



/* PANEL BASE */
.panel {
  background: linear-gradient(145deg, #11192c, #0d1424);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.05),
    0 20px 40px rgba(0,0,0,0.5);
}

.panel-header {
  font-size: 14px;
  letter-spacing: .5px;
  opacity: .8;
  margin-bottom: 15px;
}

.panel-body {
  font-size: 14px;
}

.placeholder {
  height: 220px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .5;
}

/* Equipment */
.equipment-item {
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

/* Warning Panel */
.warning {
  background: linear-gradient(135deg, #3a2a15, #2a1e0f);
}

/* Bottom Section Container */
.panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  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: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-item:hover {
  background: rgba(255,255,255,0.08);
}

.filter-item i {
  font-size: 12px;
  opacity: .7;
}

/* Dot */
.filter-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  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: #1f2b44;
  border-radius: 20px;
  transition: .3s;
}

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

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

.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;
}

