/* Estilos para a tabela de itens */
.tabela-itens {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabela-itens th {
    background-color: #f8f9fa;
    padding: 12px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.tabela-itens td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.tabela-itens tbody tr:hover {
    background-color: #f8f9fa;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-remove-item:hover {
    background-color: #dc3545;
    color: white;
}

/* Animação para quando um item é adicionado */
@keyframes highlight {
    0% { background-color: #d4edda; }
    100% { background-color: transparent; }
}

.item-adicionado {
    animation: highlight 2s ease-out;
}



.formulario-correios {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conteudo-correios {
    padding: 15px;
}

#btn-aplicar-filtros-pre,
#nfse-btn-aplicar-filtros,
#btn-aplicar-filtros {
    position: absolute;
    border-radius: 15px 5px 12px 5px;
    height: 30px;
    width: 35px;
    text-align: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    right: 0;
    bottom: 0px;
}





/* LOADERS */

/* Adicione isso ao seu arquivo CSS */

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.loader-container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

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

/* Loader Spinner */
.loader-spinner {
    margin-bottom: 20px;
}

.loader-spinner i {
    font-size: 48px;
    color: #2196F3;
    animation: spin 1.5s linear infinite;
}

.loader-spinner .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Loader com Progresso */
.loader-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #4CAF50);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease infinite;
}

@keyframes progressPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.progress-percent {
    font-size: 14px;
    font-weight: bold;
    color: #2196F3;
}

/* Loader com Etapas */
.loader-steps {
    margin: 20px 0;
    text-align: left;
}

.loader-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.loader-step.active {
    opacity: 1;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.loader-step.completed {
    opacity: 1;
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.step-icon i {
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.step-description {
    font-size: 12px;
    color: #666;
}

/* Loader Texto */
.loader-text {
    margin: 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.loader-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.loader-timer {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Loader Botão */
.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

/* Loader na Tabela */
.table-loader {
    text-align: center;
    padding: 40px;
}

.table-loader i {
    font-size: 32px;
    color: #2196F3;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.table-loader p {
    color: #666;
    font-size: 14px;
}

/* Loader Inline */
.inline-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #e3f2fd;
    border-radius: 20px;
    font-size: 13px;
    color: #2196F3;
}

.inline-loader i {
    animation: spin 1s linear infinite;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Loader específico para geração de etiqueta */
.label-loader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.label-loader .loader-container {
    border-top: 5px solid #ffd700;
}

.label-loader .loader-spinner i {
    color: #ffd700;
}

/* Responsividade */
@media (max-width: 768px) {
    .loader-container {
        padding: 20px;
        width: 95%;
    }
    
    .loader-text {
        font-size: 16px;
    }
}