.atmos-sidebar-button {
  display: block;
  padding: 10px 15px;
  background-color: #801817;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* Hover only for clickable buttons */
a.atmos-sidebar-button:hover {
  background-color: #9a2423;
  transform: scale(1.03);
}

/* Remove OJS default spacing between custom sidebar blocks */
.pkp_structure_sidebar .block_custom {
  margin: 0 10px 10px 10px !important;
  padding: 0 !important;
}

/* Remove spacing inside custom blocks */
.block_custom .content {
  margin: 0 !important;
  padding: 0 !important;
}

.block_custom .content p {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== TOOLS ===== */

.atmos-tools-title {
  cursor: default;
  margin-bottom: 12px;
}

.atmos-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.atmos-tool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 8px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.atmos-tool-item img {
  display: block;
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.atmos-tool-item:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* 
.pull-md-right .navbar-form {
  margin-top: 8px;
  margin-bottom: 8px;
} */

/* =========================================================
   ATMOS HEADER / NAVBAR
   ========================================================= */

@media (min-width: 768px) {

  /*
   * The second container-fluid inside the header contains
   * the logo + main navigation.
   */
  #headerNavigationContainer > .container-fluid:last-child {
    display: flex;
    align-items: center;
  }

  /* Logo section */
  #headerNavigationContainer .navbar-header {
    float: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  #headerNavigationContainer .site-name {
    margin: 0;
    padding: 0;
  }

  /* Make the logo larger */
  #headerNavigationContainer .navbar-brand-logo {
    height: auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
  }

  #headerNavigationContainer .navbar-brand-logo img {
    height: 55px;
    width: auto;
    max-height: none !important;
    display: block;
  }

  /*
   * Navigation area:
   * vertically centers menu + search form
   */
  #headerNavigationContainer #nav-menu {
    float: none;
    flex: 1;
    display: flex !important;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Main menu */
  #headerNavigationContainer #main-navigation {
    float: none;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  #headerNavigationContainer #main-navigation > li {
    float: none;
  }

  #headerNavigationContainer #main-navigation > li > a {
    display: flex;
    align-items: center;
  }

  /* Push search box to the far right */
  #headerNavigationContainer .pull-md-right {
    margin-left: auto;
  }

  #headerNavigationContainer .navbar-form {
    margin-top: 0;
    margin-bottom: 0;
  }
}
