:root {
  --bg-main: #fffcf2;
  --bg-light: #fffef9;
  --bg-accent: #c0e6f5;
  --btn-primary: #f15626;
  --btn-dark: #333333;
  --btn-telegram1: #229ed9;
  --btn-telegram2: #2aabed;
  --text-main: #16323b;
  --text-muted: #2b4b4b;
  --radius-lg: 20px;
  --radius-md: 15px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(96, 74, 43, 0.3), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 4px 15px rgba(0,0,0,0.2);
  --shadow-lg-hover: 0 6px 20px rgba(0,0,0,0.3);
}

body {
  font-family: Arial, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background: var(--bg-main);
  color: #111;
  min-height: 100vh;
}

.app {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

p {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.status {
  margin-top: 20px;
  font-size: 1.1em;
  opacity: 0.9;
}

#data-list {
  background: var(--bg-accent);
  padding: 17px 5px;
  border: 1px solid #000;
  border-radius: var(--radius-md);
}

/* Общ стил за бутони */
button, 
a#telegram-btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Основен бутон */
button {
  background: var(--btn-primary);
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 50px;
  color: white;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg-hover);
}

/* FAB бутон */
#refresh-fab {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--btn-dark);
  font-size: 23px;
  color: white;
}

/* Telegram бутон */
a#telegram-btn {
  margin-bottom: 5px;
  padding: 11px;
  font-size: 23px;
  background: linear-gradient(0deg, var(--btn-telegram1) 0%, var(--btn-telegram2) 100%);
}

#telegram-btn img {
  width: 33px;
}

.floating-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Chart explanations */
.chart-explanation {
  max-width: 720px;
  margin: 30px auto 50px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid #eee;
}

.chart-explanation h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.chart-explanation ul {
  margin: 0 0 12px 18px;
  padding: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.chart-note {
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* Warning box */
.chart-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff7f0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #f2d6c7;
}

.chart-warning-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.chart-warning-text {
  color: #3a3a3a;
  font-size: 0.95rem;
  line-height: 1.45;
}
.levelvalue {
    font-size: 27px;
    margin-bottom: -16px;
}
span.act_btn {
    cursor: pointer;
    vertical-align: middle;
    color: #a5a5d0;
}
