/* z_solid_spinner.css (or wherever your spinner CSS lives) */

/* 1) Use brand ring for BOTH our custom .loader and all dcc.Loading spinners */
.loader,
.dash-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent-color);  /* or var(--secondary-color) */
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

/* 2) Hide the built-in rectangles/dots in default/circle/cube/etc */
.dash-spinner > * {
    display: none !important;
}

/* 3) Shared keyframes */
@keyframes rotation {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* AG-Grid custom loader - matches your existing spinner style */
.ag-custom-loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent-color, #00509e);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

/* Reuse your existing rotation keyframes */
@keyframes rotation {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: Style the overlay background */
.ag-overlay-loading-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}