
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 */
        }
}


/* Ponto azul no dia (aba Mês) */
.day-has-note {
    position: relative;
}

    .day-has-note::after {
        content: "";
        position: absolute;
        top: 6px; /* ajusta se quiser */
        left: 6px; /* ajusta se quiser */
        width: 8px;
        height: 8px;
        border-radius: 9999px;
        background: #2563eb; /* azul */
    }


.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;
}



.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: 170px) and (max-width: 3190px) {
    .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: 800px) {
    #btn-edit-cliente-marc {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .aluna-contato-hide-sm {
        display: none;
    }
}

.user-buttom {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Estilo base do componente Choices (select com pesquisa) */
.choices {
    margin-bottom: 0 !important;
    font-size: 0.875rem !important; /* text-sm */
}

/* Caixa visível do select */
.choices__inner {
    border-radius: 0.5rem !important; /* ~ rounded-lg */
    border: 1px solid #d1d5db !important; /* gray-300 */
    min-height: 2.5rem !important; /* altura parecida com py-2 */
    padding: 0.5rem 0.75rem !important; /* py-2 px-3 */
    box-shadow: none !important;
}

/* Texto dentro do select (modo single) */
.choices__list--single {
    padding: 0 !important;
    margin: 0 !important;
}

/* Placeholder estilo Tailwind gray-400 */
.choices__placeholder {
    color: #9ca3af !important; /* gray-400 */
}

/* Dropdown com cantos arredondados também */
.choices__list--dropdown {
    border-radius: 0.5rem !important;
    border-color: #d1d5db !important;
}


/* Quando o select ganha foco */
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: #4b5563 !important; /* gray-700 ou o que preferires */
    box-shadow: 0 0 0 1px #4b5563 !important;
    
}

/* Remove borda quadrada azul default em alguns browsers */
.choices__inner:focus {
    outline: none!important;
}

/* Esconde no DROPDOWN o item que já está selecionado */
.choices__list--dropdown .choices__item.is-selected {
    display: none!important;
}
/* Remove borda forte quando o Choices está selecionado */
/* Caixa visível do select (estado normal) */
.choices__inner {
    border-radius: 0.5rem !important; /* rounded */
    border: 1px solid #d1d5db !important; /* cinza clarinho */
    min-height: 2.5rem !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}


/* NÃO mudar borda nem adicionar sombra ao focar/abrir */
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: #d1d5db !important; /* mesma cor do estado normal */
    box-shadow: none !important; /* sem glow */
    outline: none !important;
}

/* Tira qualquer outline/box-shadow do contêiner externo também */
.choices,
.choices:focus,
.choices:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

    /* Remove a seta padrão do Choices */
    .choices[data-type*=select-one]::after {
        display: none !important;
    }

    /* Ícone SVG customizado na direita (igual ao teu) */
    .choices[data-type*=select-one] .choices__inner {
        position: relative;
        padding-right: 2rem !important; /* espaço pro ícone */
    }

        .choices[data-type*=select-one] .choices__inner::after {
            content: "";
            position: absolute;
            right: 0.75rem;
            top: 50%;
            width: 1rem;
            height: 1rem;
            transform: translateY(-50%);
            pointer-events: none;
            /* SVG convertido para data URI */
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='gray' viewBox='0 0 20 20'><path fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.25 8.29a.75.75 0 01-.02-1.08z' clip-rule='evenodd'/></svg>");
            background-size: 1rem 1rem;
            background-repeat: no-repeat;
        }


