/* 🌊 Движещ се фон */
.water-bg {
  position: fixed;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, #cce7f6, #e1f5fe, #cce7f6);
  background-size: 200% 100%;
  animation: waterMove 20s linear infinite;
  z-index: -1;
}
@keyframes waterMove {
  from { background-position: 0 0; }
  to { background-position: -100% 0; }
}

/* Основен layout */
.dashboard-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 40px;
}

/* Вляво панел */
.status-panel {
  width: 340px;
  background: #ffffffee;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

.status-panel h2 {
  color: #b22222;
  text-transform: uppercase;
  border-bottom: 2px solid #b22222;
  margin-bottom: 10px;
  font-size: 16px;
}

.status-panel h3 {
  font-size: 15px;
  color: #333;
  margin-bottom: 15px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 3px;
}

.status-item .name {
  font-weight: 600;
}

.status-item .value {
  font-weight: 500;
  color: #222;
}

.status-item .diff {
  font-size: 16px;
  font-weight: 700;
  color: #b22222;
}

.nominal-box {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #aaa;
}

.nominal-box h4 {
  margin-bottom: 4px;
  color: #b22222;
}

/* Мнемосхема вдясно */
#mnemo-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mnemo-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

#mnemo-wrapper {
  position: relative;
  background: linear-gradient(145deg, #eef5f9, #e4eef6);
  border-radius: 10px;
  padding: 15px;
  overflow: hidden;
}

#mnemo-img {
  max-width: 100%;
  border-radius: 8px;
  background-color: #eef5f9;
  display: block;
}

/* Проблеми, таблици и графики под схемата */
.mnemo-extra {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Таблица с проблеми */
.problem-box {
  background: #ffe4e4;
  border: 1px solid #d12d2d;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
}

.problem-box h4 {
  margin: 0 0 5px;
  color: #a00000;
}

.problem-box p {
  margin: 3px 0;
  font-size: 14px;
}

/* Исторически данни */
.history-box {
  margin-top: 15px;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px;
}

/* Графики */
.chart-section {
  margin-top: 25px;
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

.chart-section h4 {
  margin-top: 0;
  color: #b22222;
}

canvas {
  width: 100%;
  max-height: 260px;
  margin-top: 10px;
}

.chart-label {
  font-size: 0.85em;
  color: #555;
  margin: 5px 0 15px 5px;
  text-align: center;
}
