/* Глобальный сброс для использования Border-Box */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #007bff;
    margin-bottom: 25px;
    font-size: 1.8em;
}

/* Стили для таблицы */
.status-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 30px;
    text-align: left;
}

    .status-table tr {
        background-color: #e9ecef;
        border-radius: 6px;
        overflow: hidden;
    }

    .status-table td {
        padding: 12px 15px;
        vertical-align: middle;
        font-size: 1.1em;
    }

    .status-table .label {
        font-weight: bold;
        color: #555;
        width: 50%;
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
        background-color: #dee2e6;
    }

    .status-table td:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
        background-color: #ffffff;
        font-weight: 600;
    }

        /* Стили для булевых значений (эмодзи) */
        .status-table td:last-child .status-text {
            margin-left: 8px;
        }

/* Стили для элементов управления */
.controls {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, opacity 0.3s;
    width: 50%;
}

    .control-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .control-btn:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.start-btn {
    background-color: #28a745;
    color: white;
}

.stop-btn {
    background-color: #dc3545;
    color: white;
}

/* Стили для статусной строки */
.status-message {
    padding: 10px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    background-color: #fff3cd; /* Желтый фон по умолчанию */
    color: #856404;
    border: 1px solid #ffeeba;
    min-height: 20px;
    text-align: center;
}

    .status-message.success {
        background-color: #d4edda;
        color: #155724;
        border-color: #c3e6cb;
    }

    .status-message.error {
        background-color: #f8d7da;
        color: #721c24;
        border-color: #f5c6cb;
    }

    .status-message.pending {
        background-color: #d1ecf1;
        color: #0c5460;
        border-color: #bee5eb;
    }
