/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Glass card effect for Node details page */
.glass-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

/* Audit Logs filters - all in one row from 1440px */
@media (min-width: 1440px) {
  .audit-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .audit-filters-grid.admin-tab {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* ===================================== */
/* Dialog (Modal) Animations & Styles */
/* ===================================== */

/* Center dialog and set initial animation state */
dialog {
  margin: auto; /* Centers the dialog */
  padding: 0;
  border: 0;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, overlay 0.2s ease-out allow-discrete, display 0.2s ease-out allow-discrete;
}

/* Dialog open state */
dialog[open] {
  opacity: 1;
  transform: scale(1);
}

/* Starting style for animation (for browsers that support it) */
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Backdrop animations - dark theme only */
dialog::backdrop {
  background-color: rgb(0 0 0 / 0);
  backdrop-filter: blur(0px);
  transition: background-color 0.2s ease-out, backdrop-filter 0.2s ease-out, overlay 0.2s ease-out allow-discrete, display 0.2s ease-out allow-discrete;
}

/* Dark theme backdrop (default) */
dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 0.8);
  backdrop-filter: blur(4px);
}

/* Backdrop starting style */
@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0);
    backdrop-filter: blur(0px);
  }
}
