/* Estilos para o Componente de Lançamento Rápido */

.lancamento-rapido-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.lancamento-rapido-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.lancamento-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.lancamento-title {
    color: #495057;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.lancamento-title i {
    color: #ffc107;
    font-size: 1.3rem;
}

.lancamento-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
    font-style: italic;
}

.lancamento-rapido-container .form-group {
    margin-bottom: 20px;
}

.lancamento-rapido-container .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.item-detalhes {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.item-detalhes .form-group {
    margin-bottom: 15px;
}

.item-detalhes .form-group:last-child {
    margin-bottom: 0;
}

.total-rapido {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%) !important;
    border-color: #28a745 !important;
    font-weight: 700;
    color: #155724 !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.total-rapido:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.lancamento-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.lancamento-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lancamento-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.lancamento-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    color: white;
}

.lancamento-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.lancamento-actions .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.lancamento-actions .btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.lancamento-actions .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
}

.lancamento-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.lancamento-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.alert-sm {
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 0;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.alert-sm i {
    margin-right: 8px;
    color: #856404;
}

.alert-sm div {
    margin-bottom: 5px;
}

.alert-sm div:last-child {
    margin-bottom: 0;
}

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

.item-detalhes {
    animation: slideIn 0.3s ease-out;
}

.lancamento-actions {
    animation: slideIn 0.4s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .lancamento-rapido-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .lancamento-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .lancamento-title {
        font-size: 1.1rem;
    }
    
    .item-detalhes {
        padding: 15px;
        margin: 15px 0;
    }
    
    .lancamento-actions {
        justify-content: stretch;
        gap: 8px;
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .lancamento-actions .btn {
        flex: 1;
        min-width: auto;
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .lancamento-rapido-container {
        padding: 12px;
        border-radius: 8px;
    }
    
    .lancamento-title {
        font-size: 1rem;
        flex-direction: column;
        gap: 4px;
    }
    
    .lancamento-title i {
        font-size: 1.2rem;
    }
    
    .lancamento-desc {
        font-size: 0.85rem;
    }
    
    .item-detalhes {
        padding: 12px;
        border-radius: 8px;
    }
    
    .lancamento-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .lancamento-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .alert-sm {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Estados especiais */
.lancamento-rapido-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.lancamento-rapido-container.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.lancamento-rapido-container.error {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #f8e8e8 100%);
}

/* Melhorias de acessibilidade */
.lancamento-actions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.lancamento-rapido-container input:focus,
.lancamento-rapido-container textarea:focus,
.lancamento-rapido-container select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Indicadores visuais */
.form-group.required label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44L7.8 4.11l.94.94L4.67 9.18z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 2.4 2.4M8.2 5.8l-2.4 2.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
} 