/* ------------------- Estilos Gerais ------------------- */
body {
    background: url('/static/images/universo_back.webp') no-repeat center center fixed;
    background-size: cover;
}

h1, h2, p, span {
    color: white;
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* Fix para Chrome */
}

/* ------------------- Containers ------------------- */
.stl-container, .pdt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pdt-container {
    flex-wrap: wrap;
    gap: 20px;
}

/* ------------------- Cartão do mercado pago ------------------- */

.mp-card{
    background: rgba(90, 55, 155, 0.80);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}


/* ------------------- Cartão de Login ------------------- */
.stl-card {
    background: rgba(255, 255, 255, 30%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.stl-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.stl-subtitle, .stl-label {
    font-size: 0.9rem;
    color: #ddd;
}

.stl-input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px;
}

.stl-input::placeholder {
    color: #ccc;
}

/* ------------------- Botões ------------------- */
.btn-dark, .btn-light {
    border: none !important; /* Remove borda */
    border-radius: 15px !important; /* Arredonda as bordas */
    padding: 10px 20px !important; /* Ajusta o tamanho interno */
    font-size: 16px !important; /* Define o tamanho do texto */
    color: white !important; /* Garante que o texto fique branco */
    text-shadow: none !important; /* Remove sombra do texto */
    box-shadow: none !important; /* Remove sombra do botão */
}

.btn-light{
    background-color: #5a379b;

}
.btn-light:hover{
    background-color: #7a3db8;

}

.btn-dark{
    background-color: #5c3b7a;

}
.btn-dark:hover{
    background-color: #7a3db8;

}

.forgot-password{
    color: white;
}

.th {
    background-color: #3b2366;
    color: white;
}

.qr-button {
    max-width: 20%;
}


/* ------------------- Navbar ------------------- */
.navbar {
    background-color: #3b2366 !important;
    padding: 8px 20px;
    box-shadow: 0 4px 20px -2px rgb(0, 0, 0);
    width: 100vw;
}

.navbar-brand img {
    max-height: 35px;
    padding: 1px;
}

.navbar-toggler {
    border: none;
}

.nav-link i, .user-arrow {
    color: white !important;
}

.d-flex.align-items-center .rounded {
    border: 2px solid white;
    margin-left: 10px;
}

/* ------------------- Cartão de Produto ------------------- */
.pdt-card {
    display: flex;
    flex-direction: column;
    background: rgb(0,0,0);
    border-radius: 15px;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.pdt-top {
    display: flex;

}

.pdt-image {
    width: 100%;
    position: relative;
}

.pdt-image-container {
    width: 100%;
    height: 350px; /* Ajuste conforme necessário */
    overflow: hidden;
}

.pdt-image img {
    width: 90%;
    height: 100%;
    object-fit: cover ;
    border-radius: 10px;
}

.pdt-content {
    width: 60%;
    padding-left: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

.pdt-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px;
}

.pdt-description {
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ------------------- Rodapé do Cartão ------------------- */
.pdt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 10px 15px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.pdt-price {
    color: white;
    font-size: 1.2rem;
}

/* ------------------- Usuário (Dropdown) ------------------- */
.user-menu-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    padding: 5px 10px;
    font-size: 1rem;
    gap: 8px;
}

.user-icon {
    width: 35px;
    height: 35px;
    background: white;
    color: #3b2366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-name {
    flex-grow: 1;
    text-align: left;
}

.user-arrow {
    transition: transform 0.3s ease-in-out;
}

.show .user-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    background-color: #3b2366;
    border-radius: 10px;
    min-width: 220px;
    padding: 10px 0;
}

.user-dropdown .dropdown-item {
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.user-dropdown .dropdown-item i {
    margin-right: 10px;
}

.user-dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logout-btn {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 5px;
}

.btn-close {
    filter: invert(1);
}

/* ------------------- Responsividade ------------------- */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .pdt-top {
        position: relative;
    }

    .pdt-content {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        color: white;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centraliza verticalmente */
        align-items: center; /* Centraliza horizontalmente */
        text-align: center; /* Garante que o texto fique centralizado */
    }

    .pdt-title {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .pdt-description {
        font-size: 0.9rem;
    }
}

.pdt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 10px 15px;
    width: 100%;
    /* remova a propriedade position: absolute */
}


.img-table {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
}



/* ------------------- Cortina carregamento ------------------- */
.mesa {
    position: relative;
    width: 300px;
    height: 200px;
}

/* Estilo das cartas */
.carta {
    position: absolute;
    width: 80px;
    height: 120px;
    border-radius: 10px;
    border: 2px solid black;
    transition: all 0.5s ease-in-out;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);

    /* Adicionando a imagem do verso (AGORA LOCAL) */
    background-image: url('/static/images/carta-verso.jpg');
    background-size: cover;
    background-position: center;
}

/* Posições iniciais */
#carta1 { top: 40px; left: 20px; transform: rotate(-15deg); }
#carta2 { top: 30px; left: 110px; transform: rotate(0deg); }
#carta3 { top: 40px; left: 200px; transform: rotate(15deg); }


.carregamento-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(90, 55, 155, 0.80);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .carregamento-container {
        text-align: center;
        color: white;
    }

    .carregamento-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid white;
        border-top: 5px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    /* ------------------- Container de Consultas ------------------- */
.consultas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* ------------------- Cartão de Consulta ------------------- */
.consulta-card {
    background: rgba(90, 55, 155, 0.8);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ------------------- Cabeçalho do Cartão ------------------- */
.consulta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.consulta-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.consulta-data {
    font-size: 0.9rem;
    color: #ddd;
}

/* ------------------- Corpo do Cartão ------------------- */
.consulta-body {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* ------------------- Rodapé do Cartão ------------------- */
.consulta-footer {
    text-align: right;
}
/* Alinha o título "Cartas" corretamente */
.consulta-card p {
    margin-bottom: 5px;
}

/* Contêiner para as cartas */
.cartas-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espaço entre as cartas */
    margin-bottom: 10px;
}

/* Cada carta (texto + imagem) */
.carta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Nome da carta */
.carta-nome {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Imagem da carta */
.carta-imagem {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
