/* styles.css */

body {
    background-color: #011017;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: Arial, sans-serif; /* Добавлен базовый шрифт для一致ности */
}

/* Стили для меню */
.menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(135deg, #011017, #3b1a8c);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.logo {
    max-height: 40px; /* Ограничиваем максимальную высоту, сохраняя пропорции */
    width: auto; /* Ширина подстраивается автоматически */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.7);
}

.nav-container {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.menu li {
    position: relative;
}

.menu a {
    color: #02CFF3; /* Цвет текста уже правильный */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #02CFF3; /* Изменён цвет анимации с #fff на #02CFF3 */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after {
    width: 70%;
}

.burger-menu {
    display: none;
    color: #02CFF3; /* Изменён цвет бургер-меню с white на #02CFF3 */
    font-size: 24px;
    cursor: pointer;
    padding: 5px 15px;
    transition: transform 0.3s ease;
}

.burger-menu:hover {
    transform: rotate(90deg);
}

.burger-menu:hover {
    transform: rotate(90deg);
}

/* Контейнер для основного контента */
.content-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 80px auto 20px; /* Учитываем высоту фиксированного меню */
    max-width: 1200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Стили для заголовка */
.content-container h1 {
    color: #011017;
    margin-top: 0;
    font-size: 24px;
    text-align: center;
}

/* Стили для параграфа */
.content-container p {
    color: #333;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
}

/* Стили для формы */
.content-container form {
    text-align: center;
    margin: 20px 0;
}

.content-container select,
.content-container button {
    vertical-align: middle;
}

/* Стили для таблицы */
#data-table {
    width: 100%;
    margin-top: 20px;
}

#data-table th {
    background-color: #011017;
    color: white;
    font-weight: 600;
}

#data-table td {
    vertical-align: top;
}

.scrollable-cell {
    max-height: 150px;
    overflow-y: auto;
    word-wrap: break-word;
}

/* Общие стили */
#user-data {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: left;
    width: 800px;
    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;
}

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: 5px;
}

.save-button {
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.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;
    margin-top: 10px;
    width: 100%;
}

input {
    margin: 5px;
    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;
}

.info-box {
    border: 1px solid #000;
    padding: 10px;
    margin: 5px 0;
    word-wrap: break-word;
}

#dynamic-info {
    font-size: 12px;
}

#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;
}

.border {
    border: 2px solid #011017;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin: 5px;
}

.faq-container {
    max-width: 600px;
    margin: 0 auto;
}

.faq-container img {
    max-width: 100%;
    height: auto;
}

img {
    border: 1px solid #011017;
    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: #011017;
    border-radius: 4px;
}

::-ms-scrollbar {
    width: 9px;
}

::-ms-scrollbar-thumb {
    background-color: #011017;
    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;
}

/* Медиа-запросы */
@media screen and (max-width: 767px) {
    .burger-menu {
        display: block;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #011017, #3b1a8c);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-container.active {
        transform: translateX(0);
    }

    .menu {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        display: block;
        padding: 12px 20px;
    }

    .menu a:hover::after {
        width: 50%;
    }

    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;
    }

    #data-table td,
    #data-table th {
        font-size: 12px;
    }

    .scrollable-cell {
        font-size: 12px;
        max-height: 100px;
        overflow-y: auto;
    }

    .content-container {
        margin: 70px 10px 10px;
        padding: 15px;
    }

    .content-container h1 {
        font-size: 20px;
    }

    .content-container p {
        font-size: 14px;
    }
}

/* Секция заголовка и фильтров */
.header-section {
    margin-bottom: 20px;
}

/* Секция таблицы */
.table-section {
    width: 100%;
}

/* Убедимся, что элементы управления DataTables остаются внизу таблицы */
.dataTables_wrapper {
    position: relative;
    clear: both;
}

/* Стили для элементов управления DataTables */
.dataTables_length, .dataTables_filter {
    margin-bottom: 10px;
}

.dataTables_info, .dataTables_paginate {
    margin-top: 10px;
}

/* Убедимся, что таблица занимает всю ширину и находится под фильтрами */
#data-table {
    width: 100%;
    margin-top: 0; /* Убираем лишний отступ сверху */
}

/* Медиа-запросы для мобильных устройств */
@media screen and (max-width: 767px) {
    .header-section {
        margin-bottom: 15px;
    }

    .dataTables_length, .dataTables_filter {
        text-align: center;
    }

    .dataTables_info {
        text-align: center;
    }

    .dataTables_paginate {
        text-align: center;
    }
}