/*
 * 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.
 */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-secondary);
}

.main-app {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateZ(0);

  .root {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .root-page {
      flex: 1;
      display: flex;
      width: 100%;
      overflow: hidden;

      &::-webkit-scrollbar-track {
        border-left: none;
      }

      .page-content {
        padding-bottom: 60px; /* Space for floaters */
        flex: 1;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
      }
    }
  }
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.global-layover {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);

  &.visible {
    display: block;
  }
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.hidden-scrollbar {
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  &::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
  }
}

@media(max-width: 799px) {
  .desktop-only {
    display: none !important;
  }
}

@media(min-width: 800px) {
  .mobile-only {
    display: none !important;
  }
}
