/* Variáveis */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Estilos gerais */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Títulos e textos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navbar */
.navbar {
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border-radius: var(--border-radius);
    z-index: 9999 !important;
    position: absolute !important;
}

/* Garantir que todos os dropdowns fiquem na frente */
.navbar .dropdown-menu,
.dropdown .dropdown-menu,
.btn-group .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
}

.dropdown-item {
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--gray-light);
}

/* Cards */
.card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

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

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--gray-light);
    padding: 1rem;
}

/* Botões */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.25);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.25);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

/* Formulários */
.form-control, .form-select {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tabelas */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.02);
}

.table td, .table th {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Tabelas responsivas para dispositivos móveis */
@media (max-width: 767.98px) {
    .table-responsive-list tr {
        display: block;
        margin-bottom: 1.5rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        border-radius: var(--border-radius);
        background-color: #fff;
    }
    
    .table-responsive-list thead {
        display: none;
    }
    
    .table-responsive-list td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        text-align: right;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .table-responsive-list td:last-child {
        border-bottom: none;
    }
    
    .table-responsive-list td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
        text-align: left;
    }
}

/* Estilos específicos para a tabela de serviços */
.services-table {
    table-layout: fixed;
}

.services-table th,
.services-table td {
    vertical-align: middle;
    word-wrap: break-word;
}

/* Célula do título do serviço */
.service-title-cell {
    width: 35%;
    min-width: 200px;
}

.service-title-text {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Células de ações - sempre fixas */
.services-table td:last-child {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-align: right;
    white-space: nowrap;
}

.services-table th:last-child {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* Garantir que os botões não quebrem */
.services-table .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsividade para telas menores */
@media (max-width: 991.98px) {
    .service-title-cell {
        width: 30%;
        min-width: 150px;
    }
    
    .services-table td:last-child {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .services-table th:last-child {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
}

@media (max-width: 767.98px) {
    .services-table {
        table-layout: auto;
    }
    
    .service-title-cell {
        width: auto;
        min-width: auto;
    }
    
    .services-table td:last-child {
        width: auto;
        min-width: auto;
        max-width: none;
    }
    
    .services-table th:last-child {
        width: auto;
        min-width: auto;
        max-width: none;
    }
}

/* Alertas */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

/* Footer */
footer {
    background-color: var(--dark);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Página de detalhes do serviço */
.service-image {
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.service-thumb {
    height: 80px;
    cursor: pointer;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.service-thumb.active {
    border-color: var(--primary);
}

/* Dashboard de gestão */
.dashboard-card {
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.dashboard-icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Animações */
.fade-in {
    animation: fadeIn ease 0.5s;
}

@keyframes fadeIn {
    0% {opacity: 0; transform: translateY(10px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* Responsividade */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 150px;
    }
    
    .service-image {
        height: 250px;
    }
    
    .service-thumb {
        height: 60px;
    }
    
    .btn {
        padding: 0.4rem 1rem;
    }
    
    .dashboard-icon {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Temas e cores */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Sombras e efeitos */
.shadow-hover:hover {
    box-shadow: var(--box-shadow) !important;
}

.no-scroll {
    overflow: hidden;
}

/* Utilitários */
.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.opacity-75 {
    opacity: 0.75;
}

.vh-75 {
    height: 75vh;
}

/* Estilos para informações dos cards de anúncios */
.location-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6c757d;
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
}

.location-info i {
    font-size: 0.85rem;
    color: #28a745;
    opacity: 0.7;
}

.whatsapp-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #25d366;
    opacity: 0.9;
    flex-shrink: 0;
}

.whatsapp-info i {
    font-size: 0.9rem;
}

.business-name {
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Efeitos hover para melhor interatividade */
.ad-card:hover .location-info {
    opacity: 1;
    color: #495057;
}

.ad-card:hover .location-info i {
    opacity: 1;
    color: #20c997;
}

/* Navbar Moderna */
.navbar-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-modern:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Brand Moderna */
.brand-modern {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-modern:hover {
    color: #f8f9fa !important;
    transform: scale(1.05);
}

.brand-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-icon {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.brand-modern:hover .brand-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

.brand-text {
    background: linear-gradient(45deg, #ffffff, #e8f4f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Toggler Moderno */
.modern-toggler {
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.modern-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

.navbar-toggler-icon-modern {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggler-icon-modern span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modern-toggler:hover .navbar-toggler-icon-modern span {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scaleX(1.1);
}

/* Animação do toggler quando ativo */
.modern-toggler[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.modern-toggler[aria-expanded="true"] .navbar-toggler-icon-modern span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler[aria-expanded="true"] .navbar-toggler-icon-modern span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.modern-toggler[aria-expanded="true"] .navbar-toggler-icon-modern span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Links Modernos */
.modern-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 50px;
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.modern-nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-nav-link:hover:before {
    left: 100%;
}

.modern-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modern-nav-link:active {
    transform: translateY(0);
}

.nav-icon {
    font-size: 1rem !important;
    transition: all 0.3s ease;
    width: 16px;
    text-align: center;
}

.modern-nav-link:hover .nav-icon {
    transform: scale(1.1);
}

/* Garantir que spans dentro dos links tenham tamanho consistente */
.modern-nav-link span {
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Dropdown do Usuário */
.modern-user-dropdown {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-user-dropdown:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.modern-user-dropdown[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Moderno */
.modern-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: dropdownFadeIn 0.3s ease;
    z-index: 9999 !important;
    position: absolute !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 1rem 1.5rem !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: -0.5rem 0 0.5rem 0;
    border-radius: 15px 15px 0 0;
}

.modern-dropdown-item {
    color: #333 !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 0;
}

.modern-dropdown-item:hover {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: #1976d2 !important;
    transform: translateX(5px);
}

.modern-dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    color: #d32f2f !important;
}

.modern-dropdown-item i {
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Botão Moderno */
.btn-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-modern-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern-primary:hover:before {
    left: 100%;
}

.btn-modern-primary:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-modern-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Responsividade */
@media (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.75rem 0;
    }
    
    /* Garantindo visibilidade máxima do toggler no mobile */
    .modern-toggler {
        padding: 0.875rem;
        border: 2px solid rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .modern-toggler:hover,
    .modern-toggler:focus,
    .modern-toggler:active {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.7);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-toggler-icon-modern span {
        height: 3px;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    .modern-nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }
    
    .modern-user-dropdown {
        margin: 0.5rem 0;
    }
    
    .btn-modern-primary {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Colapso do menu mobile - COM SCROLL FORÇADO */
    .navbar-collapse,
    .navbar-collapse.show,
    .navbar-collapse.collapsing,
    #navbarMain,
    #navbarMain.show {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 15px !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        /* CORREÇÃO FORÇADA: Permitir scroll no menu mobile */
        max-height: calc(100vh - 80px) !important;
        max-height: calc(100dvh - 80px) !important; /* Para iOS */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        scroll-behavior: smooth !important;
    }
    
    /* Garantir que o conteúdo interno não quebre o scroll */
    .navbar-collapse .navbar-nav,
    #navbarMain .navbar-nav {
        overflow: visible !important;
        max-height: none !important;
    }
    
    /* Barra de rolagem estilizada para o menu mobile */
    .navbar-collapse::-webkit-scrollbar,
    #navbarMain::-webkit-scrollbar {
        width: 8px !important;
        display: block !important;
    }
    
    .navbar-collapse::-webkit-scrollbar-track,
    #navbarMain::-webkit-scrollbar-track {
        background: #e9ecef !important;
        border-radius: 4px !important;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb,
    #navbarMain::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        border-radius: 4px !important;
        min-height: 40px !important;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover,
    #navbarMain::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5a6fd8, #6a42a6) !important;
    }
    
    /* Links do menu mobile com cores escuras */
    .modern-nav-link {
        color: #333 !important;
        border-radius: 10px;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        padding: 0.75rem 1rem !important;
    }
    
    .modern-nav-link:hover {
        background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
        color: #1976d2 !important;
    }
    
    /* Página ativa no menu mobile */
    .modern-nav-link.active-page {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .modern-nav-link.active-page:hover {
        background: linear-gradient(135deg, #5a6fd8, #6a42a6) !important;
        color: white !important;
        transform: translateY(-2px);
    }
    
    .modern-nav-link.active-page .nav-icon {
        color: white !important;
        transform: scale(1.1);
    }
    
    /* Dropdown do usuário no mobile */
    .modern-user-dropdown {
        color: #333 !important;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.75rem 1rem !important;
        border-radius: 10px;
        font-weight: 500;
        margin: 0.5rem 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    

    
    .modern-user-dropdown:hover {
        color: #1976d2 !important;
        background: rgba(0, 0, 0, 0.08);
    }
    
    .modern-user-dropdown .user-avatar {
        background: rgba(0, 0, 0, 0.1);
        color: #333;
    }
    
    .modern-user-dropdown .user-name {
        color: #333;
    }
    
    .modern-user-dropdown .dropdown-arrow {
        color: #333;
    }
    
    /* Itens do dropdown mobile */
    .modern-dropdown-item {
        color: #333 !important;
        padding: 0.75rem 1rem !important;
        font-weight: 500;
    }
    
    .modern-dropdown-item:hover {
        background: linear-gradient(135deg, #e3f2fd, #f3e5f5) !important;
        color: #1976d2 !important;
    }
    
    .modern-dropdown-item.text-danger {
        color: #dc3545 !important;
    }
    
    .modern-dropdown-item.text-danger:hover {
        background: linear-gradient(135deg, #ffebee, #fce4ec) !important;
        color: #d32f2f !important;
    }
    
    /* Header do dropdown mobile */
    .dropdown-header {
        color: #333 !important;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    }
    
    .dropdown-header .text-muted {
        color: #6c757d !important;
    }
    
    /* Remover backdrop-filter em mobile para melhor performance de scroll */
    .modern-dropdown {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: white !important;
    }
}

@media (max-width: 767.98px) {
    .brand-text {
        font-size: 1.25rem;
    }
    
    /* Ícones com tamanho consistente em telas pequenas */
    .nav-icon {
        font-size: 1rem !important;
        width: 16px;
    }
    
    /* Sino de notificação visível em telas pequenas */
    .notification-bell {
        color: #1e3a8a !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .notification-bell i {
        color: #1e3a8a !important;
    }
    
    .notification-bell:hover {
        color: #1e40af !important;
        background: transparent !important;
        border: none !important;
        transform: scale(1.1);
    }
}

/* Dispositivos muito pequenos (smartphones) */
@media (max-width: 480px) {
    .notification-bell {
        padding: 0.3rem 0.5rem !important;
        color: #1e3a8a !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .notification-bell i {
        color: #1e3a8a !important;
        font-size: 1.2rem !important;
    }
    
    .notification-badge {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }
}

/* Página Ativa - Especificidade máxima */
.modern-nav-link.active-page {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.modern-nav-link.active-page .nav-icon {
    transform: scale(1.1);
    color: #fff;
}

.modern-nav-link.active-page:before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Página ativa específica para mobile */
@media (max-width: 991.98px) {
    .navbar-collapse .modern-nav-link.active-page {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .navbar-collapse .modern-nav-link.active-page:hover {
        background: linear-gradient(135deg, #5a6fd8, #6a42a6) !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }
    
    .navbar-collapse .modern-nav-link.active-page .nav-icon {
        color: white !important;
        transform: scale(1.1) !important;
    }
    
    .navbar-collapse .modern-nav-link.active-page span {
        color: white !important;
    }
}

/* Efeito Ripple */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Melhorias adicionais */
.modern-nav-link,
.btn-modern-primary {
    position: relative;
    overflow: hidden;
}

/* Links de login no mobile */
.login-link {
    color: #333 !important;
}

.login-link:hover {
    color: #1976d2 !important;
}

/* Botão de cadastro no menu */
.nav-register-btn {
    margin-left: 0.5rem;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

/* Ajustes para desktop - botões de login e cadastro */
@media (min-width: 992px) {
    .navbar-nav .nav-item:last-child .nav-register-btn {
        margin-left: 0.75rem;
        padding: 0.6rem 1.25rem !important;
    }
    
    .navbar-nav .nav-item .login-link {
        color: rgba(255, 255, 255, 0.9) !important;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        padding: 0.75rem 1.25rem !important;
    }
    
    .navbar-nav .nav-item .login-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Alinhamento horizontal dos itens de login/cadastro */
    .navbar-nav .nav-item:nth-last-child(2),
    .navbar-nav .nav-item:last-child {
        display: flex;
        align-items: center;
    }
}

/* Ajustes para mobile - botões de login e cadastro */
@media (max-width: 991.98px) {
    .nav-register-btn {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        padding: 0.75rem 1rem !important;
    }
    
    .login-link {
        color: #333 !important;
        margin: 0.25rem 0;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Garantir ícones consistentes no mobile */
    .nav-icon {
        font-size: 1rem !important;
        width: 16px;
    }
}

/* DROPDOWN DENTRO DO MENU MOBILE - O navbar-collapse já tem scroll */
@media (max-width: 991px) {
    /* Dropdown abre INLINE dentro do menu mobile (não como popup) */
    .navbar-collapse .dropdown-menu,
    .navbar-collapse .modern-dropdown {
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        background: #f8f9fa !important;
        border: none !important;
        border-radius: 10px !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.05) !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Itens do dropdown mobile - visual melhorado */
    .navbar-collapse .dropdown-item {
        padding: 0.75rem 1.25rem !important;
        border-radius: 8px !important;
        margin: 0.25rem 0.5rem !important;
        transition: all 0.2s ease !important;
    }
    
    .navbar-collapse .dropdown-item:hover {
        background: linear-gradient(135deg, #e3f2fd, #f3e5f5) !important;
    }
    
    /* Item Sair destacado */
    .navbar-collapse .dropdown-item.text-danger {
        background: #fff5f5 !important;
        border: 1px solid #ffcdd2 !important;
    }
    
    .navbar-collapse .dropdown-item.text-danger:hover {
        background: #ffebee !important;
    }
    
    /* Dividers no dropdown mobile */
    .navbar-collapse .dropdown-divider {
        margin: 0.5rem 1rem !important;
        border-color: #dee2e6 !important;
    }
    
    /* Header do dropdown */
    .navbar-collapse .dropdown-header {
        padding: 0.75rem 1.25rem !important;
        background: transparent !important;
        border-radius: 8px !important;
        margin: 0.25rem 0.5rem !important;
    }
    
    /* Espaço extra no final do menu para garantir que Sair seja visível */
    .navbar-collapse .navbar-nav:last-child {
        padding-bottom: 1rem !important;
    }
    
    /* Indicador visual de mais conteúdo abaixo */
    .navbar-collapse::after {
        content: '';
        display: block;
        height: 20px;
        flex-shrink: 0;
    }
}

/* DESKTOP: Reset completo para comportamento normal */
@media (min-width: 992px) {
    /* Navbar collapse - transparente e sem estilos mobile */
    .navbar-collapse,
    .navbar-collapse.show,
    .navbar-collapse.collapsing,
    #navbarMain {
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Dropdown menu - posição absoluta normal */
    .dropdown-menu,
    .navbar .dropdown-menu,
    .modern-dropdown {
        position: absolute !important;
        max-height: none !important;
        overflow: visible !important;
        width: auto !important;
        float: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    /* Nav item dropdown - posição relativa */
    .navbar .nav-item.dropdown {
        position: relative !important;
    }
    
    /* Remover scrollbar */
    .dropdown-menu::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Remover ::after do mobile */
    .navbar-collapse::after {
        display: none !important;
    }
}

/* ESTILOS PARA SUGESTÕES DE BUSCA EM TEMPO REAL */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    animation: fadeInDown 0.3s ease-out;
}

.search-suggestions.d-none {
    display: none !important;
}

.search-suggestion-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(4px);
}

.search-suggestion-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.suggestion-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.search-suggestion-item:hover .suggestion-title,
.search-suggestion-item.active .suggestion-title {
    color: inherit;
}

.suggestion-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.search-suggestion-item:hover .suggestion-description,
.search-suggestion-item.active .suggestion-description {
    color: rgba(255, 255, 255, 0.8);
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8em;
    color: #8b949e;
}

.search-suggestion-item:hover .suggestion-meta,
.search-suggestion-item.active .suggestion-meta {
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-meta .badge {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

.suggestion-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suggestion-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.suggestion-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading indicator */
.search-loading {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade mobile */
@media (max-width: 576px) {
    .search-suggestions {
        max-height: 300px;
        border-radius: 0.375rem;
    }
    
    .search-suggestion-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .suggestion-image {
        width: 50px;
        height: 50px;
    }
    
    .suggestion-title {
        font-size: 0.9rem;
    }
    
    .suggestion-description {
        font-size: 0.8rem;
    }
    
    .suggestion-meta {
        gap: 0.5rem;
        font-size: 0.75em;
    }
}

/* Scrollbar personalizada para sugestões */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Melhorias para botões do modal de detalhes do item */
@media (max-width: 576px) {
    #itemDetailsModal .modal-footer {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    #itemDetailsModal .modal-footer .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }
    
    #itemDetailsModal .modal-body {
        padding: 1rem !important;
    }
    
    #itemDetailsModal .card {
        margin-bottom: 1rem !important;
        border-radius: 8px !important;
    }
    
    #itemDetailsModal .card-body {
        padding: 1rem !important;
    }
    
    /* Botões de ação responsivos */
    #itemDetailsModal .d-flex.flex-column.flex-sm-row {
        gap: 0.75rem !important;
    }
    
    #itemDetailsModal .btn.flex-fill {
        min-height: 44px !important; /* Melhor área de toque */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
    }
    
    #itemDetailsModal .btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }
    
    #itemDetailsModal .btn:active {
        transform: translateY(0) !important;
    }
    
    /* Melhorar espaçamento dos ícones */
    #itemDetailsModal .btn i {
        font-size: 1.1rem !important;
    }
    
    /* Garantir que o modal ocupe toda a tela em dispositivos muito pequenos */
    @media (max-width: 480px) {
        #itemDetailsModal .modal-dialog {
            margin: 0.5rem !important;
            max-width: calc(100vw - 1rem) !important;
        }
        
        #itemDetailsModal .modal-content {
            border-radius: 12px !important;
        }
        
        #itemDetailsModal .modal-header {
            padding: 1rem !important;
            border-radius: 12px 12px 0 0 !important;
        }
        
        #itemDetailsModal .modal-body {
            padding: 1rem !important;
        }
        
        #itemDetailsModal .modal-footer {
            padding: 1rem !important;
            border-radius: 0 0 12px 12px !important;
        }
    }
}

/* ========== SINO DE NOTIFICAÇÃO ========== */
.notification-bell {
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
}

/* Sino mobile ao lado do menu hambúrguer */
.notification-bell-mobile {
    position: relative;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
    color: white;
    background: transparent;
    border: none;
    border-radius: 0;
}

.notification-bell-mobile:hover {
    color: #f8f9fa;
    background: transparent;
    border: none;
    transform: scale(1.1);
}

.notification-bell-mobile i {
    transition: all 0.3s ease;
    color: white;
}

/* Badge do dropdown - sempre visível */
#notificationBadgeDropdown {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 0.65rem !important;
    animation: pulse 2s infinite;
}

.notification-bell:hover {
    color: var(--primary);
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.notification-bell i {
    transition: all 0.3s ease;
}

.notification-bell:hover i {
    animation: bellRing 0.5s ease-in-out;
}

.notification-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

/* Animação do sino */
@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Animação do badge */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 2px 15px rgba(220, 53, 69, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    /* Sino desktop oculto em mobile */
    .notification-bell {
        display: none !important;
    }
    
    /* Sino mobile visível */
    .notification-bell-mobile {
        display: block !important;
        color: white !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .notification-bell-mobile:hover {
        color: #f8f9fa !important;
        background: transparent !important;
        border: none !important;
        transform: scale(1.1);
    }
    
    .notification-bell-mobile i {
        font-size: 1.1rem;
        color: white !important;
    }
    
    .notification-badge {
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        /* Garantir que o badge seja sempre visível em mobile */
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: white !important;
        border: 2px solid white !important;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
    }
    
    /* Badge do dropdown mobile - garantir visibilidade */
    #notificationBadgeDropdown {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: white !important;
        border: 2px solid white !important;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
        font-weight: 600 !important;
        min-width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        font-size: 0.65rem !important;
    }
    
    /* Badge do dropdown mobile quando visível */
    #notificationBadgeDropdown[style*="display: inline-block"] {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: white !important;
    }
}

/* Estilos para ações em lote das notificações */
.batch-actions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.batch-actions .form-check {
    margin-bottom: 0;
}

.batch-actions .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
}

.batch-actions .form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
}

.selected-count {
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-item .form-check {
    margin-bottom: 0;
}

.notification-item .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    cursor: pointer;
}

.notification-item .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.notification-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Paginação das notificações */
.pagination-section {
    margin-top: 2rem;
}

.pagination .page-link {
    color: #667eea;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Responsividade das ações em lote */
@media (max-width: 768px) {
    .batch-actions {
        padding: 0.75rem;
    }
    
    .batch-actions .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .batch-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .notification-item .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification-item .form-check {
        align-self: flex-start;
    }
}