﻿/* Full-page container with tint - updated to use nx-theme.css variables */
/* Using  to override Blazor CSS isolation scoped styles */

.nx-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-dim-bg);
    z-index: 2000 ;
    padding: var(--nx-space);
}

/* Centered panel holding the dialog content */
.nx-dialog-panel {
    position: relative;
    width: 100%;
    max-width: 720px ;
    background: var(--nx-primary-bg);
    border-radius: var(--nx-border-radius);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.25);
    overflow: hidden ;
    display: flex ;
    flex-direction: column ;
    border: var(--nx-border-width) solid var(--nx-border-color);
    font-family: var(--nx-font);
    color: var(--nx-primary-fg);
}

/* Header */
.nx-dialog-header {
    padding: var(--nx-space-small) var(--nx-space);
    font-weight: 600;
    border-bottom: var(--nx-border-width) solid var(--nx-border-color);
    background: var(--nx-secondary-bg);
    color: var(--nx-primary-fg);
}

.nx-dialog-header-titlewrap {
    display: flex;
    align-items: center;
    gap: var(--nx-space-small);
}

.nx-dialog-header-title {
    color: inherit;
}

/* Close button (same style intent as nx-pagelayout-closebutton) */
.nx-dialog-closebutton {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.nx-dialog-closebutton:hover {
    color: var(--nx-negative-fg);
}

.nx-dialog-closeicon {
    width: 1em;
    height: 1em;
}

/* Body / content */
.nx-dialog-body {
    padding: var(--nx-space);
    max-height: 70vh;
    overflow: auto;
    background: var(--nx-primary-bg);
}

.nx-dialog-controlbox {
    padding: var(--nx-space-small);
    justify-content: right;
    width: auto;
    border-top: var(--nx-border-width) solid var(--nx-border-color);
    background: var(--nx-primary-bg);
}

/* ── Fill appearance — full screen with 2× spacing from edges ── */
.nx-dialog-fill {
    padding: calc(var(--nx-space) * 2);
}

    .nx-dialog-fill .nx-dialog-panel {
        max-width: none;
        width: 100%;
        height: 100%;
    }

    .nx-dialog-fill .nx-dialog-body {
        max-height: none;
        flex: 1 1 auto;
        overflow: auto;
    }
