@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');


:root {
    --primary: #007bff;
    --secondary: #34495e;
    --accent: #e67e22;
    --bg-light: #f4f6f7;
    --white: #ffffff;
    --text: #333333;
    --success: #27ae60;
    --danger: #c0392b;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    /* FIX REMOVIDO: overflow-x: hidden; foi removido daqui para não cortar o conteúdo */
}

/* HEADER */
header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    align-items: center;
}

header nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

header a {
    color: var(--white);
    text-decoration: none;
    padding: 5px;
    transition: 0.3s;
}

header a:hover {
    opacity: 0.8;
}

.logo {
    width: 200px;
}

.logo {
    width: 200px;
}

/* LAYOUT */
.container {
    width: 95%;
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

h1,
h2,
h3 {
    color: var(--primary);
    margin-top: 0;
}

/* FORMULÁRIOS E BOTÕES */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: 0.2s;
}

button:hover {
    opacity: 0.9;
}

button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

button.btn-small {
    width: auto;
    padding: 5px 10px;
    font-size: 0.85rem;
}

button.btn-danger {
    background: var(--danger);
}

/* GRIDS (Serviços/Profissionais) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
}

.option-card {
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    text-align: center;
    transition: 0.2s;
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--accent);
    background: #fff5e6;
}

/* TIME SLOTS */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 10px;
    background: #f0f0f0;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

.time-slot.selected {
    background: var(--accent);
    color: white;
}

/* TABELAS RESPONSIVAS */
.table-responsive {
    /* Esta classe já contém a rolagem horizontal */
    overflow-x: auto;
    margin-top: 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--bg-light);
}

/* BADGES */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.confirmed {
    background: var(--success);
}

.badge.cancelled {
    background: var(--danger);
}

.badge.pending {
    background: #f39c12;
}

.badge.completed {
    background: #7f8c8d;
}

/* WIZARD */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* HERO (HOME) */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    margin-bottom: 2rem;
}

.service-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin: 10px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* DESKTOP */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
    }

    .container {
        padding: 2.5rem;
    }

    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    button {
        width: auto;
    }

    .hero button {
        width: auto;
        min-width: 200px;
    }
}

/* =============================================== */
/* RESPONSIVIDADE PROFISSIONAL ADMIN DASHBOARD    */
/* =============================================== */

.stats-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card .value {
        font-size: 1.6rem;
    }
}

.container {
    max-width: 1100px !important;
}

@media (max-width: 480px) {
    .container {
        padding: 1.2rem !important;
        width: 94%;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

@media (max-width: 480px) {
    table {
        min-width: 600px;
    }

    th,
    td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

.btn-small {
    padding: 7px 12px !important;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .btn-small {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
}

h2 {
    font-size: 1.8rem;
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.4rem;
    }
}

header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

@media (max-width: 520px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    header nav {
        gap: 10px;
    }
}

.stat-card {
    border-radius: 12px !important;
    padding: 20px;
    transition: 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.badge {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
}

@media (min-width: 1500px) {
    .container {
        max-width: 1400px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    background: var(--primary);
    color: #ffffff;
    padding: 70px 10% 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Branding */
.footer-brand img {
    width: 180px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
    max-width: 300px;
}

/* Links */
.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #f0f0f0;
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid #1f1f1f;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #aaaaaa;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 60px 7% 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand p {
        max-width: 100%;
    }
}



/* Carrossel */
.carrossel {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 30px auto;
}

.carrossel-inner {
    display: flex;
    transition: transform 0.4s ease;
}

.carrossel-item {
    min-width: 100%;
    padding: 40px;
    /* Updated to white background with shadow */
    background: #fff;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 2px solid #eee;
}

.carrossel-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    /* Updated heading color */
    color: #0057e7;
}

.carrossel-item p {
    font-size: 1.2rem;
    font-weight: 700;
    /* Updated price color */
    color: var(--accent);
    margin-bottom: 20px;
}

.professional-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
}

.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Updated button color */
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
    z-index: 10;
}

.seta:hover {
    /* Updated hover color */
    background: #006ee2;
}

.seta.esquerda {
    left: 10px;
}

.seta.direita {
    right: 10px;
}



.contato-section {
    background: var(--bg);
    padding: 48px 20px;
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contato-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 22px;
    width: 100%;
}

/* Tablets (>= 600px) */
@media (min-width: 600px) {
    .contato-card {
        padding: 28px;
        gap: 28px;
    }
}

/* Tablets grandes e Notebooks baixos (>= 768px) */
@media (min-width: 768px) {
    .contato-card {
        grid-template-columns: 1fr 350px;
        padding: 32px;
    }
}

/* Notebooks e Monitores (>= 1024px) */
@media (min-width: 1024px) {
    .contato-card {
        grid-template-columns: 1fr 420px;
        padding: 40px;
        gap: 32px;
    }
}

.contato-left {
    padding-right: 4px;
}

.contato-left h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.contato-left p {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}

/* form */
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-row label {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    margin-bottom: 6px;
    color: #111827;
}

.form-row input,
.form-row textarea {
    border: 1px solid #e6e7eb;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    outline: none;
    transition: box-shadow .12s, border-color .12s;
    width: 100%;
}

.form-row textarea {
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: rgba(14, 165, 164, 0.18);
    box-shadow: 0 4px 12px rgba(14, 165, 164, 0.06);
}

.error {
    color: #dc2626;
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    margin-top: 6px;
    min-height: 1em;
}

/* actions */
.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

#btn-enviar {
    background: var(--accent);
    color: white;
    border: 0;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    box-shadow: 0 6px 16px rgba(6, 95, 84, 0.08);
    transition: 0.2s;
}

#btn-enviar:hover {
    transform: scale(1.03);
}

#btn-enviar[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

#form-status {
    color: var(--muted);
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

/* right (map) */
.contato-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 14px;
    border: 1px dashed #e6e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
    background: linear-gradient(180deg, rgba(234, 240, 248, 0.6), rgba(255, 255, 255, 0.6));
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

/* info */
.contato-info {
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

.contato-info .socials {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contato-info a {
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    color: var(--accent);
}





/* =============================================== */
/* DASHBOARD LAYOUT E SIDEBAR - CLIENTE            */
/* =============================================== */
.dashboard-layout {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 10px;
    /* Padding nas laterais para mobile */
    gap: 20px;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
    /* Ocupa apenas o espaço do conteúdo */
    display: none;
    /* Esconde por padrão em telas pequenas */
}

.main-content {
    flex-grow: 1;
    min-width: 0;
}

/* User Info na Sidebar */
.user-info {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* Navegação da Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    display: block;
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Botão de Novo Agendamento na Sidebar */
.new-booking-btn {
    margin-top: 20px;
    background: var(--accent) !important;
    color: var(--white) !important;
    text-align: center;
    padding: 12px 15px !important;
    font-weight: 700 !important;
}

/* Ajuste no container dentro do main-content (para evitar padding duplicado) */
.main-content .container {
    margin: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: none;
}

/* Estilos para Formulários no Modal */
.form-container {
    max-width: 500px;
    /* Limite visual em telas grandes dentro do modal */
    margin-top: 20px;
}

#password-form {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* =============================================== */
/* MODAL (TELINHA POP-UP) ESTILOS                  */
/* =============================================== */

.modal {
    display: none;
    /* Escondido por padrão */
    position: fixed;
    /* Fixado na tela, não rola com o conteúdo */
    z-index: 1000;
    /* Fica acima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Fundo escuro semitransparente */

    /* Centraliza o conteúdo (o modal-content) */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    width: 90%;
    /* Padrão mobile */
    max-width: 600px;
    /* Limite em telas maiores */
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    /* Adiciona barra de rolagem se o conteúdo for grande */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    color: var(--secondary);
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--danger);
    text-decoration: none;
}

.modal-body .form-container {
    max-width: none;
    margin-top: 0;
}

/* =============================================== */
/* RESPONSIVIDADE (MEDIA QUERIES)                  */
/* =============================================== */

@media (max-width: 767px) {
    .dashboard-layout {
        flex-direction: column;
        padding: 0 10px;
    }

    .main-content .container {
        padding: 1.5rem 1rem;
        box-shadow: var(--shadow);
    }

    .sidebar {
        width: 100%;
        display: block;
    }

    /* Transforma a nav da sidebar em botões horizontais */
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .sidebar-nav a {
        padding: 8px 12px;
        flex-grow: 1;
        text-align: center;
    }

    .user-info {
        display: none;
    }

    /* Esconde o botão de agendamento na sidebar em mobile */
    .sidebar-nav .new-booking-btn {
        display: none;
    }

    .mobile-new-booking-btn {
        display: block;
    }
}

/* Desktop: Mostrar a sidebar e esconder o botão móvel */
@media (min-width: 768px) {
    .sidebar {
        display: block;
    }

    .mobile-new-booking-btn {
        display: none;
    }

    .main-content .container {
        padding: 2.5rem;
        box-shadow: var(--shadow);
        border-radius: var(--border-radius);
    }
}

/* =============================================== */
/* TOAST MESSAGE (Substitui o Alert)               */
/* =============================================== */
.toast-message {
    visibility: hidden;
    /* Oculto por padrão */
    min-width: 250px;
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius);
    padding: 16px;
    position: fixed;
    z-index: 1001;
    /* Garante que fique acima de tudo */
    right: 30px;
    bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(100%);
    /* Esconde para baixo */
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.toast-message.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    /* Move para a posição visível */
}

.toast-message i {
    font-size: 1.2rem;
}

.success-toast {
    background-color: var(--success);
}

.success-toast i {
    color: var(--white);
}


/* --- WhatsApp Icon + Bubble --- */
.whatsapp-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1300;
}

.whatsapp-float {
    background: #25D366;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* Balão animado */
.whatsapp-bubble {
    position: absolute;
    right: 70px;
    bottom: 8px;
    background: #ffffff;
    color: #111;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.whatsapp-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .whatsapp-bubble {
        font-size: 0.8rem;
        right: 60px;
        bottom: 6px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
}

/* --- Divisor Direito (entra pela direita) --- */
.divisor-direito {
    position: relative;
    width: 100%;
    height: 80px;
    /* MESMA ALTURA */
    overflow: hidden;
}

.divisor-direito::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 280px;
    /* MESMA LARGURA */
    height: 100%;
    background: var(--accent);
    /* cor da próxima section */
    border-top-left-radius: 50px;
    /* curva invertida */
}