:root {
    --primary-color: #00a9a7;
    --dark-color: #ffffff;
    --text-color: #333333;
    --secondary-color: #fbfbfb;
    --accent-color: #00c3c0;
    --paw-color: #ffffff;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    padding: 20px;
    padding-top: 60px;
}

.pet-shop-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.location {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-color);
}

.location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.rating {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.rating i {
    color: gold;
    margin-right: 5px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 25px 0 15px 0;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.about-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.service-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.service-description {
    font-size: 14px;
    color: #a2a2a2;
    margin-bottom: 10px;
}

.service-price {
    font-weight: bold;
    color: var(--text-color);
}

.btn-reserve {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    float: right;
}

.btn-reserve:hover {
    background-color: var(--accent-color);
    color: white;
}

.barber-profile {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.barber-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.barber-info {
    flex: 1;
}

.barber-name-small {
    font-weight: bold;
    margin-bottom: 5px;
}

.barber-specialty {
    font-size: 14px;
    color: #a2a2a2;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--secondary-color);
}

.schedule-table th {
    font-weight: bold;
    color: var(--primary-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-image {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.map-container {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.9);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    color: var(--text-color);
    font-size: 20px;
}

.menu-button {
    color: var(--text-color);
    font-size: 20px;
}

@media (max-width: 991px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 320px) {
    .gallery-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Estilos para Cards de Agendamento */
.appointment-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #00a9a654;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.appointment-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.appointment-title i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 20px;
}

.appointment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.appointment-status i {
    margin-right: 5px;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-completed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.appointment-body {
    margin-bottom: 15px;
}

.appointment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.info-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.info-label {
    font-weight: 600;
    color: #a2a2a2;
    margin-right: 8px;
    min-width: 80px;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
}

.appointment-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.appointment-footer .btn {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.appointment-footer .btn:hover {
    transform: translateY(-1px);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Responsividade para os cards */
@media (max-width: 768px) {
    .appointment-info {
        grid-template-columns: 1fr;
    }

    .appointment-header {
        align-items: center;
        gap: 10px;
    }

    .appointment-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .appointment-card {
        padding: 15px;
    }

    .appointment-title {
        font-size: 16px;
    }

    .info-item {
        gap: 5px;
    }

    .info-label {
        min-width: auto;
    }
}

/* Modal de Avaliação */
.modal-custom {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.modal-content-custom {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 16px;
    max-width: 400px;
    width: 95%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    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-color);
    cursor: pointer;
    transition: color 0.2s;
}

.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: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}

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

.input-comentario:focus {
    outline: none;
    border: 1.5px solid var(--accent-color);
}

@media (max-width: 480px) {
    .modal-content-custom {
        padding: 1rem 0.5rem 1rem 0.5rem;
        max-width: 98vw;
    }
}

/* --- Navbar Custom --- */
.navbar-custom {
    background-color: #ffffff49 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--accent-color);
}

.navbar-toggler {
    color: var(--primary-color);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom {
    color: var(--text-color) !important;
}

.navbar-custom .navbar-toggler {
    border-color: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas custom */
.offcanvas-custom {
    background-color: var(--secondary-color) !important;
    color: var(--text-color);
}

.offcanvas-custom .offcanvas-title {
    color: var(--primary-color) !important;
}

.offcanvas-custom .btn-close {
    filter: invert(1) grayscale(1);
}

.dropdown-menu-dark {
    background-color: var(--dark-color);
    color: var(--text-color);
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-color);
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: var(--primary-color);
    color: #fff;
}

/* Ajuste para input de busca */
.navbar-custom .form-control.bg-dark {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--primary-color) !important;
}

.navbar-custom .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.navbar-custom .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Perfil do Usuário --- */
.profile-card {
    background-color: var(--secondary-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 2rem 2.5rem 2rem 2.5rem;
    max-width: 480px;
    margin: 40px auto;
    color: var(--text-color);
}

.profile-image-container {
    position: relative;
    width: 120px;
    margin: 0 auto 1.5rem auto;
}

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

.profile-image-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    padding: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}

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

.form-label {
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    background: var(--dark-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.form-control:focus {
    background: var(--dark-color);
    color: var(--text-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem #00a9a641;

}

.form-control:disabled::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.btn-save {
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 28px;
    border: none;
    transition: background 0.2s;
}

.btn-save:hover {
    background: var(--accent-color);
}

@media (max-width: 600px) {
    .profile-card {
        padding: 1rem 0.5rem 1rem 0.5rem;
        max-width: 98vw;
    }

    .profile-image-container {
        width: 90px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
    }
}

/* Placeholder branco nos inputs */
.form-control::placeholder {
    color: #fff !important;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #fff !important;
}

.form-control::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #fff !important;
}