/* =========================================================
   HCT01 UI FEEDBACK
   - Light overlay
   - Loading
   - Toast
========================================================= */

.hct01-ui-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 99980;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.hct01-ui-feedback-overlay.hct01-is-show {
    display: flex;
    pointer-events: auto;
}

.hct01-ui-feedback-loading-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
    font-size: 14px;
    font-weight: 600;
}

.hct01-ui-feedback-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #ddd;
    border-top-color: #c85c26;
    border-radius: 50%;
    animation: hct01UiFeedbackSpin .8s linear infinite;
}

@keyframes hct01UiFeedbackSpin {
    to {
        transform: rotate(360deg);
    }
}

.hct01-ui-feedback-toast-wrap {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hct01-ui-feedback-toast {
    min-width: 260px;
    max-width: 420px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #222;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    animation: hct01UiFeedbackToastIn .22s ease;
}

.hct01-ui-feedback-toast.hct01-success {
    background: #16803c;
}

.hct01-ui-feedback-toast.hct01-error {
    background: #c0392b;
}

.hct01-ui-feedback-toast.hct01-warning {
    background: #b7791f;
}

.hct01-ui-feedback-toast.hct01-info {
    background: #2563eb;
}

@keyframes hct01UiFeedbackToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hct01-field-error {
    margin-top: 5px;
    color: #c0392b;
    font-size: 13px;
}

.hct01-input-error {
    border-color: #c0392b !important;
    outline-color: #c0392b !important;
}

@media (max-width: 860px) {
    .hct01-ui-feedback-toast-wrap {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .hct01-ui-feedback-toast {
        width: 100%;
        min-width: 0;
    }
}
.hct01-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.hct01-confirm-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5eaf0;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.hct01-confirm-title {
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
}

.hct01-confirm-message {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.hct01-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.hct01-confirm-cancel,
.hct01-confirm-ok {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hct01-confirm-ok {
    background: #0b7f3a;
    border-color: #0b7f3a;
    color: #fff;
}

.hct01-confirm-ok.is-danger {
    background: #d60000;
    border-color: #d60000;
}