/* =====================================================
   Modals & Custom Dialogs
===================================================== */

/* ═══════════════════════════════════════════════════════════════
   CUSTOM DIALOG SYSTEM
═══════════════════════════════════════════════════════════════ */
.pp-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .15s ease;
}

.pp-dialog-overlay.show {
    display: flex;
}

.pp-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), var(--shadow-lg);
    padding: 28px 28px 24px;
    min-width: 360px;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: popIn .2s cubic-bezier(.34, 1.56, .64, 1);
}

.pp-dialog-alert {
    max-width: 420px;
}

.pp-dialog-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
}

.pp-dialog-icon[style*="#0055ff"],
.pp-dialog-icon[style*="#2563eb"] {
    background: rgba(37, 99, 235, .1);
}

.pp-dialog-icon[style*="#f59e0b"] {
    background: rgba(245, 158, 11, .1);
}

.pp-dialog-icon[style*="#e11d48"] {
    background: rgba(225, 29, 72, .1);
}

.pp-dialog-icon[style*="#22c55e"] {
    background: rgba(34, 197, 94, .1);
}

.pp-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pp-dialog-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
}

.pp-dialog-message {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
}

.pp-dialog-input {
    margin-top: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-2);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.pp-dialog-input:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.pp-dialog-fields {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.pp-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pp-dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 4px;
}

.pp-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .15s;
    outline: none;
}

.pp-btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, .3);
}

.pp-btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.pp-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    box-shadow: 0 0 0 1px var(--border);
}

.pp-btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text);
}

.pp-btn-danger {
    background: #e11d48;
    color: white;
}

.pp-btn-danger:hover {
    background: #be123c;
    transform: translateY(-1px);
}
