/* Overlay Backdrop Layout */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity 0.2s ease;
}

/* Modal Structural Card Layout */
.dialog-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-muted);
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: dialogScaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Utilities classes */
.hidden {
    display: none !important;
}

/* Header Elements & Notification badging layouts */
.dialog-header {
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.dialog-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

#dialogTitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* Text area */
.dialog-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
}

#dialogMessage {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Action Control Strip Framework */
.dialog-footer {
    padding: 1rem 1.5rem;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-muted);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-dialog {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.1s;
}

.btn-dialog:active {
    transform: scale(0.98);
}

.btn-dialog-cancel {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-dialog-cancel:hover {
    background-color: var(--bg);
    color: var(--text);
}

.btn-dialog-confirm {
    color: var(--bg-dark);
}

.btn-dialog-confirm:hover {
    opacity: 0.9;
}

/* Context Variant Visual Color Badges mapping */
.type-info { background-color: rgba(100, 150, 250, 0.1); color: var(--info); }
.type-success { background-color: rgba(100, 200, 100, 0.1); color: var(--success); }
.type-warning { background-color: rgba(250, 200, 50, 0.1); color: var(--warning); }
.type-danger { background-color: rgba(250, 100, 100, 0.1); color: var(--danger); }

.bg-info { background-color: var(--info); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }