/* Основные стили */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Контейнеры */
.container-layout {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.info-panel, .video-info-container, .alert, .popup {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

/* Панель информации */
.info-panel {
    font-size: 16px;
}

.info-panel p {
    margin: 5px 0;
    font-weight: 500;
}

.info_block {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info_block p span {
    font-weight: normal;
    color: #666;
}

/* Для изображения последнего входа */
#lastLoginPic {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
}

/* Контейнер видео */
.video-info-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    text-align: center;
    overflow: hidden;
}

.video-frame {
    position: relative;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0);
    transition: box-shadow 0.3s ease-in-out;
}

.mirror {
    transform: scaleX(-1);
}

/* Pulsar animation for the container */
.pulsar::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.6;
    animation: pulseAnimation 1.5s infinite;
}

/* Цветовые вариации для pulsar */
.pulsar-black::before {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.pulsar-red::before {
    background-color: rgba(255, 0, 0, 0.5);
    z-index: 1;
}

.pulsar-black-red::before {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(255, 0, 0, 0.5));
    z-index: 1;
}

/* Glow effect for the video */
.glow-good {
    box-shadow: 0 0 25px 8px rgba(0, 255, 0, 0.7);
}

.glow-medium-good {
    box-shadow: 0 0 25px 8px rgba(173, 255, 47, 0.7);
}

.glow-neutral {
    box-shadow: 0 0 25px 8px rgba(255, 255, 0, 0.7);
}

.glow-medium-bad {
    box-shadow: 0 0 25px 8px rgba(255, 165, 0, 0.7);
}

.glow-bad {
    box-shadow: 0 0 25px 8px rgba(255, 0, 0, 0.7);
}

/* Animation for pulsar effect */
@keyframes pulseAnimation {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

/* Кнопки */
.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}
.disabled-button {
    background-color: #cccccc; /* Серый цвет */
    color: #666666; /* Цвет текста */
    cursor: not-allowed; /* Указатель мыши показывает "запрещено" */
    pointer-events: none; /* Запрещаем любые взаимодействия */
}
.buttons button {
    width: 45%;
    padding: 10px;
    font-size: 16px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buttons button:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
}

/* Статусное окно */
.alert {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    margin: 20px auto;
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    display: none;
    width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
}


.temporary-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    animation: fade-in-out 2s ease;
}

@keyframes fade-in-out {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}


.popup.show {
    display: block;
    opacity: 1;
}

#statusList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#statusList li {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .container-layout {
        flex-direction: column;
        align-items: center;
    }

    .info-panel, .video-info-container {
        max-width: 100%;
    }

    .buttons button {
        width: 100%;
        margin-top: 10px;
    }
}

/* Скрытые элементы */
.hidden {
    display: none;
}
