
* {
    box-sizing: border-box; /* Чтобы отступы не увеличивали ширину блоков */
}
/* Общие настройки — как выбор правильного профиля для ферм */
body {
    background-color: #1a1a1a; /* Темный фон, как мы и хотели */
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    padding: 50px 20px;
}

h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
}

/* Выделяем ko твоим любимым синим цветом */
h1 span {
    color: #007bff; 
}

.monitor-card {
    background: #2a2a2a;
    border: 1px solid #007bff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.monitor-grid {
    display: grid;
    /* Создает колонки по 200px, которые сами переносятся, если нет места */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}


.value {
    display: block;
    font-size: 2.5rem;
    color: #00ff41; /* Тот самый цвет КИПиА мониторов */
    font-weight: bold;
}
.chart-container {
    width: 90vw;
    max-width: 800px;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.controls {
    margin-bottom: 10px;
}
.controls button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}
.controls button:hover {
    background: #0056b3;
}

section {
    width: 90vw;
    max-width: 800px;
    margin-bottom: 40px; /* Чтобы секции не слипались */
}

h2 {
    border-left: 4px solid #007bff; /* Синий маркер слева — как в проф. документации */
    padding-left: 15px;
    font-weight: 400;
}

.controls button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease; /* Плавная анимация */
    text-transform: uppercase; /* Строгий стиль */
    font-size: 0.8rem;
    font-weight: bold;
}

.controls button:hover {
    background: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Небольшое свечение при наведении */
}

footer {
    padding: 40px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Медиа-запрос для мобилок — чтобы буквы не вылетали за экран */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .value { font-size: 1.8rem; }
}
.calc-box {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #007bff;
}
.calc-box input {
    background: #1a1a1a;
    border: 1px solid #007bff;
    color: #00ff41;
    padding: 10px;
    width: 60px;
    font-size: 1.2rem;
}
.result-box p {
    margin: 10px 0;
    font-size: 1.1rem;
}
.result-box span {
    color: #00ff41;
    font-weight: bold;
}
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.main-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.3)); /* Легкое свечение */
    transition: transform 0.5s ease;
}

.main-logo:hover {
    transform: rotate(360deg); /* Интерактив: крутанем при наведении */
}
/* Анимация пульсации для молнии */
@keyframes pulse-energy {
    0% { filter: drop-shadow(0 0 2px #00ff41); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 10px #00ff41); opacity: 1; }
    100% { filter: drop-shadow(0 0 2px #00ff41); opacity: 0.8; }
}

/* Находим путь (path) внутри нашего SVG логотипа */
.main-logo path {
    animation: pulse-energy 2s infinite ease-in-out;
}

/* Вращение при наведении на весь контейнер */
.logo-container:hover .main-logo {
    transform: rotate(360deg);
}
.led {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #666; /* Серый по умолчанию */
}

.led-online {
    background-color: #00ff41;
    box-shadow: 0 0 8px #00ff41;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* Контейнер в обычном режиме */
.chart-container {
    width: 100%;
    max-width: 800px; /* Ограничиваем, чтобы не "плыл" */
    height: 400px;    /* Задаем фиксированную высоту для стабильности */
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Контейнер в полноэкранном режиме */
.chart-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important; /* Убираем ограничение в 800px */
    z-index: 9999;
    padding: 30px;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    flex-direction: column;
}

/* Чтобы холст внутри растягивался корректно */
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #888;
}
