/* Infinitys Status — static health page.
   Self-contained replacement for the Bootstrap/Font Awesome styling
   used by Status.WebMVC, so no external libraries are required. */

* {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0 0 60px 0; /* margin bottom by footer height */
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: #0366d6;
  text-decoration: none;
}

/* Header */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
  margin-bottom: 1rem;
  padding: .5rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  color: #212529;
  font-size: 1.25rem;
  white-space: normal;
  word-break: break-all;
}

.last-updated {
  color: #6c757d;
  font-size: .85rem;
}

/* Status table */
.table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: .75rem;
  border-top: 1px solid #dee2e6;
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
}

.center {
  text-align: center;
  vertical-align: middle;
}

/* Status icons */
.status-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
}

.status-ok {
  fill: #28a745;
}

.status-ko {
  fill: #dc3545;
}

.status-pending {
  fill: #adb5bd;
}

/* Double-click-to-copy feedback on the name cell */
.name {
  cursor: copy;
}

.name.copied::after {
  content: 'Copied!';
  margin-left: .5rem;
  padding: .1rem .4rem;
  border-radius: .25rem;
  background-color: #28a745;
  color: #fff;
  font-size: .75rem;
  animation: copied-fade 1.2s ease;
}

@keyframes copied-fade {
  from { opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  to   { opacity: 0; }
}

.loading,
.error {
  padding: 1rem 0;
}

.error {
  color: #dc3545;
}

/* Sticky footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  border-top: 1px solid #e5e5e5;
  color: #6c757d;
}
