.app-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.app-dialog-overlay.show {
    display: flex;
    animation: appDialogFadeIn 0.2s ease-out;
}

.app-dialog {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.app-dialog__header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.35rem 1.35rem 0.75rem;
}

.app-dialog__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.app-dialog__icon i,
.app-dialog__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.app-dialog__icon--info { background: #eff6ff; color: #2563eb; }
.app-dialog__icon--success { background: #dcfce7; color: #16a34a; }
.app-dialog__icon--warning { background: #fef3c7; color: #d97706; }
.app-dialog__icon--error { background: #fee2e2; color: #dc2626; }
.app-dialog__icon--danger { background: #fee2e2; color: #dc2626; }
.app-dialog__icon--primary { background: #fff3e0; color: #f59e0b; }

.app-dialog__titles { min-width: 0; flex: 1; }

.app-dialog__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.app-dialog__message {
    margin: 0.45rem 0 0;
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.55;
    white-space: pre-line;
}

.app-dialog__body {
    padding: 0 1.35rem 1rem;
}

.app-dialog__input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.app-dialog__input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.app-dialog__hint {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.app-dialog__error {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
}

.app-dialog__actions {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem 1.35rem 1.25rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.app-dialog__btn {
    min-width: 110px;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.app-dialog__btn--cancel {
    background: #fff;
    color: #475569;
    border-color: #cbd5e1;
}

.app-dialog__btn--cancel:hover {
    background: #f8fafc;
}

.app-dialog__btn--primary {
    background: #4A90E2;
    color: #fff;
}

.app-dialog__btn--primary:hover {
    background: #3a78c4;
}

.app-dialog__btn--danger {
    background: #ef4444;
    color: #fff;
}

.app-dialog__btn--danger:hover {
    background: #dc2626;
}

@keyframes appDialogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
