.overlay-amo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;

    z-index: 19;
}

.prevent-events {
    pointer-events: none;
}

.gif-container {
    max-width: 30%;
    max-height: 30%;
    position: absolute;
    z-index: 20;

}

.link-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-item:hover {
    transform: scale(1.1); /* Увеличение при наведении */
    opacity: .6;
}

.link-item:active {
    transform: scale(0.9); /* Уменьшение при клике */
    opacity: 1;
}

.row {
    margin-right: 0 !important;
}

.modal_body {
    max-height: 300px;
    overflow-x: auto; /* Включить горизонтальную прокрутку при необходимости */
    white-space: nowrap; /* Предотвращает перенос строк */
    margin-bottom: 10px;
}

.modal_body label {
    margin-bottom: 0;
}

.modal_body label {
    display: inline-flex;
}

.modal_body .checkbox {
    transform: translateY(2.6px);
}

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#amount_selected {
    display: none;
}

.property_label {
    font-size: 14px;
}




/* DATABASE PAGE */

.db_settings-header {
    display: flex;
    justify-content: space-between;
}

.db_settings-title {
    font-weight: 600;
    font-size: 32px;
    text-transform: uppercase;
}

.db_settings-warning {
    display: flex;
    background-color: rgba(242, 221, 30, 0.2);
    min-height: 64px;

    border-radius: 12px;

    align-items: center;

    margin-top: 20px;
}

.db_settings-warning:before {
    content: "";
    position: absolute;
    background-color: rgba(242, 221, 30, 1);
    min-height: 64px;

    width: 12px;


    border-radius: 12px 0 0 12px;
}

.db_settings-warning_box {
    display: flex;
    margin-left: 32px;
    align-items: center;
}

.db_settings-warning_icon {
    margin-right: 15px;
}


.db_settings-warning_text {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.db_settings-warning_text span {
    font-weight: 600;
}


.db_settings-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin-top: 30px;
}


.db_settings-input {
    display: flex;
    flex-direction: column;

    margin-right: 30px;
    margin-bottom: 30px;
}

.db_settings-input input, select {
    background-color: white;
    border-radius: 12px;
    padding: 8px 16px 8px 16px;
    border: 1px solid rgba(118, 118, 118, 1);
}

.db_settings-input select {
    padding: 10px 18px 10px 18px;
}

.db_settings-input_password {
    width: 100%;
}

.db_settings-input_password_img {
    position: absolute;
    transform: translate(-40px, 10px);
    cursor: pointer;
    transition: opacity ease-in .1s;
}

.db_settings-input_password_img:hover {
    opacity: .66;
}

.db_settings-buttons {
    text-align: right;
    margin-right: 30px;
    margin-top: 50px;

    display: flex;
    justify-content: space-between; /* Равномерное распределение пространства между элементами */
}

.db_settings-button {
    width: 300px;
    background-color: #12806a;
    transition: all ease-in-out .2s;
    border-radius: 12px;

    border: none;

    height: 40px;

    color: white;

    font-weight: 600;

    cursor: pointer;
}

.db_settings-button:hover {
    background-color: #0f6453;
}

.button-primary:hover {
    background-color: #0f6453;
}

.button_secondary {
    border: 2px solid #12806A;
    background-color: transparent;
    color: #12806A;
    margin-right: 10px;
}

.button_secondary:hover {
    background: #12806A;
    color: white;
}

.button_danger {
    background-color: transparent !important;
    border: 2px solid rgba(210, 0, 0, 1) !important;
    color: rgba(210, 0, 0, 1)!important;
}

.button_danger:hover {
    background-color: rgba(210, 0, 0, 1) !important;
    color: white !important;
}

.db_settings-buttons .button_settings-container {
    display: flex;
}

.db_settings-button.button_disconnect {
    order: -1; /* Помещаем первую кнопку в начало */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutOpacity {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.db_settings-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 600;

    width: 500px;

    border-radius: 24px;

    animation: fadeIn 0.3s ease forwards; /* Анимация появления */
}

.db_settings-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный чёрный цвет */
    backdrop-filter: blur(13px); /* Размытие */
    -webkit-backdrop-filter: blur(13px); /* Для совместимости с браузерами на базе WebKit */
    z-index: 500;
    animation: fadeInOpacity 0.3s ease forwards; /* Анимация появления */

}

.db_settings-popup-box {
    text-align: center;

    padding: 10px;
}

.db_settings-popup-box p {
    font-size: 14px;
    font-weight: 500;
}

.db_settings-popup-box h3 {
    font-size: 24px;
    font-weight: 600;

    margin-top: 15px;
}

.db_settings-popup-disconnect {
    height: 55px;
}

.db_settings-popup-buttons {
    display: flex;
    gap: 15px;

    margin-bottom: 15px;
}

.db_settings-popup-cancel {
    height: 55px;
}

.db_settings-popup-img {
    display: flex;
    margin: 0 auto;
}


.period_inputs_box {
    width: 72% !important;
}

.date {
    justify-content: normal;
}

.db_sync_switch_input {

}

#save {
    padding: 0;
    height: 36px;
    margin-left: 5px;
    max-width: calc(38%);
    width: 225px;
    min-width: 100px;
}

/* --- DATABASE PAGE --- */



/*FRONT PAGE*/

.about_note {
    margin-bottom: 15px;
}


.entity-date {
    text-align: center;
    vertical-align: center;
}

#copyPopup, #hoverPopup {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 14px 14px;
    border-radius: 4px;
    display: none; /* Скрыть по умолчанию */
    font-size: 10px;
    font-weight: 600;
    z-index: 1000;

    text-align: center;


}

/*.db_sync_switch_input {*/
/*    visibility: hidden;*/
/*}*/

/*.modal-title-box {*/
/*    visibility: hidden;*/
/*}*/

/*.db_sync_switch_input-image {*/
/*    visibility: hidden;*/
/*}*/



/*.admin-notify {*/
/*    cursor: not-allowed;*/
/*    opacity: 50%;*/

/*}*/

/*.admin-notify, .admin-notify input, .admin-notify button {*/
/*    cursor: not-allowed;*/

/*}*/

/*.admin-notify button:hover {*/
/*    background: #12806a;*/
/*}*/


.footer-copyright {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 0 20px;
    margin-top: 5px;
    margin-bottom: 60px;
}

/*footer {*/
/*    margin-bottom: 10px;*/

/*}*/

.footer_body {
    overflow-x: auto;
    white-space: nowrap;
}



.footer-copyright a, .footer-copyright p {
    color: #1B1B1B;
    font-size: 12px;
    text-align: center;
    vertical-align: center;

    padding: 0;
    margin: 0;
}


.footer_body .row .col-md-3 {
    max-width: 50%;
}


#admins {
    min-width: 100px;
    max-width: 250px;
}

#domain_token {
    min-width: 100px;
    max-width: 250px;
}

.admin-col {
    max-width: fit-content;
}






/* Modal */
#modalPayment .modal-content {
    width: 491px;
    border-radius: 24px;
}

.payment_content .d-flex {
    justify-content: space-between;
    gap: 16px;
}

.payments_type {
    width: 33%;
    text-align: center;
    border: 1px solid #767676;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
}
.payments_type p {
    font-size: 12px;
    margin: 0;
}
.other_price {
    margin: 0;
    font-weight: 500;
}



.price-additional-desc {
    margin-top: 15px;
}

.RedStart {
    color: red;
}




/* CRON DB */
.info_cron_db {
    padding-inline-start: 0;
    border: 1px solid #000 ;
    border-radius: 12px;
    margin-top: 28px;
}
.info_cron_db li:first-child {
    font-weight: 700;
}
.info_cron_db li:last-child {
    border-bottom: none;
}
.info_cron_db li {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    height: 60px;
    padding: 0 12px;
    border-bottom: 1px solid #ccc;
}
.info_cron_db li>div:first-child {
    width: 100%;
}
.info_cron_db li>div:last-child {
    width: 100%;
}


.time-picker {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    border-radius: 12px;
    /* Радиус границы */
    column-count: 4;
    /* Количество колонок */
    z-index: 1000; /* To ensure dropdown appears above other content */
    width: auto;

    padding: 8px 16px 8px 16px;
    box-sizing: border-box;
    /* Учитываем границы и отступы внутри ширины элемента */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 5px;
}

.time-picker label {
    display: block;
    margin-bottom: 5px;
}
.time_input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}



/*db gui*/

.rotate {
    /* Добавленные стили для анимации вращения */
    animation: rotateImage 2s linear infinite;
}

.hidden {
    display: none;
}



.dissable {
    visibility: hidden;
}

.fake-blocker {
    display: none;
    z-index: 22;
    position: absolute;
    width: 500px;
    height: 130px;
}
@keyframes rotateImage {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.half-width {
    width: 50% !important;

}

