/* Allowed Online — Brand-aligned status page theme
 * Colors from allowed.online/src/styles/global.css
 * Selectors verified against Gatus v5.17.0 Vue component templates
 */

/* --- Font (Inter from Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
* { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; }

/* --- Force light mode --- */
html.dark { color-scheme: light; }
* { --tw-bg-opacity: 1; }

/* --- Page background + hero image --- */
html, body, #app, #global,
[class*="bg-gray"] {
  background-color: #ffffff !important;
  color: #111111 !important;
}
body {
  position: relative !important;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 380px;
  background-image: url("/img/hero-bg.avif");
  background-size: cover;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  top: 240px; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 0;
  pointer-events: none;
}

/* --- Page container: undo card-like styling on #global --- */
#global.container {
  position: relative !important;
  z-index: 1 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

/* --- Header glass card (Gatus: div.mb-2 wraps the header) --- */
#global > div.mb-2 {
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(234,236,240,0.8) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
  max-width: 720px !important;
  margin: 2rem auto !important;
  padding: 2rem 2.5rem !important;
}
/* Make logo column wider (side-by-side layout kept) */
#global > div.mb-2 .w-1\/4 {
  width: 40% !important;
}
#global > div.mb-2 .w-3\/4 {
  width: 60% !important;
}

/* --- Logo wrapper: <a> tag with inline style="width:100px" --- */
#global > div.mb-2 .w-1\/4 a,
#global > div.mb-2 .w-1\/4 > a,
#global > div.mb-2 a[style*="width"] {
  width: auto !important;
  min-height: auto !important;
  max-width: none !important;
}

/* --- Logo image (alt="Gatus" in Gatus v5.17.0 source) --- */
img[alt="Gatus"], img.object-scale-down {
  max-width: none !important;
  width: auto !important;
  height: 130px !important;
  animation: none !important;
  opacity: 1 !important;
  border-radius: 0 !important;
}

/* --- Header title (Gatus uses .text-3xl) --- */
.text-3xl, .text-5xl, .text-4xl {
  color: #111111 !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  letter-spacing: -0.03em !important;
  font-family: "Inter", system-ui, sans-serif !important;
}

/* --- Group titles (Gatus: h5.font-mono.text-gray-400.text-xl) --- */
h5.text-xl, h5.font-mono {
  color: #111111 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  font-size: 1.05rem !important;
}

/* --- Hide group collapse arrow (span.endpoint-group-arrow) --- */
span.endpoint-group-arrow { display: none !important; }

/* --- Endpoint group header bar --- */
.endpoint-group {
  background-color: #ffffff !important;
  border-color: #eaecf0 !important;
}

/* --- Endpoint row styling --- */
.endpoint {
  background-color: #ffffff !important;
  border-color: #eaecf0 !important;
}
.endpoint:hover {
  background-color: #f9fafb !important;
}

/* --- Endpoint names (router-link.font-bold) --- */
a.font-bold {
  color: #111111 !important;
  font-weight: 500 !important;
}
a.font-bold:hover {
  color: #30838F !important;
}
/* Hostname after pipe */
span.text-gray-500.font-light {
  color: #5f6980 !important;
}

/* --- All text forced light --- */
[class*="text-gray"] { color: #5f6980 !important; }
/* --- All borders forced light --- */
[class*="border-gray"], [class*="divide-gray"] > * + * {
  border-color: #eaecf0 !important;
}

/* --- Status bars (Gatus: .status-over-time.flex.flex-row) --- */
.status-over-time {
  border-radius: 10px !important;
  overflow: hidden !important;
  height: 28px !important;
  background: #f0f3f7 !important;
}
.status-over-time > span {
  border-radius: 5px !important;
  min-height: 28px !important;
  opacity: 1 !important;
  transition: transform 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.status-over-time > span::after {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.status-over-time > span:hover {
  transform: scaleY(1.15) !important;
}
.status-over-time > span:not(:first-child) {
  margin-left: 2px !important;
}

/* --- Healthy = brand teal (Gatus uses .bg-success, NOT .bg-green-*) --- */
.bg-success { background-color: #47bbaf !important; }
.bg-green-400, .bg-green-500 { background-color: #47bbaf !important; }
.bg-green-600 { background-color: #3da99a !important; }
.bg-green-200 { background-color: #b2e4dc !important; }
/* Empty/pending segments */
.bg-gray-200, span.status.rounded.border-dashed {
  background-color: #eaecf0 !important;
  border-color: #d1d5db !important;
}

/* --- Unhealthy = brand pink --- */
.bg-red-400, .bg-red-500 { background-color: #e55598 !important; }
.bg-red-600 { background-color: #d4478d !important; }

/* --- Operational checkmark (Gatus: span.text-green-600 > CheckCircleIcon SVG) --- */
.text-green-600 { color: #47bbaf !important; }
.text-red-600 { color: #e55598 !important; }

/* --- Operational label — injected conditionally by customize.js --- */
/* CSS styling for the JS-injected pill (not ::after, to avoid lying during outages) */
.operational-pill {
  font-size: 0.7rem;
  color: #30838F;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(48,131,143,0.08);
  padding: 10px 12px;
  border-radius: 20px;
  margin-top: 0;
  display: inline-block;
}

/* --- Timestamps --- */
.status-time-ago, .text-xs { color: #5f6980 !important; font-size: 0.7rem !important; }

/* --- Hide dark mode toggle --- */
button svg[class*="h-6"] { display: none !important; }
#global > div:last-child > button { display: none !important; }

/* --- Hide GitHub social link --- */
a[href*="github.com/TwiN/gatus"],
a[href*="github.com/TwiN/gatus"] svg { display: none !important; }

/* --- Hide pagination and settings/refresh widget --- */
/* Pagination nav (scoped to Gatus's aria-labeled nav) */
nav[aria-label="Pagination"] { display: none !important; }
/* Remove bottom padding from #global */
#global.pb-12, #global.pb-5 { padding-bottom: 0 !important; }

/* --- Links --- */
a { color: #30838F !important; text-decoration: none !important; }
a:hover { color: #47bbaf !important; }

/* --- Hide results until customize.js reorders/collapses --- */
#results { opacity: 0; transition: opacity 0.3s ease; }
#results.customized { opacity: 1; }
#results { position: relative !important; z-index: 1 !important; }

/* --- Smooth page entrance --- */
#global { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Intro text (injected by customize.js) --- */
.gatus-intro {
  color: #5f6980 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin-top: 0.75rem !important;
  font-weight: 400 !important;
}

/* --- Footer (injected inside #global by customize.js) --- */
#gatus-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  background: transparent !important;
  margin-top: 2rem;
}
#gatus-footer .footer-logo {
  display: block !important;
  height: 60px; width: auto;
  margin: 0 auto 16px auto !important;
  border-radius: 0 !important;
  max-width: none !important;
}
#gatus-footer .footer-copy {
  font-size: 13px; line-height: 1.6;
  color: #5f6980;
}
#gatus-footer .footer-copy a {
  color: #30838F !important; text-decoration: none !important;
}
#gatus-footer .footer-copy a:hover { color: #47bbaf !important; }
#gatus-footer .swiss-flag {
  display: inline-block !important;
  width: 24px; height: 24px;
  margin-top: 12px;
  border-radius: 0 !important;
  max-width: none !important;
}
