@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0;
  text-align: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
}

.back-button {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 2px solid #e5e5e5;
  color: #666666;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-button:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: white;
  transform: translateY(-50%) translateX(-4px);
}

.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0;
}

.status-main {
  padding-top: 140px;
  padding-bottom: 3rem;
  min-height: 100vh;
}

.status-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.status-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 10px;
  color: #1a1a1a;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666666;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-indicator.loading {
  background: #f59e0b;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

.connection-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.connection-label {
  font-weight: 600;
  color: #666666;
  min-width: 120px;
}

.connection-value {
  color: #1a1a1a;
  word-break: break-all;
}

@media (max-width: 768px) {
  .header {
    padding: 2rem 1rem;
  }

  .back-button {
    left: 1rem;
    width: 44px;
    height: 44px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .status-main {
    padding-top: 120px;
  }

  .status-container {
    padding: 0 1rem;
  }

  .status-section {
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .connection-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .connection-label {
    min-width: unset;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0a0a0a;
    color: #f5f5f5;
  }

  .header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: #2a2a2a;
  }

  .logo {
    color: #f5f5f5;
  }

  .back-button {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #999999;
  }

  .back-button:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
    color: #0a0a0a;
  }

  .status-section {
    background: #1a1a1a;
    border-color: #2a2a2a;
  }

  .section-title {
    color: #f5f5f5;
  }

  .info-card {
    background: #0a0a0a;
    border-color: #2a2a2a;
  }

  .info-card:hover {
    background: #0f0f0f;
    border-color: #3a3a3a;
  }

  .info-icon {
    background: #1a1a1a;
    color: #f5f5f5;
  }

  .info-label {
    color: #999999;
  }

  .info-value {
    color: #f5f5f5;
  }

  .connection-item {
    background: #0a0a0a;
    border-color: #2a2a2a;
  }

  .connection-label {
    color: #999999;
  }

  .connection-value {
    color: #f5f5f5;
  }
}
