﻿
.nav-active {
    font-weight: bold;
    color: #fff !important;
    background-color: #2B4A4E !important;
}

.ui-menu {
    z-index: 5000 !important;
}

.cropit-preview {
    background-size: cover;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-top: 6px;
}

.cropit-preview-image-container {
    cursor: move;
    /*margin-left: 0.5px;*/
}

@media (max-width: 480px) {
    .cropit-preview, .imgCropit {
        width: 100% !important;
        height: 100% !important;
    }
}

.image-size-label {
    margin-top: 10px;
    margin-bottom: 4px;
}

#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

    #loading img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
    }

.my-card {
    cursor: pointer;
    transition: transform 0.2s; /* Suaviza a transição */
}

    .my-card:hover {
        transform: scale(1.05); /* Aumenta o tamanho do card */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adiciona uma sombra */
    }

.my-card2 {
    cursor: pointer;
    transition: transform 0.2s; /* Suaviza a transição */
}

    .my-card2:hover {
        transform: scale(1.003); /* Aumenta o tamanho do card */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adiciona uma sombra */
    }

.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

    .custom-switch .custom-control-input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .custom-switch .custom-control-label {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: gray;
        transition: .4s;
        border-radius: 28px;
    }

        .custom-switch .custom-control-label::before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

    .custom-switch .custom-control-input:checked + .custom-control-label {
        background-color: #3cbb3c;
    }

        .custom-switch .custom-control-input:checked + .custom-control-label::before {
            transform: translateX(22px);
        }

    .custom-switch.custom-switch-md {
        width: 40px;
        height: 24px;
    }

        .custom-switch.custom-switch-md .custom-control-label::before {
            height: 18px;
            width: 18px;
        }

        .custom-switch.custom-switch-md .custom-control-input:checked + .custom-control-label::before {
            transform: translateX(16px);
        }

@media screen and (max-width: 437px) {
    .footer-custom {
        padding-top: 40px !important;
    }
}

@media screen and (max-width: 422px) {
    .footer-custom {
        padding-top: 25px !important;
    }
}

.opcao-label {
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

    /* quando o input dentro do label estiver marcado */
    .opcao-label:has(input:checked) {
        border-color: #0d6efd; /* azul Bootstrap */
        background-color: #e7f1ff;
        font-weight: bold;
    }

    .opcao-label:hover {
        border-color: #0d6efd;
    }

    .opcao-label span {
        min-height: 33px;
        display: flex; /* garante alinhamento vertical */
        align-items: center; /* centraliza o texto */
    }

/* Deletar item do card arrastando para o lado */
/* Deletar item do card arrastando para o lado */
.swipe-item {
    overflow: hidden;
    position: relative;
}

/* Linha inteira */
.swipe-row {
    display: flex;
    width: 100%;
    transition: transform .25s ease;
}

/* Mobile */
@media (max-width: 768px) {

    /* Coluna delete começa escondida */
    .swipe-delete {
        background: #dc3545;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .swipe-delete img {
            filter: invert(1);
        }

    /* Quando ativa → empurra o conteúdo */
    .swipe-item.active .swipe-row {
        transform: translateX(-72px); /* mesma largura da lixeira */
    }
}

/* Desktop */
@media (min-width: 769px) {
    .swipe-row {
        transform: none !important;
    }

    .swipe-delete {
        background: transparent;
    }

        .swipe-delete img {
            filter: none;
        }
}


/* FIM - Deletar item do card arrastando para o lado */

.menuWrapper {
    position: relative;
    width: 100%;
}

.menuSuperior {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* rolagem suave mobile */
    scrollbar-width: none;
    scroll-behavior: smooth;
    margin-bottom: 10px;
}

    .menuSuperior::-webkit-scrollbar {
        display: none;
    }

    .menuSuperior ul {
        display: flex;
        flex-wrap: nowrap;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .menuSuperior li {
        flex: 0 0 auto;
        margin: 0 16px; /* distância fixa entre itens */
        text-align: center;
        max-width: 80px; /* controla largura para quebrar texto */
    }

    .menuSuperior img {
        width: 60px;
        height: 60px;
        border: 1px solid #2b4a4e75;
        border-radius: 50%;
    }

    .menuSuperior small {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: #333;
        word-wrap: break-word; /* quebra texto longo */
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
    font-size: 22px;
    padding: 4px 8px;
    z-index: 10;
    opacity: 0; /* invisível por padrão */
    transition: opacity 0.3s ease, background 0.3s ease;
}

.menuWrapper:hover .arrow {
    opacity: 1; /* aparece suavemente no hover */
}

.arrow:hover {
    background: rgba(255,255,255,0.9);
}

.arrow.left {
    left: 0;
}

.arrow.right {
    right: 0;
}

@media (max-width: 767.98px) {
    .btn-flutuante {
        width: 90%;
    }
}

@media (max-width: 1200px) {

    .menuSuperior {
        display: block;
    }
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 42px 10px 10px 12px;
    /* Gradiente para dar transparência */
    background: linear-gradient(to top, rgb(0 0 0), rgba(0, 0, 0, 0));
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Esconde no Desktop */

.mobile-footer-actions {
    display: none;
    z-index: 8888;
}

@media (max-width: 768px) {

    body {
        padding-bottom: 95px;
    }

    .mobile-footer-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 8888;
        display: flex;
        gap: 12px;
        padding-bottom: env(safe-area-inset-bottom);
        animation: fadeUp .3s;
    }

    .footer-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-decoration: none;
        color: #fff;
        border-radius: 18px;
        padding: 10px 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,.18);
        transition: .2s;
    }

        .footer-btn:active {
            transform: scale(.97);
        }

        .footer-btn i {
            font-size: 30px;
        }

        .footer-btn span {
            display: block;
            font-size: 20px;
            font-weight: 700;
            line-height: 20px;
        }

        .footer-btn small {
            display: block;
            font-size: 13px;
            opacity: .9;
            margin-top: 3px;
        }

    .footer-btn-chat {
        background: linear-gradient(#2B4A4E,#0b5d56,#0d7a6e);
    }

    .footer-btn-prayer {
        background: linear-gradient(135deg,#3574e5,#2a5dc4);
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}