/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===================== BODY ===================== */
body {
  color: #fff;
  background: #0b0f1a;
  overflow-x: hidden;
}

/* ===================== BACKGROUND VIDEO ===================== */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4) blur(2px);
}

/* ===================== APP WRAPPER ===================== */
.app {
  padding: 20px;
}

/* ===================== TOPBAR ===================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: bold;
}

.title {
  font-size: 18px;
  font-weight: bold;
}

.subtitle {
  font-size: 12px;
  opacity: 0.7;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

/* ===================== PANELS ===================== */
.panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
}

/* ===================== KPI ===================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.kpi {
  text-align: left;
}

.kpi-label {
  font-size: 14px;
  opacity: 0.8;
}

.kpi-value {
  font-size: 28px;
  font-weight: bold;
  margin: 5px 0;
}

/* ===================== MAIN GRID ===================== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* ===================== INPUTS ===================== */
.input,
.select {
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

.input::placeholder {
  color: #ccc;
}

/* ===================== BUTTONS ===================== */
.btn {
  padding: 8px 15px;
  border-radius: 8px;
  border: none;
  background: #3b82f6;
  color: white;
  cursor: pointer;
}

.btn:hover {
  background: #2563eb;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ===================== MACHINE LIST ===================== */
.machines-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.machine-card {
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
}

.machine-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

/* ===================== STATUS ===================== */
.status {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.status.online {
  background: #22c55e;
}

.status.offline {
  background: #ef4444;
}

/* ===================== TABLE ===================== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 8px;
  text-align: left;
  font-size: 13px;
}

.table th {
  opacity: 0.7;
}

.table tr {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===================== TEXT ===================== */
.muted {
  opacity: 0.6;
}

.small {
  font-size: 12px;
}

/* ===================== TOOLBAR ===================== */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* ===================== AUTH ===================== */
.auth {
  max-width: 350px;
  margin: auto;
  text-align: center;
}

.field {
  margin-bottom: 10px;
  text-align: left;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }
}