:root {
  --bg: #0a0e1a;
  --bg-dark: #060913;
  --card: #0f1419;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #8b92a8;
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --blue: #4a9eff;
  --blue-light: #6eb3ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Loading screen styles */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.loading-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.loading-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}

.loading-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  width: 0%;
  animation: loading-progress 2s ease-out forwards;
}

@keyframes loading-progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.main-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero header */
.hero-header {
  background: var(--bg-dark);
  padding: 60px 24px 40px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 72px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(74, 158, 255, 0.3);
}

@media (max-width: 480px) {
  .logo-text {
    margin-top: 25px; /* Titel iets naar onder */
  }

  .hero-header {
    padding-top: 70px; /* Extra ruimte bovenaan */
  }
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  flex-shrink: 0;
  min-width: 140px;
}

.company-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.header-nav {
  display: flex;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Language and webhook buttons in top right */
.lang-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: rgba(74, 158, 255, 0.15);
  border: 1px solid rgba(74, 158, 255, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  color: var(--blue-light);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.lang-btn:hover {
  background: rgba(74, 158, 255, 0.25);
  border-color: var(--blue);
}

.lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}

.lang-panel {
  position: absolute;
  right: 0;
  top: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform-origin: top right;
  transform: translateY(-6px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  min-width: 120px;
  z-index: 1010;
}

.lang-panel[aria-hidden="false"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.vlag-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  font-size: 14px;
  margin-bottom: 4px;
}

.vlag-btn:last-child {
  margin-bottom: 0;
}

.vlag-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.vlag-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.vlag-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 8px;
}

.lang-area {
  position: relative;
  margin-right: 8px;
}

.lang-open-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-open-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.lang-panel-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-around;
}

.vlag-label {
  font-size: 12px;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.open-vlag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  display: inline-block;
}

@media (max-width: 480px) {
  .header-nav {
    display: none;
  }
}

main.container {
  padding-top: 48px;
  padding-bottom: 80px;
  flex: 1;
}

/* Blue notification banner */
.notification-banner {
  background: var(--blue);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.bell-icon {
  flex-shrink: 0;
}

/* Services layout */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
  overflow-x: hidden;
}

.services-horizontal {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 100%;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.service-icon {
  font-size: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Add uptime percentage styling */
.service-uptime {
  font-size: 14px;
  font-weight: 600;
  color: var(--good);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: auto;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.up {
  background: var(--good);
}

.status-dot.down {
  background: var(--bad);
}

.status-dot.unknown {
  background: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* This is a duplicate block. The first .service-header, .service-icon, .service-title above is more detailed.
   Keeping this for now as it exists, but the update was placed relative to the first block.
*/
.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.up {
  background: var(--good);
}

.status-dot.down {
  background: var(--bad);
}

.status-dot.unknown {
  background: var(--text-muted);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.service-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.service-row h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.service-ping {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.badge {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.up {
  background: var(--good-bg);
  color: var(--good);
}

.badge.down {
  background: var(--bad-bg);
  color: var(--bad);
}

.badge.unknown {
  background: rgba(139, 146, 168, 0.1);
  color: var(--text-muted);
}

.splash-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(10, 14, 26, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.splash-content {
  text-align: center;
  color: var(--text);
  width: 80%;
  max-width: 900px;
}

.splash-title {
  font-size: 40px;
  margin: 8px 0 20px 0;
  font-weight: 700;
}

.splash-bar {
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.4);
}

.splash-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a3d62, #1e3a8a);
  transition: width 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.splash-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 14px;
  font-weight: 500;
}

/* Report button (bottom right) */
.bug-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  z-index: 900;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bug-btn:hover {
  color: var(--blue);
  background: rgba(74, 158, 255, 0.1);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Modal styles */
.bug-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.bug-modal[aria-hidden="false"] {
  display: block;
}

.bug-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.bug-modal-content {
  position: absolute;
  right: 24px;
  bottom: 90px;
  width: 420px;
  max-width: calc(100% - 48px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.bug-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.bug-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.bug-modal-content h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
}

.bug-desc {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}

.bug-label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.bug-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
}

.bug-input:focus {
  outline: none;
  border-color: var(--blue);
}

.bug-text {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.bug-text:focus {
  outline: none;
  border-color: var(--blue);
}

.bug-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.bug-submit {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.bug-submit:hover {
  background: var(--blue-light);
}

.bug-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bug-status {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Uptime bars */
.uptime-bars {
  display: flex;
  gap: 3px;
  height: 50px;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  width: 100%;
  overflow: hidden;
}

.uptime-bar {
  flex: 1;
  min-width: 4px;
  max-width: 20px;
  background: var(--good);
  border-radius: 3px 3px 0 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  height: 100%;
}

.uptime-bar.warn {
  background: var(--warn);
}

.uptime-bar.down {
  background: var(--bad);
}

.uptime-bar.unknown {
  background: rgba(139, 146, 168, 0.2);
}

.uptime-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.uptime-bar:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-link {
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--blue);
  background: rgba(74, 158, 255, 0.1);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .uptime-bars {
    gap: 2px;
    height: 40px;
  }

  .uptime-bar {
    min-width: 3px;
    max-width: 12px;
  }

  .loading-title {
    font-size: 32px;
  }

  .loading-subtitle {
    font-size: 14px;
  }

  .logo-text {
    font-size: 32px; /* Updated from 48px */
  }

  .hero-subtitle {
    font-size: 16px; /* Updated from 18px */
  }

  .hero-header {
    padding: 40px 16px 30px 16px;
  }

  .main-container {
    padding: 24px 16px;
  }

  .service-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-header {
    min-width: auto;
  }

  .bug-modal-content {
    left: 10px;
    right: 10px;
    bottom: 40px;
    width: auto;
  }

  .bug-btn {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
  }

  .footer-content {
    gap: 12px;
  }

  .footer-text {
    font-size: 13px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-link {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .bug-btn span {
    display: none;
  }
}
