/* --- CONFIGURAÇÕES GERAIS E RESET ASP.NET --- */
html {
    scroll-behavior: smooth;
    font-size: 14px;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    margin-bottom: 0; /* Remove a margem do rodapé padrão */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

.navbar-logo {
    height: 50px; /* Ajuste conforme o gosto */
    width: auto;
    object-fit: contain;
}

/* --- TEXTURAS DE FUNDO (APLICADAS POR BLOCO) --- */
.bg-texture-dots {
    background-color: #ffffff;
    background-image: url("https://drdouglas.blob.core.windows.net/imgdrdouglas/textura.jpg"); /* Textura sutil de marmore */
    background-repeat: repeat;
}

.bg-texture-gray {
    background-color: #f8f9fa;
    background-image: url("https://drdouglas.blob.core.windows.net/imgdrdouglas/texturaparede.jpg"); /* Textura de parede sutil */
}

/* --- TIPOGRAFIA PREMIUM --- */
h1 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    color: #1a2a4e; 
    line-height: 1.1; 
    letter-spacing: -1px;
}

h2 { 
    font-size: 1.4rem !important; 
    font-weight: 700; 
    color: #1a2a4e; 
    letter-spacing: 3px; 
    text-transform: uppercase;
}

/* --- ELEMENTOS VISUAIS (MOLDURAS E CARDS) --- */
.premium-frame {
    border: 10px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.treatment-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 70px;
    /* No mobile, a imagem terá no máximo 100px de largura */
    max-width: 100px; 
    width: 100%;
    height: auto;
    object-fit: cover;
}

.treatment-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha o conteúdo no topo */
    height: 100%;
    border: none !important;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .treatment-img {
        max-width: 130px; 
        height: 90px;
    }
.treatment-card p {
    /* Define uma altura mínima para caber 2 linhas de texto */
    /* 1.2 (line-height) * 2 (linhas) = 2.4em */
    min-height: 2.4em; 
    
    /* Centraliza o texto verticalmente dentro desse espaço */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Garante que o texto não fique colado nas bordas */
    padding: 0 5px;
    line-height: 1.2;
}
}

/* --- BOTÕES --- */
.btn-agendar {
    background-color: #27ae60;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
    border: none;
}

.btn-agendar:hover {
    background-color: #219150;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* --- ADMIN ESPECÍFICO --- */
.admin-editable-section {
    border: 1px dashed transparent;
    transition: 0.3s;
}

.admin-editable-section:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.02);
}

.admin-edit-indicator {
    display: inline-block !important; /* Garante que ele ocupe espaço */
    visibility: hidden;              /* Mas fica invisível */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    color: #007bff;
    margin-left: 8px;
    cursor: pointer;
}

/* 2. Regra Mestra: Quando o mouse passa sobre o PAI, o lápis aparece */
/* Isso resolve o problema de títulos, parágrafos e spans */
h1:hover .admin-edit-indicator,
p:hover .admin-edit-indicator,
h2:hover .admin-edit-indicator,
.testimonial-card:hover .admin-edit-indicator,
.editable-container:hover .admin-edit-indicator,
h5:hover .admin-edit-indicator {
    visibility: visible;
    opacity: 1;
}

/* 3. Destaque opcional no texto editável */
[contenteditable="true"]:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
    outline: none;
}

.save-float-button {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 50px;
    font-weight: bold;
    padding: 10px 20px;
}

/* --- UTILITÁRIOS --- */
.section-padding { padding: 80px 0; }

.map-container {
    width: 100%;
    max-width: 450px; /* Limita o tamanho no desktop */
    margin-left: auto; /* Alinha à direita no desktop */
}

@media (max-width: 768px) {
    .map-container {
        margin-top: 20px;
        max-width: 100%;
    }
}

/* Estilização das setas e bolinhas para o tom de azul do site */
.slick-prev:before, .slick-next:before { color: #a7bfc6 !important; font-size: 25px; }
.slick-dots li button:before { color: #a7bfc6 !important; }
.slick-dots li.slick-active button:before { color: #2c3e50 !important; }
.testimonial-card { transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); }

/* Estilo para as setas no Admin (azul para destacar no branco) */
.slick-prev:before, .slick-next:before { color: #a7bfc6 !important; font-size: 25px; }
.slick-dots li button:before { color: #a7bfc6 !important; }
.testimonial-card:focus-within {
    border: 1px dashed #a7bfc6 !important;
}

/* Fundo da página com imagem */
.admin-login-body {
    background-image: url('https://drdouglas.blob.core.windows.net/imgdrdouglas/textura.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper para garantir a centralização total */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* A Caixa Cinza Arredondada */
.login-card {
    background-color: rgba(240, 240, 240, 0.9); /* Cinza claro com leve transparência */
    padding: 30px;
    border-radius: 15px; /* Bordas arredondadas */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra para dar profundidade */
    width: 100%;
    max-width: 350px; /* Aqui você controla a largura da caixa */
    text-align: center;
}

/* Estilo do texto "Digite a senha" */
.login-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Ajuste do campo de input */
.custom-input {
    border-radius: 8px; /* Input também levemente arredondado */
    border: 1px solid #ccc;
}

/* Esconde o menu de navegação e rodapés apenas na página de login */
.admin-login-body nav, 
.admin-login-body header, 
.admin-login-body footer {
    display: none !important;
}

/* Garante que o fundo ocupe a tela toda sem barras azuis */
.admin-login-body {
    background-image: url('https://drdouglas.blob.core.windows.net/imgdrdouglas/textura.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantém o fundo fixo */
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evita barras de rolagem */
}

/* Ajuste fino na caixa cinza */
.login-card {
    background-color: rgba(240, 240, 240, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 320px; /* Largura fixa para ficar compacta como na sua imagem */
    z-index: 1000; /* Garante que fique acima de tudo */
}

@media (max-width: 991px) {
    /* Faz o menu principal sumir ou virar hambúrguer se necessário, 
       mas para um ajuste rápido, vamos diminuir a fonte e o espaçamento */
    .navbar-nav .nav-link {
        font-size: 12px;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Ajusta o tamanho do H1 no Hero para não ocupar a tela toda */
    h1 span.admin-editable-span {
        font-size: 1.8rem !important;
        display: block;
        line-height: 1.2;
    }
    
    /* Centraliza melhor o conteúdo no mobile */
    .col-lg-6 {
        text-align: center;
    }
    
    .mt-4 .btn {
        width: 100%; /* Botão de WhatsApp ocupa a largura toda no mobile */
        justify-content: center;
    }
}

/* Container para a marca d'água */
.watermark-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Estilo do texto (Fino, pequeno e discreto) */
.watermark-text {
    position: absolute;
    bottom: 12px; /* Ajuste para centralizar na sua borda branca de 10px */
    right: 15px;  /* Distância da lateral direita */
    font-size: 9px; /* Letra bem pequena como você pediu */
    font-weight: 300; /* Fonte fina (light) */
    color: #888; /* Cinza suave para não brigar com a foto */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none; /* Garante que o clique passe direto para o link */
    font-family: 'Segoe UI', sans-serif;
}

/* Ajuste para mobile (opcional) */
@media (max-width: 576px) {
    .watermark-text {
        font-size: 7px; /* Ainda menor no celular para caber sempre */
        bottom: 10px;
        right: 10px;
    }
}