/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #141518;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #141518;
    border-bottom: 1px solid #26272b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Logo apenas para desktop */
@media (min-width: 769px) {
    .logo-img {
        width: 120px;
        height: auto;
        object-fit: contain;
        border-radius: 4px;
    }
}




.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.agendamentos-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.agendamentos-btn:hover {
    background-color: #26272b;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.user-profile:hover {
    background-color: #26272b;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1b1f;
    border: 1px solid #26272b;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #26272b;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-image {
    border-radius: 12px;
    overflow: hidden;
}

.shop-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.shop-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-rating i {
    color: #8162ff;
}

.rating-score {
    color: #8162ff;
    font-weight: 600;
}

.rating-count {
    color: #888;
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    width: 100%;
    min-height: 400px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 999 !important;
}


/* Force visibility with higher specificity */
.services-section .services-grid .service-card {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(129, 98, 255, 0.1);
}



.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}


.service-price {
    color: #8162ff;
    font-weight: 600;
    font-size: 1rem;
}


.reserve-btn:hover {
    background-color: #6b46c1;
    color: #ffffff;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-container {
    background-color: #1a1b1f;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #888;
}

.map-placeholder i {
    font-size: 2rem;
    color: #8162ff;
}

.about-section,
.contact-section,
.hours-section {
    background-color: #1a1b1f;
    border-radius: 12px;
    padding: 1rem;
}

.about-text {
    color: #888;
    line-height: 1.5;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-item i {
    color: #8162ff;
    width: 16px;
}

.copy-btn {
    background-color: transparent;
    border: 1px solid #8162ff;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto;
    transition: all 0.3s;
}

.copy-btn:hover {
    background-color: #8162ff;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.day {
    color: #ffffff;
}

.time {
    color: #888;
}

.time.closed {
    color: #ef4444;
}

.partnership {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

.partnership-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partnership-logo img {
    width: 80px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: #1a1b1f;
    padding: 2rem 0;
    text-align: center;
    color: #888;
    border-top: 1px solid #26272b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1a1b1f;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.booking-modal {
    max-width: 800px;
}

.dashboard-modal {
    max-width: 1000px;
    width: 95%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #26272b;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ffffff;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #ffffff;
    font-weight: 500;
}

.form-group input {
    padding: 0.75rem;
    background-color: #26272b;
    border: 1px solid #26272b;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #8162ff;
}

.btn-primary {
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #dc2626;
}

/* Booking Modal */
.booking-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calendar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-nav {
    background: none;
    border: none;
    color: #8162ff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.calendar-nav:hover {
    background-color: #26272b;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.calendar-day:hover {
    background-color: #26272b;
}

.calendar-day.selected {
    background-color: #8162ff;
    color: #ffffff;
}

.calendar-day.other-month {
    color: #666;
}

.time-slots-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.time-slots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #8162ff #26272b;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    touch-action: pan-x;
    will-change: scroll-position;
}

.time-slots::-webkit-scrollbar {
    height: 6px;
}

.time-slots::-webkit-scrollbar-track {
    background: #26272b;
    border-radius: 3px;
}

.time-slots::-webkit-scrollbar-thumb {
    background: #8162ff;
    border-radius: 3px;
}

.time-slots::-webkit-scrollbar-thumb:hover {
    background: #9d7dff;
}

/* Scrollbar para mobile */
@media (max-width: 768px) {
    .time-slots::-webkit-scrollbar {
        height: 4px;
    }
    
    .time-slots::-webkit-scrollbar-track {
        background: #26272b;
        border-radius: 2px;
    }
    
    .time-slots::-webkit-scrollbar-thumb {
        background: #8162ff;
        border-radius: 2px;
    }
}

.time-slot {
    padding: 0.5rem 1rem;
    background-color: #26272b;
    border: 1px solid #26272b;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.time-slot:hover {
    border-color: #8162ff;
}

.time-slot.selected {
    background-color: #8162ff;
    border-color: #8162ff;
}

.time-slot.available {
    background-color: #26272b;
    border-color: #26272b;
}

.time-slot.available:hover {
    border-color: #8162ff;
    background-color: #3a3b3f;
}

.booking-summary {
    background-color: #26272b;
    border-radius: 8px;
    padding: 1.5rem;
}

.booking-summary h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    color: #888;
}

.summary-price {
    text-align: right;
    color: #8162ff;
    font-size: 1.1rem;
}

.btn-confirm {
    background-color: #8162ff;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-confirm:hover {
    background-color: #6d4cdb;
}

/* Success Modal */
.success-modal {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #8162ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.success-modal h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.success-modal p {
    color: #888;
    margin-bottom: 2rem;
}

/* Dashboard Styles */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: #26272b;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #8162ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.calendar-container {
    background-color: #26272b;
    border-radius: 8px;
    padding: 1.5rem;
}

.calendar-container h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-item {
    background-color: #1a1b1f;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.appointment-client {
    color: #ffffff;
    font-weight: 600;
}

.appointment-service {
    color: #888;
    font-size: 0.9rem;
}

.appointment-time {
    color: #8162ff;
    font-weight: 600;
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-edit {
    background-color: #8162ff;
    color: #ffffff;
}

.btn-cancel {
    background-color: #ef4444;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }


    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 8px !important;
    }

    .service-card {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        background-color: #1a1b1f !important;
        border: 1px solid #26272b !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        gap: 0rem !important;
        min-height: 120px !important;
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
    }

    .service-image, #mobileServicesGrid .service-image {
        width: 115px !important;
        height: 114px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
        display: block !important;
        background: #26272b !important;
    }


    .service-bottom {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 4px !important;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .booking-modal {
        max-width: 95%;
    }

    .dashboard-modal {
        max-width: 95%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .appointment-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-header-content {
        padding: 10px 15px;
    }
    
    .mobile-user-avatar {
        border-radius: 8px !important;
    }
    
    #loginIcon {
        display: none;
    }
    
    .mobile-login-message {
        display: block;
        background: #141518;
        padding: 24px 15px;
        border-bottom: 1px solid #26272b;
    }
    
    /* Ajustes específicos para modal de agendamento em telas pequenas */
    .modal-content {
        width: 98% !important;
        max-width: 98% !important;
        padding: 1rem !important;
        max-height: 95vh !important;
        margin: 0 !important;
    }
    
    .booking-modal {
        max-width: 98% !important;
        width: 98% !important;
    }
    
    .modal-header {
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.2rem !important;
    }
    
    .booking-content {
        gap: 1rem !important;
    }
    
    .calendar-section {
        gap: 0.75rem !important;
    }
    
    .calendar-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .calendar-grid {
        gap: 0.2rem !important;
    }
    
    .calendar-day {
        font-size: 0.75rem !important;
        padding: 0.25rem !important;
    }
    
    .time-slots {
        gap: 0.3rem !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding: 0.5rem 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #8162ff #26272b !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-height: 50px !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
        touch-action: pan-x !important;
        will-change: scroll-position !important;
    }
    
    .time-slot {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        min-width: 60px !important;
    }
    
    .booking-summary {
        padding: 1rem !important;
    }
    
    .booking-summary h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .summary-details {
        gap: 0.4rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .summary-item {
        font-size: 0.85rem !important;
    }
    
    .summary-price {
        font-size: 1rem !important;
    }
    
    .btn-confirm {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Ajustes para carrossel de barbeiros */
    .barber-carousel {
        gap: 0.75rem !important;
        padding: 0 0.75rem !important;
    }
    
    .barber-item {
        min-width: 90px !important;
        padding: 0.75rem !important;
    }
    
    .barber-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .barber-name {
        font-size: 0.8rem !important;
    }
}

/* Ajustes para telas muito pequenas (320px) */
@media (max-width: 320px) {
    .modal-content {
        width: 99% !important;
        max-width: 99% !important;
        padding: 0.75rem !important;
    }
    
    .booking-modal {
        max-width: 99% !important;
        width: 99% !important;
    }
    
    .modal-header h2 {
        font-size: 1.1rem !important;
    }
    
    .calendar-day {
        font-size: 0.7rem !important;
        padding: 0.2rem !important;
    }
    
    .time-slot {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-width: 50px !important;
    }
    
    .booking-summary {
        padding: 0.75rem !important;
    }
    
    .summary-item {
        font-size: 0.8rem !important;
    }
    
    .btn-confirm {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Ajustes para carrossel de barbeiros em telas pequenas */
    .barber-carousel {
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    .barber-item {
        min-width: 80px !important;
        padding: 0.5rem !important;
    }
    
    .barber-avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    .barber-name {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .mobile-login-message .login-content {
        text-align: left;
    }
    
    .mobile-login-message h2 {
        color: #ffffff;
        font-size: 1.2rem;
        margin: 0 0 8px 0;
        font-weight: 600;
    }
    
    .mobile-login-message p {
        color: #888;
        font-size: 1rem;
        margin: 0;
        font-weight: 400;
    }
    
    .mobile-login-message #loginLink {
        color: #8162ff !important;
        cursor: pointer;
        text-decoration: underline;
        transition: all 0.3s ease;
    }
    
    .mobile-login-message #loginLink:hover {
        color: #6b46c1 !important;
        text-decoration: none;
    }
    
    .mobile-login-message .user-name {
        color: #8162ff !important;
        font-weight: 600;
    }
    
    .mobile-login-message #shareGreetingBtn {
        background: #26272b !important;
        border: none !important;
        color: #8162ff !important;
        padding: 8px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        font-size: 1rem !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 12px !important;
    }
    
    .mobile-login-message #shareGreetingBtn:hover {
        background: #8162ff !important;
        color: #ffffff !important;
        transform: scale(1.05);
    }
    
    /* Carrossel de agendamentos do barbeiro */
    .mobile-barber-booking {
        display: none;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    /* Filtros de agendamentos */
    .appointment-filters {
        display: flex;
        gap: 8px;
        padding: 0 15px 12px 15px;
    }
    
    .filter-btn {
        background: #26272b;
        color: #888;
        border: 1px solid #3a3b40;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .filter-btn.active {
        background: #8162ff;
        color: white;
        border: none;
    }
    
    .filter-btn:hover {
        background: #3a3b40;
        color: white;
    }
    
    .filter-btn.active:hover {
        background: #6b46c1;
    }
    
    /* Botão de edição nos cards de agendamento */
    .barber-appointment-btn.edit {
        background: #3a3b40;
        color: #888;
        border: 1px solid #4a4b50;
        padding: 6px 8px;
        border-radius: 6px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-right: 6px;
    }
    
    .barber-appointment-btn.edit:hover {
        background: #4a4b50;
        color: white;
        border-color: #5a5b60;
    }
    
    
    .barber-appointment-card {
        background: #26272b;
        border: 1px solid #3a3b40;
        border-radius: 12px;
        padding: 16px;
        min-width: 280px;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }
    
    .barber-appointment-card:hover {
        border-color: #8162ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(129, 98, 255, 0.2);
    }
    
    .barber-appointment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .barber-appointment-time {
        color: #8162ff;
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    .barber-appointment-status {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .barber-appointment-status.agendado {
        background: #3a3b40;
        color: #888;
    }
    
    .barber-appointment-status.confirmado {
        background: #1e3a8a;
        color: #60a5fa;
    }
    
    .barber-appointment-status.em_andamento {
        background: #dc2626;
        color: #fca5a5;
    }
    
    .barber-appointment-status.concluido {
        background: #059669;
        color: #6ee7b7;
    }
    
    .barber-appointment-client {
        color: #ffffff;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .barber-appointment-service {
        color: #888;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .barber-appointment-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #3a3b40;
    }
    
    .barber-appointment-price {
        color: #8162ff;
        font-weight: 600;
        font-size: 1rem;
    }
    
    .barber-appointment-actions {
        display: flex;
        gap: 8px;
    }
    
    .barber-appointment-btn {
        padding: 6px 12px;
        border: none;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .barber-appointment-btn.confirm {
        background: #1e3a8a;
        color: #60a5fa;
    }
    
    .barber-appointment-btn.confirm:hover {
        background: #1e40af;
    }
    
    .barber-appointment-btn.start {
        background: #dc2626;
        color: #fca5a5;
    }
    
    .barber-appointment-btn.start:hover {
        background: #ef4444;
    }
    
    .barber-appointment-btn.complete {
        background: #059669;
        color: #6ee7b7;
    }
    
    .barber-appointment-btn.complete:hover {
        background: #10b981;
    }
    
    /* Controle de visibilidade da seção de clientes */
    .mobile-client-booking {
        display: none !important;
        padding: 1rem 15px;
    }
    
    .mobile-client-booking.show {
        display: block !important;
    }
    
    .mobile-client-booking.hidden {
        display: none !important;
    }
    
    /* Forçar esconder seção de clientes por padrão */
    #mobileClientBooking {
        display: none !important;
    }
    
    #mobileClientBooking.show {
        display: block !important;
    }
    
    /* Regra mais específica para garantir que seja escondida */
    div#mobileClientBooking.mobile-client-booking {
        display: none !important;
    }
    
    div#mobileClientBooking.mobile-client-booking.show {
        display: block !important;
    }
    
    /* Regra ultra específica para forçar esconder */
    div#mobileClientBooking.mobile-client-booking.hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Regra para esconder por padrão - máxima especificidade */
    body div#mobileClientBooking.mobile-client-booking {
        display: none !important;
    }
    
    body div#mobileClientBooking.mobile-client-booking.show {
        display: block !important;
    }
    
    /* Garantir que seção de barbeiros seja escondida por padrão */
    .mobile-barber-booking {
        display: none !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .mobile-barber-booking.show {
        display: block !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .mobile-barber-booking.hidden {
        display: none !important;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .shop-name {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .time-slots {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0.5rem 0;
        scrollbar-width: thin;
        scrollbar-color: #8162ff #26272b;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 50px;
        align-items: center;
        position: relative;
        z-index: 1;
        touch-action: pan-x;
        will-change: scroll-position;
    }
}

/* Esconder elementos mobile no desktop */
.mobile-header,
.mobile-client-booking,
.mobile-sidebar,
.sidebar-overlay {
    display: none;
}

/* Mostrar mobile-login-message em todas as telas */
.mobile-login-message {
    display: block !important;
}

/* Garantir que o modal de login apareça */
#loginModal {
    display: none !important;
}

#loginModal.active {
    display: flex !important;
}

/* Forçar esconder seção de clientes em todos os casos */
.mobile-client-booking {
    display: none !important;
}

.mobile-client-booking.show {
    display: block !important;
}

/* ===== CABEÇALHO MOBILE ===== */
@media (max-width: 768px) {
    /* Esconder header desktop no mobile */
    .header {
        display: none !important;
    }
    
    /* Forçar esconder seção de clientes no mobile */
    .mobile-client-booking {
        display: none !important;
    }
    
    .mobile-client-booking.show {
        display: block !important;
    }
    
    /* Cabeçalho mobile - NOVO */
    .mobile-header {
        display: block !important;
        background: #2a2d35;
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 2px solid #8162ff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        height: 64px !important;
        width: 100% !important;
    }
    
    /* Logo mobile */
    .mobile-logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-logo img {
        height: 28px !important;
        width: auto !important;
        max-width: 120px !important;
    }
    
    /* Avatar mobile */
    .mobile-user-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #8162ff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(129, 98, 255, 0.3) !important;
        position: relative !important;
    }
    
    .mobile-user-avatar:hover {
        transform: scale(1.05) !important;
    }
    
    .mobile-user-avatar .avatar-initial {
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        text-transform: uppercase !important;
        font-family: 'Nunito', sans-serif !important;
    }
    
    .mobile-user-avatar.has-photo {
        background: none !important;
    }
    
    .mobile-user-avatar.has-photo img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .mobile-user-avatar.has-photo .avatar-initial {
        display: none !important;
    }
    
    /* Menu dropdown mobile - REMOVIDO PARA USAR CSS INLINE */
    /*
    .mobile-user-menu {
        position: absolute !important;
        top: 100% !important;
        right: 16px !important;
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 12px !important;
        padding: 8px 0 !important;
        min-width: 180px !important;
        display: none !important;
        z-index: 1001 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        margin-top: 8px !important;
    }
    
    .mobile-user-menu.show {
        display: block !important;
    }
    
    .mobile-user-menu .menu-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
        color: #333333 !important;
        cursor: pointer !important;
        transition: background-color 0.3s !important;
        font-size: 14px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .mobile-user-menu .menu-item:last-child {
        border-bottom: none !important;
    }
    
    .mobile-user-menu .menu-item:hover {
        background-color: #f8f9fa !important;
    }
    
    .mobile-user-menu .menu-item i {
        width: 16px !important;
        color: #666666 !important;
    }
    */
    
    
    
    .barbershop-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .barbershop-main-info h1 {
        color: #ffffff;
        font-size: 1.5rem;
        margin: 0 0 0.5rem 0;
        font-weight: 600;
    }
    
    .barbershop-location {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #888;
        font-size: 0.9rem;
    }
    
    .barbershop-location i {
        color: #8162ff;
    }
    
    .share-button {
        background: #26272b;
        border: none;
        color: #ffffff;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.1rem;
        transition: all 0.3s;
    }
    
    .share-button:hover {
        background: #8162ff;
    }
    
    /* Agendamento do cliente mobile - regras removidas para evitar conflitos */
    
    .booking-preview {
        background: #26272b;
        border-radius: 12px;
        padding: 1rem 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 15px;
    }
    
    .booking-info h3 {
        color: #ffffff;
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
    }
    
    .booking-details {
        color: #888;
        font-size: 0.9rem;
    }
    
    .booking-date {
        text-align: center;
        color: #ffffff;
    }
    
    .booking-day {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.25rem;
    }
    
    .booking-time {
        font-size: 0.9rem;
        color: #888;
    }
    
    /* Ajustar conteúdo principal no mobile */
    .main-content {
        padding-top: 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .shop-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    
    .modal-content {
        width: 98% !important;
        max-width: 98% !important;
        padding: 1rem !important;
        max-height: 95vh !important;
        margin: 0 !important;
    }
    
    .booking-modal {
        max-width: 98% !important;
        width: 98% !important;
    }
    
    .modal-header {
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.2rem !important;
    }
    
    .booking-content {
        gap: 1rem !important;
    }
    
    .calendar-section {
        gap: 0.75rem !important;
    }
    
    .calendar-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .calendar-grid {
        gap: 0.2rem !important;
    }
    
    .calendar-day {
        font-size: 0.75rem !important;
        padding: 0.25rem !important;
    }
    
    .time-slots {
        gap: 0.3rem !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding: 0.5rem 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #8162ff #26272b !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-height: 50px !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
        touch-action: pan-x !important;
        will-change: scroll-position !important;
    }
    
    .time-slot {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        min-width: 60px !important;
    }
    
    .booking-summary {
        padding: 1rem !important;
    }
    
    .booking-summary h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .summary-details {
        gap: 0.4rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .summary-item {
        font-size: 0.85rem !important;
    }
    
    .summary-price {
        font-size: 1rem !important;
    }
    
    .btn-confirm {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .dashboard-modal {
        max-width: 95%;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .appointment-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 0.75rem 0;
    }

    .main-content {
        padding: 1rem 0;
    }

    .shop-name {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 98% !important;
        max-width: 98% !important;
        padding: 1rem !important;
        max-height: 95vh !important;
        margin: 0 !important;
    }

    .calendar-grid {
        gap: 0.2rem !important;
    }

    .calendar-day {
        font-size: 0.75rem !important;
        padding: 0.25rem !important;
    }

    .time-slots {
        gap: 0.3rem !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding: 0.5rem 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #8162ff #26272b !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-height: 50px !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
        touch-action: pan-x !important;
        will-change: scroll-position !important;
    }
    
    .time-slot {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        min-width: 60px !important;
    }
}

/* REGRAS ESPECÍFICAS PARA MODAL DE AGENDAMENTO - MÁXIMA PRIORIDADE */
@media (max-width: 768px) {
    .modal.booking-modal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1rem !important;
        height: auto !important;
        min-height: 60vh !important;
        max-height: 95vh !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        position: relative !important;
        overflow-y: auto !important;
    }
    
    .modal.booking-modal .modal-header {
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .modal.booking-modal .modal-header h2 {
        font-size: 1rem !important;
    }
    
    .modal.booking-modal .booking-content {
        gap: 0.5rem !important;
    }
    
    .modal.booking-modal .calendar-section {
        gap: 0.5rem !important;
    }
    
    .modal.booking-modal .calendar-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.25rem !important;
    }
    
    .modal.booking-modal .calendar-grid {
        gap: 0.1rem !important;
    }
    
    .modal.booking-modal .calendar-day {
        font-size: 0.7rem !important;
        padding: 0.2rem !important;
    }
    
    .modal.booking-modal .time-slots {
        gap: 0.2rem !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding: 0.5rem 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #8162ff #26272b !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-height: 50px !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
        touch-action: pan-x !important;
        will-change: scroll-position !important;
    }
    
    .modal.booking-modal .time-slot {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-width: 50px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }
    
    .modal.booking-modal .booking-summary {
        padding: 0.75rem !important;
    }
    
    .modal.booking-modal .booking-summary h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .modal.booking-modal .summary-details {
        gap: 0.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .modal.booking-modal .summary-item {
        font-size: 0.8rem !important;
    }
    
    .modal.booking-modal .summary-price {
        font-size: 0.9rem !important;
    }
    
    .modal.booking-modal .btn-confirm {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
    
    /* Ajustes para carrossel de barbeiros */
    .modal.booking-modal .barber-carousel {
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .modal.booking-modal .barber-item {
        min-width: 70px !important;
        padding: 0.5rem !important;
    }
    
    .modal.booking-modal .barber-avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    .modal.booking-modal .barber-name {
        font-size: 0.7rem !important;
    }
    
    /* Ajustes para seção de horários */
    .modal.booking-modal .time-slots-section h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* REGRAS ULTRA ESPECÍFICAS PARA TELAS PEQUENAS */
@media (max-width: 480px) {
    .modal.booking-modal .modal-content {
        width: 98% !important;
        max-width: 98% !important;
        padding: 0.75rem !important;
        height: auto !important;
        min-height: 70vh !important;
        max-height: 95vh !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
        position: relative !important;
        overflow-y: auto !important;
    }
    
    .modal.booking-modal .modal-header h2 {
        font-size: 0.9rem !important;
    }
    
    .modal.booking-modal .calendar-day {
        font-size: 0.65rem !important;
        padding: 0.15rem !important;
    }
    
    .modal.booking-modal .time-slot {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
        min-width: 45px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }
    
    .modal.booking-modal .barber-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .modal.booking-modal .barber-name {
        font-size: 0.65rem !important;
    }
    
    .modal.booking-modal .btn-confirm {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
        background-color: #8162ff !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 6px !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
}

/* REGRAS ESPECÍFICAS PARA TELAS MUITO PEQUENAS (320px) */
@media (max-width: 320px) {
    .modal.booking-modal .modal-content {
        width: 99% !important;
        max-width: 99% !important;
        padding: 0.75rem !important;
        height: auto !important;
        min-height: 80vh !important;
        max-height: 95vh !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
        position: relative !important;
        overflow-y: auto !important;
    }
    
    .modal.booking-modal .modal-header h2 {
        font-size: 1rem !important;
    }
    
    .modal.booking-modal .calendar-day {
        font-size: 0.6rem !important;
        padding: 0.1rem !important;
    }
    
    .modal.booking-modal .time-slot {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }
    
    .modal.booking-modal .barber-avatar {
        width: 35px !important;
        height: 35px !important;
    }
    
    .modal.booking-modal .barber-name {
        font-size: 0.6rem !important;
    }
    
    .modal.booking-modal .btn-confirm {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
        background-color: #8162ff !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 6px !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
}

/* REGRAS PARA MODAL RESPONSIVO AO CONTEÚDO */
@media (max-width: 768px) {
    .modal.booking-modal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem !important;
    }
    
    .modal.booking-modal .booking-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* Garantir que o modal tenha altura suficiente para o conteúdo */
    .modal.booking-modal .modal-content {
        min-height: 60vh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    .reserve-btn, #mobileServicesGrid .reserve-btn {
        background-color: #26272b !important;
        border: none !important;
        color: #ffffff !important;
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        font-weight: 500 !important;
        font-size: 0.9rem !important;
        display: block !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .service-description, #mobileServicesGrid .service-description, .service-card .service-description {
        color: #888 !important;
        font-size: 0.76rem !important;
        line-height: 1.3 !important;
        display: block !important;
        margin: 0 !important;
        flex: 1 !important;
    }
    
    .service-info, #mobileServicesGrid .service-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.3rem !important;
        justify-content: space-between !important;
        text-align: left !important;
    }
}

/* FORÇA ABSOLUTA PARA SERVICE-DESCRIPTION */
@media (max-width: 768px) {
    .service-card .service-info .service-description,
    #mobileServicesGrid .service-card .service-info .service-description,
    .mobile-services-list .service-card .service-info .service-description,
    .service-description,
    #mobileServicesGrid .service-description {
        color: #888 !important;
        font-size: 0.76rem !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        flex: 1 !important;
        max-height: calc(0.76rem * 1.3 * 2) !important;
    }
}

/* FORÇA MÁXIMA PARA 2 LINHAS */
@media (max-width: 768px) {
    div.service-card div.service-info p.service-description,
    #mobileServicesGrid div.service-card div.service-info p.service-description {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-height: 1.976rem !important;
        line-height: 1.3 !important;
        font-size: 0.76rem !important;
    }
}
