

/* ========== Чекбоксы ========== */

.custom-checkbox input[type="checkbox"]:checked {
    background-color: #002739;              /* бренд вместо зелёного */
    border-color: #002739;
}

/* ========== Картинки в постах (мобила) ========== */

@media (max-width: 768px) {
    .responsive-post-img {
        max-width: 100% !important;
    }
}

/* ========== Tabs ========== */

.nav-tabs .nav-link {
    color: #002739 !important;              /* брендовый цвет для табов */
}

.nav-tabs .nav-link.active {
    color: #001a28 !important;
    font-weight: 500;
}

/* Активный пункт в dropdown'ах */

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #e3edf4 !important;   /* мягкий голубовато-серый */
    color: #000000 !important;
}

/* ========== Мобильная адаптация dropdown внутри navbar ========== */

@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: 0;
    }

    .navbar .dropdown-toggle {
        width: 100%;
        text-align: left;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
}

.modal-dialog {
    position: fixed;
    top: 5%;
    left: -0.1%;
    transform:  scale(var(--modal-scale, 1)) !important;
    transform-origin: top center !important;
    transition: transform 0.3s ease;
}

.shake-badge {
    display: inline-block;
    animation: blinking 0.5s infinite, shaking 0.5s infinite, pulsing 0.3s infinite;
}

@keyframes blinking {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes shaking {
    0% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    100% { transform: translateX(-1px); }
}

@keyframes pulsing {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
    .navbar-collapse .btn {
        width: 100%;
        max-width: 200px;
        margin: 6px 0;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: center;
    }

    .navbar-collapse .btn {
        width: auto !important;
        margin: 6px 12px;
    }
}

.attention-message {
    display: inline-block;
    font-size: 0.8rem;
    color: #dc3545; /* Красный */
    animation: blinking 1s infinite, pulsing 0.3s infinite;
}

@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.1);
        transform: scale(1.005);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}

.subtle-pulse {
    animation: subtlePulse 3s infinite;
}


@keyframes promoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6); /* Bootstrap success зелёный */
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 4px 4px rgba(25, 135, 84, 0.3);
        transform: scale(1.008);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
        transform: scale(1);
    }
}


.balance-flash {
    animation: balanceBlink 1s ease-in-out;
}

@keyframes balanceBlink {
    0% {
        transform: scale(1);
        background-color: #198754; /* Исходный зелёный */
        color: white;
    }
    50% {
        transform: scale(1.1); /* Увеличение */
        background-color: #28a745; /* Чуть ярче */
        color: yellow;
    }
    100% {
        transform: scale(1);
        background-color: #198754;
        color: white;
    }
}


.pulsate-green {
    animation: pulsate-green 1.5s infinite;
}

@keyframes pulsate-green {
    0% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
    }
    50% {
        box-shadow: 0 0 20px rgba(25, 135, 84, 1);
    }
    100% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
    }
}
