
html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    background-color: #f9fafb !important; /* Cor do background geral */
}

/* Bootstrap form-floating: placeholder alinhando de end -> start ao focar */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Anima??o de entrada suave */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* p?gina: fade + translateY */
@keyframes fadeInY {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in { /* j? usado nas views */
    animation: fadeInY 0.3s ease-in;
}

/* modal: fade + scale */
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pop-in { /* use esta classe nos modais/alerts */
    animation: popIn 0.2s ease-out;
}

.pad-buttom {
    padding: 12px !important;
}

.mg-telefone {
    margin-top: .15rem !important;
}

/* Ajustes s? no mobile */
@media (max-width: 639px) {
    /* Centraliza corretamente o texto do input date em navegadores WebKit */
    #data-base {
        text-align: center;
    }

        #data-base::-webkit-datetime-edit {
            text-align: center;
        }

        /* D? um ?respiro? ao ?cone do calend?rio ? direita */
        #data-base::-webkit-calendar-picker-indicator {
            margin-right: .25rem; /* ~4px */
        }
}


.p-icone {
    padding-right: .25rem !important;
    padding-top: .25rem !important;
}

.p-dash {
    padding-right: 18px !important;
    padding-left: 18px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.marg-card-dash {
    margin-top: .15rem !important;
}

.contador {
    margin-bottom: 0.15rem;
}

/* Hover nos cards */
.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

/* ========== MODAL (animações suaves) ========== */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

    .modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }



.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-content.show {
    transform: scale(1);
    opacity: 1;
}


/* Corrige conflito Tailwind x Bootstrap no componente collapse */
.navbar .collapse {
    visibility: visible !important;
}

/* MOBILE: esconder o ícone de logout quando o menu estiver ABERTO (collapse .show) */
@media (max-width: 850px) {
    /* por padrão, mostrar o bloco compacto */
    .logout-compact {
        display: inline-flex;
    }
    /* quando o #mainNav estiver aberto (tem .show), esconda o bloco de logout à direita */
    #mainNav.show ~ .logout-compact {
        display: none !important;
    }
}

.logo-login {
    height: 8rem !important;
    width: 8rem !important;
}

.logo-navbar {
    height: 3.5rem !important;
    width: 3.5rem !important;
}

/* Entre 1170px e 1190px: ignora o max-width do .container */
@media (min-width: 1170px) and (max-width: 1190px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 800px) and (max-width: 1200px) {

    /* Fix para bug do iPad com inputs de data */
    input[type="date"],
    input[type="datetime-local"] {
        -webkit-appearance: none;
        appearance: none;
        min-height: 32px;
        line-height: 1 !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* iPadOS específico (Safari Mobile em telas grandes) */
    @supports (-webkit-touch-callout: none) {
        input[type="date"],
        input[type="datetime-local"] {
            font-size: 14px !important; /* evita zoom e deformação */
            height: 38px !important;
        }
    }
}


/* Esconde o botão por padrão */
#btn-edit-cliente-marc {
    display: none;
}

/* A partir de 1050px, mostra como inline-flex (igual às classes Tailwind) */
@media (min-width: 1050px) {
    #btn-edit-cliente-marc {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .aluna-contato-hide-sm {
        display: none;
    }
}
