@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  --green: #19ae66;
  --yellow: #d1bc00;
  --orange: #d19700;
  --red: #c40e0e;
  --blue: #046df6;
  --yellow-text: #948500;
  --orange-text: #8f6700;
  --border: #e0e0e0;
  --modal-overlay: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  line-height: 1.2;
  font-family: 'Inter', 'Helvetica Neue', Helvitica, Arial, Sans-Serif;
}

.container {
  width: 90%;
  max-width: 850px;
  margin: 100px auto;
}

.page-header {
  display: flex;
  align-items: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 500;
  margin: 1rem 0 1rem 2.5rem;
}

.spacer {
  flex: 1 1 auto;
}

@media screen and (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: center;
  }

  .page-header h1 {
    margin-left: 0;
  }
}

.quiq-section {
  margin-bottom: 64px;
}

.block-status {
  border-radius: 4px;
  border: 2px solid;
}

.block-status .status-banner {
  padding: calc(1rem - 2px);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.block-status .status-description {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.block-status .status-description:empty {
  display: none;
}

.block-status .status-description p {
  margin-top: 0;
}

.block-status .status-description p:last-of-type {
  margin-bottom: 0;
}

.block-status .status-description .status-update:not(:last-child) {
  margin-bottom: 1rem;
}

.block-status .status-description .status-timestamp {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.67);
  margin-top: 0.25rem;
}

.block-status[data-status='ok'] {
  border-color: var(--green);
}

.block-status[data-status='degraded'] {
  border-color: var(--yellow);
}

.block-status[data-status='partial'] {
  border-color: var(--orange);
}

.block-status[data-status='outage'] {
  border-color: var(--red);
}

.block-status[data-status='ok'] .status-banner {
  background-color: var(--green);
}

.block-status[data-status='degraded'] .status-banner {
  background-color: var(--yellow);
}

.block-status[data-status='partial'] .status-banner {
  background-color: var(--orange);
}

.block-status[data-status='outage'] .status-banner {
  background-color: var(--red);
}

.status-table-box {
  border: 1px solid var(--border);
  padding: 8px 48px 8px 16px;
  margin-top: -1px;
  background-repeat: no-repeat;
  background-position: center right 16px;
}

.status-table-box .service {
  display: flex;
  flex-direction: column;
}

.status-table-box .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.status-table-box .status {
  font-size: 14px;
}

.status-table-box[data-status='ok'] .status {
  color: rgba(0, 0, 0, 0.7);
}

.status-table-box[data-status='degraded'] .status {
  color: var(--yellow-text);
}

.status-table-box[data-status='partial'] .status {
  color: var(--orange-text);
}

.status-table-box[data-status='outage'] .status {
  color: var(--red);
}

.status-table-box[data-status='ok'] {
  background-image: url('./assets/check-circle.svg');
}

.status-table-box[data-status='degraded'] {
  background-image: url('./assets/minus-square.svg');
  background-position: center right 17px;
}

.status-table-box[data-status='partial'] {
  background-image: url('./assets/exclamation-triangle.svg');
  background-position: center right 13px;
}

.status-table-box[data-status='outage'] {
  background-image: url('./assets/times-circle.svg');
}

.status-tables {
  display: flex;
  justify-content: space-between;
}

.status-table {
  flex: 1 1 auto;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .status-tables {
    flex-direction: column;
    align-items: stretch;
  }
}

.status-table h2 {
  font-size: 20px;
  padding-left: 16px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
}

.tables-spacer {
  flex: 0 0 auto;
  width: 1rem;
  height: 2rem;
}

button,
input[type='submit'],
#subscribe-form .mktoForm .mktoButtonWrap.mktoCleanGray .mktoButton {
  height: 40px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 200px;
  border: none;
  cursor: pointer;
}

button.button-blue,
input[type='submit'].button-blue,
#subscribe-form .mktoForm .mktoButtonWrap.mktoCleanGray .mktoButton {
  background-color: var(--blue);
  color: #fff;
}

button.button-red,
input[type='submit'].button-red {
  background-color: var(--red);
  color: #fff;
}

#report-outage-callout {
  border: solid var(--border);
  border-width: 1px 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#report-outage-callout h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

a.log4j-link {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem;
  text-decoration: none;
  text-align: center;
}

#past-incidents-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

#past-incidents-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4.date-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.no-incidents-message {
  color: rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  margin: 2rem 0 3rem;
}

.incident {
  margin-bottom: 2rem;
}

.incident h5.incident-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.incident[data-status='degraded'] h5.incident-title {
  color: var(--yellow-text);
}

.incident[data-status='partial'] h5.incident-title {
  color: var(--orange-text);
}

.incident[data-status='outage'] h5.incident-title {
  color: var(--red);
}

.incident .incident-summary,
.incident.incident-time {
  font-size: 1rem;
  font-weight: 500;
}

.incident .incident-summary,
.incident .incident-summary p {
  margin: 0 0 0.5rem;
}

.incident .incident-time {
  color: rgba(0, 0, 0, 0.67);
}

.modal {
  display: none;
}

.modal.open {
  display: block;
}

.modal .modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--modal-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal .modal-popup {
  background-color: #fff;
  border-radius: 8px;
  position: relative;
  padding: 2rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.modal .modal-popup .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  min-width: 1.75rem;
  font-size: 2.5rem;
  color: rgba(0, 0, 0, 0.75);
  background-color: #fff;
}

.modal-form {
  max-width: 100%;
}

.modal-form h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.modal-form p {
  font-size: 0.875rem;
  font-weight: 500;
}

#subscribe-form,
#outage-form {
  width: 415px;
}

a.back-to-dashboard {
  font-size: 1.25rem;
  color: var(--blue);
  text-decoration: none;
}

.log4j-message h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.log4j-message .date-header {
  margin: 2rem 0 0;
}

#outage-form iframe {
  border-width: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.input-group label,
label.mktoLabel {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.input-group input,
.input-group textarea,
.input-group select,
.mktoForm input.mktoField[type='text'],
.mktoForm input.mktoField[type='email'] {
  font-size: 0.875rem;
  /* !important is to override marketo */
  width: 100% !important;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  transition: 0.15s ease-in-out border-color;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--blue);
}

.input-group .input-hint {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

.outage-form input[type='submit'] {
  margin-top: 0.5rem;
}

/* Marketo overrides */
.mktoForm {
  width: 100% !important;
  margin-bottom: 0;
}

.mktoForm .mktoFieldWrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.mktoForm .mktoFormCol.mktoFieldDescriptor,
.mktoForm div.mktoFieldWrap {
  float: none;
}

.mktoLabel {
  width: auto !important;
}

.mktoAsterix,
.mktoGutter,
.mktoOffset {
  display: none !important;
}

#subscribe-form .mktoButtonRow,
#subscribe-form .mktoButtonRow .mktoButtonWrap {
  display: flex;
  justify-content: stretch;
  flex: 1 1 auto;
}

.mktoButtonRow .mktoButtonWrap {
  margin-left: 0 !important;
}

#subscribe-form .mktoForm .mktoButtonWrap.mktoCleanGray .mktoButton {
  width: 100%;
  background-image: none;
  font: inherit;
  text-shadow: none;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

#subscribe-form .mktoForm .mktoButtonWrap.mktoCleanGray .mktoButton:hover {
  color: #fff;
}
/* End Marketo overrides */
