/* ==========================================================================
   MÓDULO DE LANÇAMENTO DE BOLETOS - DESIGN DE ALTA FIDELIDADE (TEMA CLARO)
   ========================================================================== */

/* Barra de Status e Elementos Específicos */
.barcode-input-wrapper {
    position: relative;
    width: 100%;
}

.barcode-input-wrapper .boleto-input {
    padding-right: 40px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.barcode-icon-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Validações */
.boleto-input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
    background-color: #f0fdf4 !important;
}

.boleto-input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    background-color: #fef2f2 !important;
}

/* Feedback de Validação */
.boleto-feedback {
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
    animation: slideDown 0.2s ease forwards;
}

.boleto-feedback.success {
    color: #10b981;
    display: block;
}

.boleto-feedback.error {
    color: #ef4444;
    display: block;
}

/* Área do Código de Barras Digital Dinâmico */
.barcode-preview-container {
    margin-bottom: 20px;
    display: none;
    text-align: center;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease forwards;
}

.barcode-svg-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barcode-svg-wrapper svg {
    width: 100%;
    height: auto;
    max-height: 70px;
}

.barcode-value-display {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 8px;
    letter-spacing: 2px;
}

/* Animações Auxiliares */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast de Notificação do Módulo */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-dark);
    z-index: 11000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-notification div strong {
    color: var(--text-dark);
}

.toast-notification div span {
    color: var(--text-light);
}

@keyframes slideInLeft {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}
