﻿/* === GENERAL SETTINGS === */
body {
    /*background: #F8F9FA;*/
    background: linear-gradient(to right, #1E3A8A, #3B82F6);
    color: white;
    font-family: Arial, sans-serif;
}
.btn-primary {
    background-color: black;
}
.d-none {
    display: none !important;
}


/* === ACCORDION BUTTON STYLES === */
.accordion-button {
    background-color: #1E3A8A; /* Тёмно-синий */
    color: #ffffff;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    box-shadow: none;
}

    /* Hover effect */
    .accordion-button:hover {
        background-color: #152C5B; /* Ещё темнее при наведении */
        color: #ffffff;
    }

    /* Expanded (active) button */
    .accordion-button:not(.collapsed) {
        background-color: #1E3A8A;
        color: #ffffff;
    }

    /* White arrow */
    .accordion-button::after {
        filter: brightness(0) invert(1); /* Делает стрелку белой */
        transition: transform 0.3s ease;
    }

    /* Arrow rotation */
    .accordion-button.collapsed::after {
        transform: rotate(0deg);
    }

    .accordion-button:not(.collapsed)::after {
        transform: rotate(-180deg);
    }
.navbar-toggler {
    font-size: 1.8rem;
    border: none;
    background: none;
    color: #1E3A8A;
}

.burger-icon,
.close-icon {
    font-size: 2rem;
    transition: opacity 0.3s ease;
    color: #1E3A8A;
}


/* === MAIN CONTENT === */
.container {
    color: black;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .container {
        min-width: calc(100% - 20px);
    }
}
/* Styles for the dual-column section */
.dual-columns {
    display: flex;
    gap: 20px;
}

    .dual-columns .col {
        flex: 1;
    }

/* === FOOTER LINK === */
.col-md-4 a {
    color: white;
}

    .col-md-4 a:hover {
        color: lightgray;
    }

/* Column padding */
.column {
    padding: 0px;
}

 /*=== COOKIE MODAL STYLES === */
.cookie-modal.fade .modal-backdrop {
    background-color: rgba(0, 0, 50, 0.6);
}

 Main cookie modal 
.cookie-modal-content {
    background-color: #1E3A8A;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    padding: 15px;
}

 Cookie modal header 
.cookie-modal-header {
    background-color: #1E40AF;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 12px 15px;
}

.cookie-modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

 Cookie modal body 
.cookie-modal-body {
    font-size: 1rem;
    line-height: 1.5;
    padding: 20px;
}

 Cookie modal footer 
.cookie-modal-footer {
    background-color: #1E3A8A;
    border-radius: 0 0 12px 12px;
    border-top: none;
    padding: 12px;
    text-align: right;
}

 General styles for cookie buttons 
.cookie-btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 15px;
    transition: background 0.3s ease-in-out;
}

/* "Only necessary cookies" button */
.cookie-btn-secondary {
    background-color: #64748B;
    color: #fff;
}

    .cookie-btn-secondary:hover {
        background-color: #475569;
    }

/* "Accept" button */
.cookie-btn-accept {
    background-color: #10B981;
    color: #fff;
}

    .cookie-btn-accept:hover {
        background-color: #059669;
    }

/* === FORM RANGE STYLES === */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 30px;
    height: 3px;
    outline: none;
    transition: background-color 0.3s ease;
    width: 100%;
}
    .form-range::-webkit-slider-runnable-track {
        background: #a0c4f4;
        border-radius: 30px;
        height: 3px;
    }

    .form-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        background: #1E3A8A;
        border: 2px solid #fff;
        border-radius: 50%;
        cursor: pointer;
        width: 16px;
        height: 16px;
        margin-top: -7px;
    }
    .form-range:hover {
        background: #a0c4f4;
    }
#generateQrBtn {
    background-color: #1f3d8e;
    border: none;
    transition: all 0.3s ease-in-out;
}

    #generateQrBtn:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }
/* === ICONS PREVIEW ===*/
.icon-option {
    display: inline-block;
    margin: 10px;
}
    .icon-option input[type="radio"] {
        display: none;
    }

.icon-label {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .icon-label:hover {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }

.icon-img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.icon-option input[type="radio"]:checked + .icon-label {
    border: 2px solid #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
}

/* === LOGO STYLES === */
.logo {
    height: 80px;
    padding-right: 0px;
}

/* === MODAL STYLES === */
.modal {
    align-items: center;
    background-color: rgba(0, 03, 0, 0.5);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    z-index: 1000;
}

    .modal.show {
        display: flex;
        opacity: 1;
    }

.modal-content {
    animation: fadeIn 0.3s ease-in-out;
    background: #eaeef2;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 35px;
    text-align: center;
}

.modal-footerMy {
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    -ms-flex-pack: end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}


.close {
    color: #333;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    transition: color 0.3s;
}

    .close:hover {
        color: #ff4d4d;
    }

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === NAVBAR STYLES === */
.navbar {
    background-color: rgb(75, 75, 75) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #1E3A8A !important;
}

.navbar-brand {
    color: #1E3A8A !important;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #1E3A8A !important;
    font-size: 1.1rem;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out, transform 0.2s;
}

    .navbar-nav .nav-link:hover {
        color: dodgerblue !important;
        transform: scale(1.1);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231E3A8A' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none !important;
}

    .navbar-toggler:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }


/* === ICON PREVIEW PREVIEW ===*/
.preview-container {
    margin-top: 10px;
    display: inline-block;
    position: relative;
    width: 70px;
    height: 70px;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

.preview-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #007bff;
    background-color: #fff;
    padding: 0 5px;
    border-radius: 5px;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* === QR CODE CONTAINER === */
.qr-code-container {
    margin-bottom: 0;
    text-align: center;
}

    /* Styles for the QR code image */
    .qr-code-container svg {
        display: block;
        height: auto;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }


/* === TITLE STYLES === */
.title {
    font-size: 24px;
    font-weight: bold;
    padding-left: 30px;
}

/* === PCR-APP STYLES === */
.pcr-app {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 9999 !important;
}

/* Адаптация для десктопов */
@media (min-width: 992px) {
    .qr-code-frame-container {
        max-width: 400px;
    }
    #infoPopup {
        min-width: 600px;
        display: none;
    }
}

/*Container Privacy and AGB*/
.container-info {
    padding-left: 100px;
    padding-right: 50px;
    /*min-height: 100vh;*/
    padding-bottom: 50px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 10px;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 760px) {
    .container-info {
        padding-left: 20px;
        padding-right: 20px;
    }

    #mainContent.blurred {
        filter: blur(4px);
        transition: filter 0.3s ease;
    }


    .pcr-app {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1.5);
        z-index: 9999 !important;
    }

    .qr-code-container {
        padding-bottom: 20px;
    }
    .shape-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирование по горизонтали */
        gap: 10px; /* Отступ между кнопками */
    }
    .setting-group {
        width: 100%;
    }
    .shape-btn {
        flex: 0 1 calc(50% - 20px); /* Две кнопки в ряд с учётом gap */
        text-align: center;
        box-sizing: border-box;
    }
    .accordion-body {
        justify-content: center;
        align-items: center;
    }
    #colorOptions {
        justify-content: center;
    }
    #gradientOptions .d-flex.gap-4 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #gradientOptions .form-group {
        width: 90%;
        text-align: center;
    }

    #gradientOptions .btn-group {
        flex-direction: row !important;
        justify-content: center;
    }

    #gradientOptions label.btn {
        width: 100px;
    }

    #oneColorOptions {
        justify-content: center;
        margin-left: 0px;
    }
    #iconSelect {
        justify-content: center;
        margin-left: 0px;
    }
    .form-label {
        text-align: center;
    }
    .modal-footerMy {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    .custom-content {
        font-size: 1.25rem;
        padding: 2rem;
        max-width: 300px;
        margin: auto;
        
    }
    #infoPopup {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #222;
        padding: 10px;
        border-radius: 5px;
        z-index: 10;
    }
    .unstyled1 li {
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        padding: 8px 12px;
        margin-bottom: 10px;
        transition: background 0.3s, border-color 0.3s;
    }

        .unstyled1 li:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: #fff;
        }

}
@media (max-width: 991.98px) {
    /* Меняем выравнивание на flex-start (в начало) */
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Теперь всё прижимается к левому краю */
        padding-left: 15px; /* Добавляем отступ слева для лучшего вида */
    }

    /* Убираем отступы с меню */
    .navbar-nav.ms-auto,
    .navbar-nav.ms-0.ms-md-3 {
        margin-left: 0 !important;
        margin-bottom: 0.5rem;
        width: 100%; /* Растягиваем на всю ширину */
    }

    /* Меняем выравнивание ссылок на левое */
    .navbar-nav .nav-link {
        text-align: left; /* Теперь текст по левому краю */
        box-sizing: border-box;
        border-left: 2px solid transparent;
        transition: border-color 0.3s ease, color 0.3s ease;
        margin: 0;
        padding-left: 0; /* Убираем лишний отступ слева */
        justify-content: flex-start; /* Выравниваем содержимое по левому краю */
    }

        .navbar-nav .nav-link.dropdown-toggle {
            white-space: nowrap;
            padding-right: 1.5rem;
            transition: none !important;
        }

            .navbar-nav .nav-link.dropdown-toggle:focus,
            .navbar-nav .nav-link.dropdown-toggle:active {
                outline: none;
                box-shadow: none;
            }

        /* Убираем центрирование для dropdown-toggle */
        .navbar-nav .nav-link.dropdown-toggle {
            justify-content: flex-start;
        }
        /* Убираем все визуальные изменения при взаимодействии */
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus,
        .navbar-nav .nav-link:active {
            transform: none !important; /* Убираем возможные трансформации */
            padding-left: 0 !important; /* Фиксируем отступ слева */
            margin-left: 0 !important; /* Фиксируем margin */
            border-left-color: transparent !important; /* Фиксируем рамку */
        }

    /* Для dropdown-элементов */
    .navbar-nav .dropdown-toggle:hover,
    .navbar-nav .dropdown-toggle:focus,
    .navbar-nav .dropdown-toggle:active {
        padding-right: 1.5rem !important; /* Фиксируем отступ справа */
    }

    /* Если есть сдвиги из-за border */
    .navbar-nav .nav-link {
        border-left: 2px solid transparent !important; /* Фиксируем прозрачную рамку */
    }

        /* Убираем любые transition, которые могут вызывать сдвиги */
        .navbar-nav .nav-link,
        .navbar-nav .nav-link * {
            transition: none !important;
        }
}


.tooltip-inner {
    max-width: 850px;
    white-space: normal;
}

.qr-settings-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.setting-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.setting-title {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.setting-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.shape-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .shape-btn:hover {
        border-color: #3498db;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
    }

    .shape-btn.active {
        border-color: #3498db;
        background-color: #f0f8ff;
    }

    .shape-btn svg {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
        color: #2c3e50;
        display: block;
    }

    .shape-btn span {
        font-size: 0.85rem;
        color: #34495e;
    }

.custom-content {
    font-size: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

/* === MAP POPUP STYLES === */
#infoPopup {
    display: none;
}

.popup {
    max-width: 550px;
    max-height: 250px;
    padding-right: 10px;
    font-size: 12px;
    box-sizing: border-box;
    border-radius: 8px;
    line-height: 1.4;
}


.popup-content {
    font-size: 10px;
    border-radius: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    font-weight: bold;
    user-select: none;
    transition: color 0.3s;
    margin-bottom: 10px;
}

    .popup-close:hover {
        color: #000;
    }



