/*
 * 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.
 */
@import "plugins.bundle";
@import "style.bundle";
@import "keenicons";
@import "custom";
@import "select2-bootstrap5";
@import "select2-custom";

/* Modal styles */
.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1050 !important;
}

/* Ensure the modal doesn't affect the entire page */
body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Fix for modal backdrop */
.modal-backdrop.show {
  opacity: 0.5;
}

/* User menu dropdown styles */
[data-controller="user-menu"] {
  position: relative;
}

[data-controller="user-menu"] .menu-sub-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 105;
  box-shadow: 0 0 50px 0 rgba(82, 63, 105, 0.15);
}

[data-controller="user-menu"] .menu-sub-dropdown.show {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar image styles */
.symbol img {
  object-fit: cover;
  border-radius: 50%;
}

.symbol.symbol-circle img {
  border-radius: 50%;
}