/**
 * Portal UX — onay diyalogu, yükleme durumu, form geri bildirimi
 */
.portal-ux-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: portalUxFadeIn 0.18s ease;
}
.portal-ux-overlay[hidden] { display: none !important; }

.portal-ux-dialog {
    width: min(440px, 100%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    padding: 24px;
    animation: portalUxSlideUp 0.22s ease;
}
.portal-ux-dialog.destructive { border-color: #fecaca; }
.portal-ux-dialog h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.portal-ux-dialog p {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 20px;
}
.portal-ux-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.portal-ux-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
}
.portal-ux-btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.portal-ux-btn-cancel:hover { background: #e2e8f0; }
.portal-ux-btn-ok {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #fff;
}
.portal-ux-btn-ok:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30, 58, 138, 0.28); }
.portal-ux-btn-ok.destructive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
.portal-ux-btn-ok.destructive:hover { box-shadow: 0 6px 18px rgba(239, 68, 68, 0.32); }

.portal-ux-loading {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: portalUxFadeIn 0.15s ease;
}
.portal-ux-loading[hidden] { display: none !important; }
.portal-ux-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    min-width: min(280px, 90vw);
}
.portal-ux-loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.portal-ux-spinner,
.is-loading .portal-btn-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: portalUxSpin 0.75s linear infinite;
    flex-shrink: 0;
}
.is-loading .portal-btn-spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 8px;
}

button.is-loading,
.de-btn.is-loading,
.btn-submit.is-loading,
.btn-ata.is-loading,
.btn-talep.is-loading,
.btn-denetim.is-loading,
.btn-restore.is-loading {
    opacity: 0.82;
    pointer-events: none;
    cursor: wait;
}

@keyframes portalUxSpin { to { transform: rotate(360deg); } }
@keyframes portalUxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes portalUxSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
