/* ISYDDHI — Blazor forms in CadmaxWasmHost; JS fallback modal if WASM is not ready. */

.isyddhi-js-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.isyddhi-js-modal {
    width: min(480px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: rgba(18, 20, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: #e2e6f0;
    font-size: 13px;
}

.isyddhi-js-modal-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.isyddhi-js-modal-body {
    padding: 12px;
}

.isyddhi-js-modal-body p {
    margin: 0;
    font-size: 12px;
    color: #8892a4;
    line-height: 1.45;
}

.isyddhi-js-modal-body label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 10px;
    color: #8892a4;
}

.isyddhi-js-modal-body input,
.isyddhi-js-modal-body select {
    width: 100%;
    min-width: 0;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #000;
    color: #e2e6f0;
    outline: none;
    color-scheme: dark;
}

.isyddhi-js-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.isyddhi-js-modal-footer button {
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e6f0;
}

.isyddhi-js-modal-footer button.primary {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.45);
    color: #00e5ff;
    font-weight: 600;
}
