#oalert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* 🔹 box baru */
.oalert-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid var(--onv-border, #e6e8ee);
    background: var(--onv-surface, #ffffff);
    color: var(--onv-text, #1f2430);
    border-radius: var(--onv-radius, 5px);
    padding: 14px 16px;
    box-shadow: var(--onv-shadow-lg);
    max-width: 400px;
    width: 90%;
    font-family: system-ui, sans-serif;
}

/* warna border/bg/icon sesuai tipe */
.oalert-box.info {
    border-color: #93c5fd;
    background: #eff6ff;
}

.oalert-box.success {
    border-color: #86efac;
    background: #f0fdf4;
}

.oalert-box.error {
    border-color: #f9b1b1;
    background: #fff1f1;
}

.oalert-box.warning {
    border-color: #facc15;
    background: #fefce8;
}

.oalert-box.question {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

/* icon */
.oalert-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

/* content */
.oalert-content {
    line-height: 1.4;
    flex: 1;
}

.oalert-title {
    font-weight: 700;
    margin: 7px 0px 7px 0px;
    font-size: 15px;
}

.oalert-text {
    font-weight: 600;
    margin: 0 0 6px;
    font-size: 14px;
}

.oalert-subtext {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 14px;
}

/* buttons */
.oalert-buttons {
    display: flex;
    gap: 5px;
    margin-top: 30px;
}

.oalert-btn {
    border: none;
    padding: 6px 12px;
    border-radius: var(--onv-radius, 5px);
    font-size: 14px;
    cursor: pointer;
}

.oalert-btn-primary {
    background: #2563eb;
    color: white;
}

.oalert-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.oalert-btn-danger {
    background: #dc2626;
    color: white;
}