/* Cloudflare-inspired Emerald Theme & Cyber Network Styles */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-border: rgba(16, 185, 129, 0.2);
}

body {
  font-family: var(--font-sans);
  background-color: #06090e;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 45%),
    linear-gradient(180deg, #06090e 0%, #080d17 100%);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle Network Grid Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Glassmorphism Card with Emerald Edge Highlight */
.cf-card {
  background: rgba(12, 19, 32, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.7),
    0 0 30px -10px rgba(16, 185, 129, 0.12),
    inset 0 1px 0 rgba(16, 185, 129, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cf-card:hover {
  border-color: rgba(16, 185, 129, 0.32);
}

/* Cloudflare-style Input */
.cf-input {
  background: rgba(8, 14, 24, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.8);
  transition: all 0.2s ease-in-out;
}

.cf-input:hover {
  border-color: rgba(71, 85, 105, 1);
}

.cf-input:focus {
  border-color: #10b981;
  background: rgba(10, 18, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  outline: none;
}

/* Cloudflare Solid Emerald Button */
.cf-btn-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 1px solid #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.cf-btn-primary:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.cf-btn-primary:active {
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 9, 14, 0.8);
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

/* Tab indicator */
.nav-tab.active {
  border-color: #10b981;
  color: #34d399;
}

/* Flash animation for new messages */
@keyframes flashRow {
  0% {
    background-color: rgba(16, 185, 129, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

.animate-flash {
  animation: flashRow 2s ease-out;
}
