
/* --- SweetAlert2 Overrides for HatchCo Standard --- */

/* 1. Modal Container (Compacto) */
.swal2-popup.premium-radius {
    border-radius: 12px !important;
    padding: 30px !important;
    width: 320px !important;
    max-width: 95% !important;
    font-family: 'Roboto', sans-serif !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* 2. Title */
.swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1e1d !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}

/* 3. Content / Text */
.swal2-html-container {
    font-size: 13px !important;
    color: #6F7271 !important;
    margin: 1rem 0 1.5rem 0 !important;
    line-height: 1.5 !important;
}

/* 4. Icon Override */
.swal2-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 1rem auto !important;
    border: none !important;
    background-color: transparent !important;
}
.swal2-icon.swal2-warning {
    color: #b3760d !important; /* Warning darker for visibility */
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.swal2-icon.swal2-warning .swal2-icon-content {
    font-size: 38px !important;
    font-weight: normal !important; /* Feather icons usually normal weight */
}
/* Question icon styling for Approval */
.swal2-icon.swal2-question {
    color: #76bc21 !important;
    background-color: transparent !important;
    border: 3px solid #76bc21 !important;
    border-radius: 50% !important;
}

/* Ocultar botón Deny por defecto para evitar duplicados en versiones específicas */
.swal2-deny {
    display: none !important;
}

/* Success icon specific scaling to fit 48px */
.swal2-icon.swal2-success {
    border-color: var(--h-primary) !important;
    color: var(--h-primary) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    width: 48px !important;
    height: 48px !important;
    border: .25em solid rgba(118, 188, 33, 0.2) !important;
}
.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: var(--h-primary) !important;
}


/* 5. Input / Textarea */
.swal2-textarea, .swal2-input {
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.9rem !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin: 10px auto 0 !important; /* Centered */
    box-shadow: none !important;
    resize: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

/* Specific height for textarea */
textarea.swal2-textarea {
    height: 120px !important;
}

.swal2-textarea:focus, .swal2-input:focus {
    border-color: var(--h-primary) !important;
    box-shadow: 0 0 0 3px rgba(118, 188, 33, 0.15) !important;
    outline: none !important;
}

/* Danger Focus for Rejection Input */
.swal2-textarea.input-danger-focus:focus {
    border-color: var(--h-danger) !important;
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.15) !important;
}

/* 6. Action Buttons */
.swal2-actions {
    margin-top: 1.8rem !important;
    gap: 12px !important;
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: nowrap !important; /* Prevent wrapping */
}

.swal2-actions button {
    margin: 0 !important;
    font-size: 0.9rem !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    min-width: 110px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    box-shadow: none !important;
}

/* Fix h-btn compatibility inside Swal */
.swal2-actions .h-btn {
    display: inline-flex !important;
}

/* Override standard button styles if h-btn fails to load */
.swal2-confirm.h-btn-primary {
    background-color: var(--h-primary) !important;
    border-color: var(--h-primary) !important;
    color: white !important;
}
.swal2-confirm.h-btn-danger {
    background-color: var(--h-danger) !important;
    border-color: var(--h-danger) !important;
    color: white !important;
}
.swal2-cancel.h-btn-secondary {
    background-color: var(--h-gray) !important;
    border-color: var(--h-gray) !important;
    color: white !important;
}
