/**
 * eMitraTool.online — Modern Ambient Canvas & Dot-Grid Wave System
 * File: css/ambient-canvas.css
 */

:root {
    --dot-color: rgba(15, 23, 42, 0.06);
    --canvas-opacity: 0.14;
}

[data-theme="dark"],
.dark {
    --dot-color: rgba(255, 255, 255, 0.07);
    --canvas-opacity: 0.28;
}

/* Ambient Canvas Background (Full Screen Behind UI) */
#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: var(--canvas-opacity);
    transition: opacity 0.4s ease;
}

/* Radial Dot-Grid Pattern Overlay with Edge Masking */
.ambient-dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 85%);
    transition: background-image 0.3s ease;
}

/* Ensure foreground content stacks gracefully above the ambient canvas & grid */
.wrap, header, main, footer, .modal-overlay, #universalPdfModalOverlay {
    position: relative;
    z-index: 2;
}
