/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.text-muted a {
  color: #9db7d8!important;
}

body {
  padding-top: 80px;
  background: #10151d;
  color: #f4f7fb;
}

header {
  background: #171d26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 56px;
  padding: 34px 24px;
}

.footer {
  background: #080b10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
}

h2 + .text-muted {
  position: relative;
  top: -12px;
  margin-bottom: 6px;
}

a, a:hover, a:active, a:visited {
  color: #57a8ff;
}

table th {
  vertical-align: middle;
}

table td {
  vertical-align: top;
}

.lead {
  font-weight: normal!important;
}

.lead b {
  font-weight: bolder!important;
}

h1 a, h1 a:hover, h1 a:active, h1 a:visited {
  color: white;
  text-decoration: none;
}

.navbar.bg-dark {
  background: rgba(9, 13, 19, 0.96)!important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  font-weight: 700;
}

.hero-kicker {
  color: #b7c8dc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.table-responsive {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  overflow-x: auto;
  overflow-y: hidden;
}

.table-responsive > .table {
  margin-bottom: 0;
}

.table-dark {
  --bs-table-bg: #171d26;
  --bs-table-striped-bg: #1c2430;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.table-dark th {
  background: #202a38;
  color: #f4f7fb;
}

.ai-interpretation {
  background: #171d26;
  color: #f4f7fb;
}

.ai-interpretation p:last-child {
  margin-bottom: 0;
}

.ai-interpretation .badge {
  line-height: 1.35;
  max-width: 100%;
  text-align: left;
  white-space: normal;
}

.interpretation-title {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.info-tooltip {
  display: inline-flex;
  position: relative;
}

.info-tooltip-button {
  align-items: center;
  background: #27364a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #d7e6f7;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.75rem;
  height: 20px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 20px;
}

.info-tooltip-text {
  background: #080b10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  bottom: calc(100% + 8px);
  color: #f4f7fb;
  font-size: 0.82rem;
  font-weight: 400;
  left: 50%;
  line-height: 1.35;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translateX(-50%);
  visibility: hidden;
  width: 260px;
  z-index: 10;
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus-within .info-tooltip-text {
  opacity: 1;
  visibility: visible;
}

.badge.bg-secondary {
  background-color: #27364a!important;
  color: #d7e6f7;
}

.text-info {
  color: #57a8ff!important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.18);
}

.marker {
  background-color: #1f66c2;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
}

#map .mapboxgl-popup-content {
  color: black;
}

.live {
	background: black;
	border-radius: 50%;
	margin: 10px;
	height: 17px;
	width: 17px;

	box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	transform: scale(1);
	animation: pulse 2s infinite;
}

.live.green {
  background: rgb(51, 217, 145);
  box-shadow: 0 0 0 0 rgb(51, 217, 145);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(51, 217, 178, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(51, 217, 178, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(51, 217, 178, 0);
  }
}

#mentions {
  margin-top: 40px;
  margin-bottom: 50px;
}

#mentions img {
  max-width: 125px;
  max-height: 60px;
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  opacity: 0.82;
  margin: 10px;
  margin-left: 15px;
  margin-right: 15px;
}

.border-black {
  border-color: black!important;
}

.btn-success {
  background-color: #1f66c2!important;
  border-color: #1f66c2!important;
}

.btn-success:hover {
  background-color: #18529d!important;
  border-color: #18529d!important;
}

@media (max-width: 767.98px) {
  body {
    padding-top: 68px;
  }

  header {
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
    padding: 34px 18px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .info-tooltip-text {
    bottom: auto;
    left: 16px;
    position: fixed;
    right: 16px;
    top: 88px;
    transform: none;
    width: auto;
  }

}
