@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap");

:root {
  --czb-blue: #00a3e0;
  --czb-dark-blue: #3e484c;
  --light-gray-border: #ccc;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Barlow", sans-serif;
}

header {
  background-repeat: no-repeat;
  width: 100%;
  background-color: black;
  background-position: 20% 10%;
  color: #ffffff;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  text-align: center;
}

h1,
h2 {
  font-weight: 700;
  font-style: normal;
}

p {
  font-weight: 400;
  font-style: normal;
  padding-bottom: 10px;
}

a {
  color: var(--czb-blue);
  text-decoration: underline;
}

a:hover {
  color: var(--czb-dark-blue);
}

a:visited {
  color: var(--czb-blue);
}

/* navbar */
.navbar-custom {
  height: 75px;
  background-color: white;
  border-bottom: 1px solid var(--light-gray-border);
}

.navbar-nav-custom {
  width: 100%;
}

.navbar-title {
  line-height: 1;
  font-size: 1.2rem;
  color: var(--czb-dark-blue);
  text-decoration: none;
}

.navbar-title:visited {
  color: var(--czb-dark-blue);
}

.navbar-nav-items a {
  padding-left: 15px;
  padding-right: 15px;
  border-right: 1px solid var(--light-gray-border);
  color: black;
  font-weight: 700;
  text-decoration: none;
}

.navbar-nav-items a:last-child {
  border-right: none;
}

.navbar-nav-login-logout {
  padding-right: 20px;
  margin-left: auto;
}

.logout-button {
  appearance: none !important;
  background: none !important;
  border: none !important;
  color: var(--czb-blue) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  font: inherit;
  text-decoration: underline !important;
  outline: none;
  box-shadow: none !important;
}

.logout-button:hover {
  color: var(--czb-dark-blue);
}

.logout-button:focus {
  outline: none;
}

/* page layout */
.narrow-container {
  padding-top: 40px;
  padding-bottom: 20px;
  margin-left: 20%;
  margin-right: 20%;
  max-width: 1000px;
  align-content: center;
}

.wide-container {
  padding-top: 40px;
  padding-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.link-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.link-card:hover {
  color: var(--czb-blue);
  border: 1px solid var(--czb-blue);
}

.footer {
  background-color: #000000;
  color: white;
  min-height: 100px;
  margin-top: auto;
}

.footer-logo {
  max-height: 100px;
  margin: 0.5%;
}

/* forms */
.asteriskField {
  /* don't show the asterisks that crispy-forms renders for required fields */
  display: none;
}

.textarea {
  resize: vertical;
  /* reduce the height of the textarea (the default is too high)  */
  height: 72px;
}

.czb-button,
.btn.czb-button {
  --bs-btn-color: white;
  --bs-btn-bg: var(--czb-blue);
  --bs-btn-border-color: var(--czb-blue);
  --bs-btn-hover-color: white;
  --bs-btn-hover-bg: var(--czb-blue);
  --bs-btn-hover-border-color: var(--czb-blue);
  --bs-btn-active-color: white;
  --bs-btn-active-bg: var(--czb-blue);
  --bs-btn-active-border-color: var(--czb-blue);
  color: white !important;
  border-color: var(--czb-blue) !important;
  background-color: var(--czb-blue) !important;
}

.czb-button:hover,
.btn.czb-button:hover {
  color: white !important;
  background-color: var(--czb-blue) !important;
  border-color: var(--czb-blue) !important;
  opacity: 0.8;
}

.czb-button:visited,
.btn.czb-button:visited {
  /* keep same color */
  color: white !important;
  border-color: var(--czb-blue) !important;
  background-color: var(--czb-blue) !important;
}

/* dashboard tables */
.nowrap {
  white-space: nowrap;
}

.dashboard-table {
  font-size: 14px;
}

.dashboard-table td {
  vertical-align: middle;
}

.scrollable-column {
  height: 150px;
  width: 400px;
  overflow-y: scroll; /* Enables vertical scrolling with vertical scrollbar always visible */
  display: block;
  word-wrap: break-word; /* Ensures long words do not stretch the container */
}

.scrollable-short-column {
  height: 150px;
  width: 200px;
  overflow-y: scroll; /* Enables vertical scrolling with vertical scrollbar always visible */
  display: block;
  word-wrap: break-word; /* Ensures long words do not stretch the container */
}

/* Required for scrollbar to appear on Webkit (e.g. Mac OS X) browsers */
.scrollable-column::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

/* Required for scrollbar to appear on Webkit (e.g. Mac OS X) browsers */
.scrollable-column::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Dashboard table, buttons section - Export, Import , etc*/

.buttons-container {
  display: flex;
  justify-content: space-between;
}

/* Crispy form */
.padded-fieldset legend {
  margin-top: 2rem;
}

.testing_banner {
  background-color: #ffffff;
  color: #e00000;
  text-align: center;
  font-weight: bold;
}

/* makes a spinning animation */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* copy tooltip */
.copy-tooltip {
  position: absolute;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: none;
  margin-bottom: 4px;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
