:root {

    --primary-blue: #00a9a7;
    --text-color: #333333;
    --secondary-blue: #00c3c0;
    --white: #ffffff;
    --bg-color: #f5f7f9;
    --border-color: #e8eaed;
    --card-shadow: 0 2px 12px rgba(0, 179, 179, 0.1);
    --card-shadow-hover: 0 4px 20px rgba(45, 139, 142, 0.18);
    --card-shadow-soft: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    --primary-color: #00a9a7;
    --accent-color: #00c3c0;
    --light-color: #ffffff;
    --secondary-color: #f5f7f9;
    --gold-color: #FFD700;
    --danger-color: #dc3545;
    --success-color: #28a745;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── COLORS ──────────────────────────────── */
.azul {
    color: var(--secondary-blue);
}

/* ── LOADER ──────────────────────────────── */
svg {
    width: 3.25em;
    transform-origin: center;
    animation: rotate4 2s linear infinite;
}

circle {
    fill: none;
    stroke: var(--secondary-blue);
    stroke-width: 2;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash4 1.5s ease-in-out infinite;
}

@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}

/* ── ACTION MENU ─────────────────────────── */
.action-menu-logo img {
    width: 25px;
}

/* ── SECTION TITLE ───────────────────────── */
.titulo-sessao,
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ── BUSINESS / BOOKING CARDS ────────────── */
.last-booking-card,
.container-item-empresa {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--card-shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.last-booking-card:hover,
.container-item-empresa:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.booking-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.business-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    background: #f5f5f5;
}

.booking-info {
    flex: 1;
    min-width: 0;
}

.business-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 .5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.endereco {
    font-size: .7rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.booking-details {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-item,
.nota-estabelecimento {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-azul {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    transition: background-color .3s, transform .2s;
    border-radius: 10px;
    font-weight: 600;
}

.btn-azul:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-azul {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
    transition: .3s;
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-azul:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ── FORM INPUTS ─────────────────────────── */
.input-group-text {
    color: var(--primary-blue);
    background-color: var(--white);
    border-color: var(--border-color);
}

.form-control,
.form-select {
    border-color: var(--border-color);
    background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 167, 0.15);
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--bg-color);
}

/* ── AUTH PAGES (LOGIN / CADASTRO) ───────── */
.container-center {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.container-login {
    background: var(--white);
    box-shadow: var(--card-shadow-soft);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.5rem;
}

.logo-login {
    width: 56px;
}

#avisoFormulario {
    font-size: .8rem;
    color: #eb3737;
    font-weight: 600;
}

.link-esqueci-senha {
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
}

.link-esqueci-senha:hover {
    color: var(--primary-blue);
}

.divider {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: .85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

/* Password requirements */
.password-requirements {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 15px;
}

.password-requirements ul {
    padding-left: 20px;
    margin-top: 5px;
}

.password-requirements li {
    margin-bottom: 3px;
}

.password-requirements li.valid {
    color: #4CAF50;
}

.password-requirements li.invalid {
    color: #F44336;
}

.terms-check {
    margin-top: 15px;
    margin-bottom: 15px;
}

.form-check-input {
    background-color: var(--white);
    border: 1px solid #aaa;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    font-size: 14px;
}

.form-check-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ── PROFILE CARD ────────────────────────── */
.profile-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--card-shadow-soft);
    max-width: 540px;
    margin: 0 auto;
}

.profile-image-container {
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

/* ── AGENDAMENTO CARDS ───────────────────── */
.container-item-agendamento {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--card-shadow-soft);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.container-item-agendamento:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.container-item-agendamento img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.container-item-agendamento h2 {
    font-size: 1rem;
    font-weight: 700;
}

.preco-agendamento {
    color: #4CAF50;
    font-weight: 700;
    font-size: .95rem;
}

.servico-horario-agendamento {
    font-size: .8rem;
    color: #777;
}

.btn-excluir {
    color: var(--danger-color);
    border: 1.5px solid var(--danger-color);
    border-radius: 8px;
    transition: .3s;
    font-size: .8rem;
}

.btn-excluir:hover {
    color: var(--white);
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-avaliacao {
    color: #3cd441;
    border: 1.5px solid #3cd441;
    border-radius: 8px;
    transition: .3s;
    font-size: .8rem;
}

.btn-avaliacao:hover {
    color: var(--white);
    background-color: #3cd441;
    border-color: #3cd441;
}

/* ── MODAL AVALIACAO ─────────────────────── */
.modal-custom {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content-custom {
    background: var(--white);
    color: var(--text-color);
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
    max-width: 420px;
    width: 95%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.7rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

.estrelas .estrela {
    font-size: 2.2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0 2px;
}

.estrelas .estrela.selected,
.estrelas .estrela.hovered {
    color: var(--gold-color);
}

.input-comentario {
    width: 100%;
    resize: none;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    padding: 0.75rem;
    background: var(--white);
    color: var(--text-color);
    font-size: 1rem;
    transition: border 0.2s;
}

.input-comentario:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* ── PETS PAGE ───────────────────────────── */
.pets-container {
    padding-bottom: 100px;
}

.pet-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.pet-image-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-blue);
}

.pet-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-info h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.pet-info p {
    color: #666;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.pet-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add-pet {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 169, 167, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-pet:hover {
    background-color: var(--accent-color);
    transform: scale(1.08);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    opacity: 0.4;
    display: block;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #888;
}

/* Pets Modal */
.modal-header {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 12px 12px 0 0;
}

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

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Image Upload */
.image-upload-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.image-upload-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    margin: 0 auto 1rem;
    display: block;
}

.image-upload-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: .9rem;
}

.image-upload-label:hover {
    background-color: var(--accent-color);
}

.image-upload-label input {
    display: none;
}

.raca-select-container {
    display: none;
}

.raca-select-container.show {
    display: block;
}

/* ── 404 PAGE ────────────────────────────── */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-color);
}

.error-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--card-shadow-soft);
    text-align: center;
}

.error-card .logo-container {
    margin-bottom: 1.5rem;
}

.error-card .logo-container img {
    width: 80px;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-message {
    color: #777;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-card .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    margin: 0.35rem;
    font-size: .9rem;
}

.error-card .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.error-card .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.error-card .btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
}

.error-card .btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

.suggestions {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.suggestions-title {
    font-size: .85rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.suggestion-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: .85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.suggestion-link:hover {
    background-color: rgba(0, 169, 167, 0.1);
    color: var(--primary-blue);
}

.paw-icon {
    display: inline-block;
    margin: 1rem 0;
}

/* ── PET SHOP PAGE ───────────────────────── */

/* Banner / Header */
.petshop-banner {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.info-pet {
    margin-top: -1.25rem;
    position: relative;
    z-index: 1;
}

.info-pet>div {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1rem 0.5rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.info-pet h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: .25rem;
}

/* Section headings inside pet-shop */
.titulo-perfil {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: .5rem;
}

.texto-perfil {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.55;
    color: #666;
}

/* Service cards */
.container-servico {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow-soft);
    transition: all 0.3s ease;
}

.container-servico:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.container-servico img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-color);
}

.container-servico h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: .25rem;
}

.container-servico p {
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.4;
    color: #777;
    margin-bottom: .5rem;
}

.preco-servico {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Staff profile cards */
.container-perfil-profissional {
    background: var(--white);
    box-shadow: var(--card-shadow-soft);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.container-perfil-profissional:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.container-perfil-profissional img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.container-perfil-profissional h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.container-perfil-profissional p {
    font-size: .8rem;
    color: #999;
    margin: 0;
}

/* Gallery images */
.galeria-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Contact icons row */
.contato-item {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .95rem;
    color: var(--text-color);
}

/* Map container */
#map {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Section dividers inside pet-shop page */
.petshop-section {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.petshop-section:first-child {
    border-top: none;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 480px) {
    .container-login {
        padding: 1.5rem 1rem;
    }

    .profile-card {
        padding: 1.5rem 1rem;
    }

    .error-card {
        padding: 2rem 1.25rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .container-servico img {
        width: 75px;
        height: 75px;
        min-width: 75px;
    }
}

@media (min-width: 576px) {
    .petshop-banner {
        height: 300px;
    }
}

@media (min-width: 768px) {
    .petshop-banner {
        height: 360px;
    }
}

@media (min-width: 992px) {
    .petshop-banner {
        height: 420px;
        border-radius: 0 0 28px 28px;
    }
}