/* styles.css */

body {
    background-color: #24055a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#user-data {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: left;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-y: auto;
}
#user-data-faq {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: left;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 800px;
}
video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    z-index: -1;
}

@media screen and (max-width: 767px) {
    video {
        transform: translate(-50%, -50%);
        z-index: -1;
        max-width: 100%;
        height: auto; /* Это сохранит соотношение сторон при изменении ширины */
    }
    #user-data {
        box-sizing: border-box; /* Убедитесь, что отступы включаются в ширину элемента */
        width: 100%;
        padding: 20px;
        margin: 0; /* Установите маржин в 0, если это необходимо */
    }
}

h2 {
    text-align: center;
}

.key-value-pair {
    padding-bottom: 5px;  /* Расстояние между строками */
    overflow: hidden;

}
.key {
    display: inline-block;
    width: 49%;
    box-sizing: border-box;
    vertical-align: top;
}

.value {
    position: relative;
    display: inline-block;
    text-align: right;
    white-space: normal;
    width: 49%;
    box-sizing: border-box;
}



.user-info {
    margin-bottom: 10px;
}

p {
    margin: 5px 0;
    word-wrap: break-word;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
	margin: 2px;

}
.hidden {
    display: none;
}
/* Добавленные стили */
#user-data-container {
    margin-top: 20px;

}

#last-request-timestamp {
    font-size: 12px;
    margin-top: 10px; /* Добавляем отступ сверху */
    text-align: right; /* Выравнивание текста справа */
}
#logout-button {
    margin-top: 100px;
    text-align: right; /* Выравнивание текста справа */

}
#navigate {
    text-align: right;
    width: 100%; /* Измените ширину по вашему усмотрению */
}

input {
    width: 100%;
    box-sizing: border-box;
}

.reg-info {
    text-align: center;
    color: red;
}
#myModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#myModal label {
    display: block;
    margin-bottom: 10px;
}

#myModal input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#myModal button {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.swal-button-confirm {
  background-color: #d33;
  color: #fff;
}

.swal-button-cancel {
  width: 300px;
}


#hint {
  position: absolute;
  right: 0;
  background-color: #f44336; /* Цвет фона */
  color: white; /* Цвет текста */
  padding: 10px; /* Внутренний отступ */
  border-radius: 5px; /* Скругление углов */
  visibility: hidden; /* По умолчанию скрыто */
  opacity: 0; /* По умолчанию прозрачно */
  transition: visibility 0s, opacity 0.5s linear; /* Анимация появления/исчезания */

}

#SendMoney {
  text-align: right;
}
#hint_div {
  width: 100%;
  text-align: right; /* Выравнивание по правой стороне для всех дочерних элементов */
}

#dynamic-info {
    font-size: 12px; /* Замените 12px на желаемый размер шрифта */
}
/* Добавьте этот стиль в ваш файл стилей или внутри <style> в HTML */
#confirmBtn:disabled {
    background-color: #d3d3d3; /* Серый цвет для фона */
    color: #808080; /* Серый цвет для текста */
    cursor: not-allowed; /* Измените форму курсора */
}
.copy-notification {
    position: fixed;
    display: none;
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
  }
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

#deleteSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    display: none;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#submitSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    display: none;
}

/* Красивое модальное окно загрузки */
.loading-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    z-index: 1002;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    max-width: 90vw;
    display: none;
}

.loading-modal .spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px auto;
}

.loading-modal .loading-text {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.loading-modal .loading-subtext {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .loading-modal {
        padding: 30px;
        min-width: 180px;
        border-radius: 16px;
        width: 85%;
    }
    
    .loading-modal .spinner-circle {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-modal .loading-text {
        font-size: 16px;
    }
    
    .loading-modal .loading-subtext {
        font-size: 13px;
    }
}

.border {
    border: 2px solid #24055a; /* Толщина и цвет рамки */
    border-radius: 5px; /* Радиус закругления углов */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Тень */
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.faq-container {
    max-width: 600px;
    margin: 0 auto;
}
.faq-container img {
    max-width: 100%;
    height: auto;
}


img {
    border: 1px solid #24055a; /* Толщина и цвет рамки */
    border-radius: 10px; /* Радиус закругления углов */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); /* Тень */
}

.question {
    cursor: pointer;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.answer {
    display: none;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
::-webkit-scrollbar {
    width: 8px; /* Ширина ползунка */
}

::-webkit-scrollbar-thumb {
    background-color: #24055a; /* Цвет ползунка (фиолетовый в этом случае) */
    border-radius: 4px; /* Закругление углов ползунка */
}

/* Дополнительные стили для Internet Explorer и Edge */
/* Пожалуйста, добавьте эти стили, если ваш проект поддерживает эти браузеры */
::-ms-scrollbar {
    width: 9px; /* Ширина ползунка */
}

::-ms-scrollbar-thumb {
    background-color: #24055a; /* Цвет ползунка (фиолетовый в этом случае) */
    border-radius: 4px; /* Закругление углов ползунка */
}
.pay_history {
    max-height: 200px;
    overflow-y: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}
th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}
#upTrafik_page {
    animation: colorChange  2s infinite;
}


@keyframes colorChange {
    0% {
        background-color: #4CAF50; /* Зеленый цвет */
    }
    50% {
        background-color: #24055a; /* Синий цвет */
    }
    100% {
        background-color: #4CAF50; /* Синий цвет */
    }
}
.info-box {

            border: 2px solid green; /* Зеленая рамка */
            border-radius: 10px;     /* Скругленные углы */
            padding: 10px;           /* Отступы внутри рамки */
            background-color: #f0f8f0; /* Светлый фон для контраста */
            display: inline-block;   /* Подгонка размера к содержимому */
        }

.info-box a {
    color: green; /* Цвет ссылки внутри рамки */
    text-decoration: none; /* Убираем подчеркивание ссылки */
}

.info-box a:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

#progressContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1001;
    display: none;
    min-width: 250px;
}

#serverProgress {
    width: 200px;
    height: 20px;
    margin-bottom: 10px;
    appearance: none;
    border: none;
    background: #ddd;
}

#serverProgress::-webkit-progress-bar {
    background: #ddd;
}

#serverProgress::-webkit-progress-value {
    background: #4caf50;
}

#serverProgress::-moz-progress-bar {
    background: #4caf50;
}

#progressText {
    font-size: 16px;
    color: #333;
}

#servers-status {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
}

#servers-status h3 {
    margin-bottom: 10px;
    color: #aaa;
    text-align: center;
}

.server-item {
    display: flex;
    align-items: end;
    justify-content: flex-start; /* Элементы прижаты к левой части */
    background: rgba(255, 255, 255, 0.05);
    width: auto; /* Не растягивать на всю ширину */
    flex-wrap: nowrap; /* Предотвращаем перенос элементов */
}

.server-name {
    color: #aaa;
    min-width: 20px;
    align-items: center;
    font-weight: bold;
    flex: 0 0 auto; /* Флаг занимает минимальную ширину */
}

.status-dot {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin-left: 10px !important;
    flex: 0 0 auto; /* Точка не растягивается */
}

.status-dot.online {
    background-color: #00ff00 !important; /* Ярко-зелёный */
}

.status-dot.offline {
    background-color: #ff0000 !important; /* Ярко-красный */
}

.progress-container {
    width: 100% !important; /* Фиксированная ширина полоски */
    height: 10px !important;
    background-color: #333 !important; /* Тёмный фон контейнера */
    border-radius: 5px !important;
    overflow: hidden !important;
    margin-left: 10px !important;
}

.progress-bar {
    height: 100% !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease !important;
}

/* Фон для увеличенной картинки */
#lightbox {
    display: none; /* скрыт по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Сама картинка в увеличенном виде */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.bulb-border {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

/* Радужный переливающийся фон */
.bulb-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(270deg,
        #ff0000,
        #ff9900,
        #ffff00,
        #00ff00,
        #00ffff,
        #0000ff,
        #ff00ff,
        #ff0000
    );
    background-size: 800% 800%;
    animation: rainbowShift 8s ease infinite;
    z-index: 1;
}

/* Внутренний фон — немного приглушённый, чтобы текст читался */
.bulb-border::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2;
}

/* Контент поверх */
.bulb-border span,
.bulb-border button {
    position: relative;
    z-index: 3;
}

/* 🌈 Анимация переливающегося фона */
@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
