/* ===== CONTROLES DE VISUALIZAÇÃO E INTERFACE MODERNA ===== */

/* Container de Ações Moderno */
.acoes-container-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.acoes-left h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.acoes-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Toggle de Visualização */
.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
}

.view-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.view-btn:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botão Nova Moto Atualizado */
.btn-nova-moto {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-nova-moto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Container de Visualização */
.visualizacao-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 400px;
    position: relative;
}

.view-container {
    padding: 24px;
    min-height: 400px;
}

/* Loading Moderno */
.loading-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-modern p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Estado Vazio Moderno */
.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #6b7280;
}

.empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-icon i {
    font-size: 48px;
    color: #9ca3af;
}

.empty-state-modern h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.empty-state-modern p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    max-width: 400px;
}

.btn-empty-action {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Paginação Moderna */
.paginacao-moderna {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 16px;
}

.paginacao-info {
    font-size: 14px;
    color: #6b7280;
}

.paginacao-info strong {
    color: #374151;
    font-weight: 600;
}

.paginacao-controles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-paginacao {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 14px;
}

.btn-paginacao:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-paginacao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.paginacao-numeros {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.btn-numero-pagina {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.btn-numero-pagina:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-numero-pagina.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.paginacao-ellipsis {
    padding: 0 8px;
    color: #9ca3af;
    font-size: 14px;
}

.paginacao-tamanho {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.select-paginacao {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.select-paginacao:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .acoes-container-modern {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    
    .acoes-center {
        order: -1;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .paginacao-moderna {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .paginacao-controles {
        justify-content: center;
    }
    
    .paginacao-tamanho {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .view-container {
        padding: 16px;
    }
    
    .empty-state-modern {
        padding: 40px 16px;
    }
    
    .empty-icon {
        width: 80px;
        height: 80px;
    }
    
    .empty-icon i {
        font-size: 32px;
    }
    
    .paginacao-controles {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .btn-paginacao,
    .btn-numero-pagina {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* Animações de Transição entre Visualizações */
.view-container {
    transition: all 0.3s ease;
}

.view-container.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.view-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Indicador de Contagem */
.count-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
}

.count-indicator i {
    font-size: 10px;
}

/* Filtros Rápidos */
.filtros-rapidos {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filtro-rapido {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-rapido:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filtro-rapido.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Ordenação */
.ordenacao-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ordenacao-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.select-ordenacao {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    min-width: 160px;
}

.select-ordenacao:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}