body {
    background-color: #121212;
    color: #ffffff;
}
.pull-right {
    float: right;
}
.container {
    margin-top: 50px;
    position: relative; /* Absolute positioning for messages */
}
.form-control, .form-select {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333333;
}
.form-control:focus, .form-select:focus {
    background-color: #2c2c2c;
    color: #ffffff;
}
.btn-primary {
    background-color: #3a3a3a;
    border: none;
}
.btn-primary:hover {
    background-color: #505050;
}
.btn-danger {
    background-color: #a33a3a;
    border: none;
}
.btn-danger:hover {
    background-color: #c53a3a;
}
.alert {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333333;
}
/* Custom class for success messages */
.alert-success-custom {
    background-color: darkgreen;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    opacity: 0.9;
    padding: 10px 20px;
    border-radius: 5px;
}
/* Add margins to charts */
.chart-container {
    margin-top: 20px;
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
}
/* Показ состояния клиента */
.image-container {
    position: relative;
    display: inline-block;
}
.image-container img {
    width: 100%;
    height: auto;
}
.status {
    position: absolute;
    top: 0px;
    left: 0px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}
/* Анимация для состояния зарядки */
.charging {
    animation: pulse 3s infinite;
}
/* Красный контур для не заряжающегося состояния */
.not-charging {
    box-shadow: 0 0 7px 3px rgba(255, 0, 0, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px 2px rgba(0, 255, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 15px 10px rgba(0, 255, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px 2px rgba(0, 255, 0, 0.7);
    }
}
