/* Estilos complementares ao TailwindCSS para o Sistema de Simulação de Vendas */

/* Melhorias na tipografia */
.font-sans {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Melhorias nos campos de formulário */
.form-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Estilos para mensagens de sucesso e erro */
.message-success {
    /* Removida animação */
}

.message-error {
    /* Removida animação */
}

/* Melhorias na tabela */
.table-row {
    /* Removida transição */
}

.table-row:hover {
    background-color: #EFF6FF;
}

/* Estilos para badges de status */
.badge-classico {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 2px solid #10B981;
    color: #065F46;
}

.badge-premium {
    background: linear-gradient(135deg, #E9D5FF 0%, #C4B5FD 100%);
    border: 2px solid #8B5CF6;
    color: #5B21B6;
}

/* Melhorias nos botões */
.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

/* Melhorias nos cards de resumo */
.summary-card {
    border: 2px solid transparent;
}

.summary-card:hover {
    transform: translateY(-4px);
    border-color: #E5E7EB;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Estilos para campos de input com ícones */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 3rem;
}

.input-with-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}

/* Melhorias na responsividade mobile */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    /* Melhorias específicas para mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .gap-8 {
        gap: 1.5rem;
    }
    
    .gap-6 {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .p-8 {
        padding: 1rem;
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-8 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .gap-8 {
        gap: 1rem;
    }
    
    .gap-6 {
        gap: 0.75rem;
    }
}

/* Estilos para scrollbar personalizada */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1F2937;
    margin-bottom: -5px;
}

/* Melhorias na acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos para estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #E5E7EB;
    border-top-color: #2563EB;
    border-radius: 50%;
}

/* Estilos para notificações toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

/* Melhorias nos formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 0.75rem;
    font-size: 1.125rem;
}

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Estilos para validação de formulário */
.form-input.is-valid {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-input.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.validation-message.is-valid {
    color: #10B981;
}

.validation-message.is-invalid {
    color: #EF4444;
}
