/* 
 * VeicFlow - Custom Modern Dialogs CSS
 * Design System Kinetic Enterprise - Popups & Modais
 */

.vf-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 28, 45, 0.5); /* #111c2d + opacity */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.vf-dialog-overlay.vf-active {
    opacity: 1;
    pointer-events: auto;
}

.vf-dialog-card {
    background-color: #ffffff;
    border-radius: 14px;
    width: 440px;
    max-width: 92%;
    padding: 28px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(0.92);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vf-dialog-overlay.vf-active .vf-dialog-card {
    transform: scale(1);
}

/* Ícones de Status */
.vf-dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.vf-dialog-icon svg {
    width: 28px;
    height: 28px;
}

/* Tema de Sucesso (Verde) */
.vf-dialog-icon.vf-success {
    background-color: #dcfce7; /* Light Green */
    color: #16a34a; /* Green 600 */
}

/* Tema de Alerta / Perigo (Vermelho) */
.vf-dialog-icon.vf-danger {
    background-color: #fee2e2; /* Light Red */
    color: #ef4444; /* Red 500 */
}

/* Tema de Atenção / Bloqueio (Laranja / Âmbar) */
.vf-dialog-icon.vf-warning {
    background-color: #fef3c7; /* Light Amber */
    color: #d97706; /* Amber 600 */
}

/* Tema Informativo (Azul) */
.vf-dialog-icon.vf-info {
    background-color: #dbeafe; /* Light Blue */
    color: #2563eb; /* Blue 600 */
}

/* Layout para Diálogos com Textarea / Justificativa (Oficial VeicFlowDialogs) */
.vf-dialog-card.vf-card-textarea {
    width: 460px;
    max-width: 92%;
    padding: 26px 24px 22px 24px;
}

.vf-dialog-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.35;
}

.vf-dialog-title.has-subtitle {
    margin-bottom: 6px;
}

.vf-dialog-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.45;
    text-align: center;
}

.vf-prompt-textarea-body {
    padding: 0 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    width: 100%;
}

/* Campos de Formulário para Diálogos (ex: Textarea de Justificativa) */
.vf-dialog-field-wrapper {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
}

.vf-dialog-label {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vf-dialog-textarea {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    outline: none;
    line-height: 1.45;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #1e293b;
    background: #ffffff;
    min-height: 76px;
}

.vf-dialog-textarea:focus {
    border-color: var(--primary, #004ac6);
    box-shadow: 0 0 0 3px rgba(0, 74, 198, 0.12);
}

/* Mensagem / Texto do Diálogo */
.vf-dialog-message {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
    color: #1e293b; /* Slate 800 */
    margin-bottom: 22px;
    white-space: pre-wrap;
    text-align: center;
    padding: 0 10px;
}

/* Ações / Botões */
.vf-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

/* ==========================================================================
   CONFIGURAÇÃO ORIGINAL ANTERIOR (BACKUP):
   padding: 10px 24px; font-size: 13.5px; min-width: 100px;
   ========================================================================== */
.vf-dialog-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    outline: none;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Botão Confirmar Sucesso */
.vf-dialog-btn.vf-btn-confirm.vf-success {
    background-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.vf-dialog-btn.vf-btn-confirm.vf-success:hover {
    background-color: #15803d;
    transform: translateY(-1px);
}

/* Botão Confirmar Perigo */
.vf-dialog-btn.vf-btn-confirm.vf-danger {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.vf-dialog-btn.vf-btn-confirm.vf-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

/* Botão Confirmar Alerta (Laranja / Âmbar) */
.vf-dialog-btn.vf-btn-confirm.vf-warning {
    background-color: #d97706;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.vf-dialog-btn.vf-btn-confirm.vf-warning:hover {
    background-color: #b45309;
    transform: translateY(-1px);
}

/* Botão Confirmar Informação (Azul) */
.vf-dialog-btn.vf-btn-confirm.vf-info {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.vf-dialog-btn.vf-btn-confirm.vf-info:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Botão Cancelar (Neutro) */
.vf-dialog-btn.vf-btn-cancel {
    background-color: #64748b; /* Slate 500 */
    color: #ffffff;
}

.vf-dialog-btn.vf-btn-cancel:hover {
    background-color: #475569; /* Slate 600 */
    transform: translateY(-1px);
}
