.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Botão Dashboard */
.btn-dashboard {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-dashboard:active {
    transform: translateY(0);
}



.filtros-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filtros-header h2 {
    color: #FF6600;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-filtros {
    background: #FF6600;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filtros:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

/* ===== BUSCA ===== */
.busca-container {
    margin-bottom: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.btn-clear {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 8px;
    border-radius: 50%;
    display: none;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.input-group input:not(:placeholder-shown)+.btn-clear {
    display: block;
}

/* ===== FILTROS AVANÇADOS ===== */
.filtros-avancados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

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

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

.filtro-grupo label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.filtro-grupo select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
}

.anunciantes-section {
    padding: 40px 0;
}



.count-badge {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
}

/* ===== LISTA DE ANUNCIANTES ===== */
.anunciantes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.anunciantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* ===== CARDS ANUNCIANTES COMPLETOS ===== */
.anunciante-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px;
    min-height: 100px;
}

.anunciante-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #FF6600;
}

.anunciante-card.fechado {
    opacity: 0.8;
}

/* Header do Card */
.card-header {
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-estabelecimento {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    color: #6c757d;
    font-size: 24px;
}

.status-badge2 {
    /* padding: 6px 12px;
    border-radius: 20px; */
    font-size: 13px;
    font-weight: 700;
    /* text-transform: uppercase;
    letter-spacing: 0.5px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.status-badge2.aberto {
    /* background: linear-gradient(135deg, #28a745 0%, #20c997 100%); */
    color:#28a745
    /* color: white; */
}

.status-badge2.fechado {
    /* background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%); */
    color: #dc3545
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge.aberto {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-badge.fechado {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

/* Conteúdo do Card */
.card-content {
    padding: 20px;
}

.nome-fantasia {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.descricao {
    margin: 0 0 16px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid de Informações */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 13px;
}

.info-item i {
    color: #FF6600;
    font-size: 14px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* Garantir que o botão e status fiquem alinhados à direita */
.action-row .btn-ver-cardapio {
    order: 1;
}

.action-row .status-badge {
    order: 2;
}

/* Grid de Informações */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #495057;
}

.info-item i {
    margin-right: 6px;
    color: #FF6600;
    width: 14px;
    text-align: center;
}

/* Endereço e Contato */
.endereco,
.contato {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6c757d;
}

.endereco i,
.contato i {
    margin-right: 8px;
    color: #FF6600;
    width: 14px;
    text-align: center;
}

/* Footer com Rating */
.rating-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.rating {
    display: flex;
    align-items: center;
}

.rating i {
    color: #ffc107;
    font-size: 14px;
    margin-right: 2px;
}

.rating-text {
    margin-left: 6px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.btn-ver-cardapio {
    background: #FF6600;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ver-cardapio:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

.btn-ver-cardapio.disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-ver-cardapio.disabled:hover {
    background: #6c757d;
    transform: none;
}



@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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



/* ===== CORREÇÃO USER-LINE ===== */
.user-line i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 5px;
}

/* ===== LAYOUT HORIZONTAL DOS CARDS ===== */
.anunciantes-list .anunciante-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    min-height: 85px;
    position: relative;
}

.anunciantes-list .card-header {
    background: none;
    padding: 0;
    margin: 0 16px 0 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
}

.anunciantes-list .logo-container {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.anunciantes-list .logo-estabelecimento {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

.anunciantes-list .logo-placeholder {
    color: #6c757d;
    font-size: 20px;
}

.anunciantes-list .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.anunciantes-list .card-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.anunciantes-list .nome-fantasia {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.anunciantes-list .descricao {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anunciantes-list .info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.anunciantes-list .info-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
}

.anunciantes-list .info-item i {
    margin-right: 4px;
    color: #FF6600;
    width: 10px;
    text-align: center;
    font-size: 10px;
}

.anunciantes-list .action-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.anunciantes-list .rating {
    display: flex;
    align-items: center;
}

.anunciantes-list .rating i {
    color: #ffc107;
    font-size: 11px;
    margin-right: 1px;
}

.anunciantes-list .rating-text {
    margin-left: 4px;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.anunciantes-list .btn-ver-cardapio {
    background: #FF6600;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.anunciantes-list .btn-ver-cardapio:hover {
    background: #e55a00;
}

.anunciantes-list .btn-ver-cardapio.disabled {
    background: #6c757d;
    cursor: not-allowed;
    color: #ffffff;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .anunciantes-list .anunciante-card {
        padding: 12px;
        min-height: 80px;
    }

    .anunciantes-list .card-header {
        margin-right: 12px;
    }

    .anunciantes-list .logo-container {
        width: 75px;
        height: 75px;
    }

    .anunciantes-list .card-content {
        min-height: 50px;
    }

    .anunciantes-list .nome-fantasia {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .anunciantes-list .descricao {
        font-size: 13px;
        margin-bottom: 6px;
        margin-top: 10px;
    }

    .anunciantes-list .info-row {
        gap: 12px;
        margin-bottom: 2px;
    }

    .anunciantes-list .info-item {
        font-size: 10px;
    }

    .anunciantes-list .info-item i {
        font-size: 9px;
    }

    .anunciantes-list .rating i {
        font-size: 10px;
    }

    .anunciantes-list .rating-text {
        font-size: 10px;
    }

    .anunciantes-list .btn-ver-cardapio {
        padding: 7px 10px;
        font-size: 10px;
    }

    .anunciantes-list .action-row {
        justify-content: flex-end;
    }

    .anunciantes-list .rating {
        display: none;
    }


}

/* ===== BOTÃO COPIAR LINK ===== */
.btn-copiar-link {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Ajuste quando há status badge - mover para a esquerda */
.anunciante-card:has(.status-badge) .btn-copiar-link {
    right: 120px; /* Mais espaço para o status badge */
}

/* Fallback para navegadores que não suportam :has() */
.anunciante-card .status-badge + .btn-copiar-link {
    right: 120px;
}

.btn-copiar-link:hover {
    background: #FF6600;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
    border-color: #FF6600;
}

.btn-copiar-link i {
    font-size: 11px;
    color: #666;
    transition: color 0.3s ease;
}

.btn-copiar-link:hover i {
    color: white;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .btn-copiar-link {
        width: 28px;
        height: 28px;
        top: 4px;
        right: 4px;
        background: #FF6600 !important;
        color: white !important;
        border: 2px solid white;
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    }
    
    .btn-copiar-link i {
        font-size: 11px;
        color: white !important;
    }
    
    .btn-copiar-link:hover {
        background: #E55A00 !important;
        transform: scale(1.1);
        box-shadow: 0 3px 12px rgba(255, 102, 0, 0.6);
    }
    
    /* Ajuste mobile quando há status badge */
    .anunciante-card:has(.status-badge) .btn-copiar-link {
        right: 110px; /* Mais espaço no mobile */
    }
    
    /* Fallback mobile */
    .anunciante-card .status-badge + .btn-copiar-link {
        right: 110px;
    }
}