/* EG Testing — Official Brand Guidelines & Palette */
:root {
  /* Exact Brand Hex Palette from Identity Guide */
  --slate-blue: #1F3B58;
  --slate-blue-dark: #14283c;
  --slate-blue-light: #2c4e73;

  --emerald-green: #2D8C6A;
  --emerald-light: #3ab086;
  --emerald-bg: #e6f4ef;
  --emerald-text: #1b634a;

  --cyan-accent: #00B4DB;
  --cyan-light: #38c8ea;
  --cyan-bg: #e0f7fc;
  --cyan-text: #007a99;

  --neutral-gray: #E2E8F0;
  --off-white: #F8FAFC;
  --card-bg: #FFFFFF;

  --text-dark: #101c28;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #FFFFFF;

  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-card: 0 4px 16px rgba(31, 59, 88, 0.06);
  --shadow-hover: 0 10px 25px rgba(31, 59, 88, 0.12);
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--off-white);
  color: var(--text-body);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Sub-Page Smooth View Transitions */
.view-container-wrap {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
}

.view-slide-animation {
  width: 100%;
  animation: pageFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-slide-animation.ng-enter {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(12px);
}

.view-slide-animation.ng-enter.ng-enter-active {
  opacity: 1;
  transform: translateY(0);
}

.view-slide-animation.ng-leave {
  transition: all 0.18s ease-in;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.view-slide-animation.ng-leave.ng-leave-active {
  opacity: 0;
  transform: translateY(-8px);
}

/* Header & Navbar */
.navbar-eg {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 0;
  box-shadow: 0 2px 10px rgba(31, 59, 88, 0.04);
}

.navbar-brand-eg {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.navbar-logo-eg {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-logo-eg {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .navbar-logo-eg {
    height: 30px;
    max-width: 130px;
  }
  .footer-logo-eg {
    height: 24px;
    max-width: 120px;
  }
}

.brand-text-eg {
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.5px;
}

.brand-text-eg .eg-prefix { color: var(--emerald-green); }
.brand-text-eg .testing-suffix { color: var(--slate-blue); }

.nav-link-eg {
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0.6rem;
  transition: color 0.2s ease;
}

.nav-link-eg:hover, .nav-link-eg.active {
  color: var(--emerald-green) !important;
}

/* Hero Section - Official Slate Blue Palette */
.hero-eg {
  background: linear-gradient(135deg, var(--slate-blue-dark) 0%, var(--slate-blue) 100%);
  color: var(--text-white);
  padding: 5.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-eg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--emerald-green) 0%, var(--cyan-accent) 100%);
}

.hero-eg .software-badge {
  background: rgba(0, 180, 219, 0.15);
  color: var(--cyan-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 180, 219, 0.3);
}

.hero-eg h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-eg p {
  color: #cbd5e1;
  font-size: 1.18rem;
  max-width: 620px;
}

/* Buttons */
.btn-emerald {
  background-color: var(--emerald-green);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 30px;
  padding: 0.65rem 1.75rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(45, 140, 106, 0.3);
}

.btn-emerald:hover {
  background-color: var(--emerald-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 140, 106, 0.45);
}

.btn-cyan {
  background-color: var(--cyan-accent);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 30px;
  padding: 0.65rem 1.75rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 180, 219, 0.3);
}

.btn-cyan:hover {
  background-color: var(--cyan-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 180, 219, 0.45);
}

.btn-navy-outline {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.65rem 1.75rem;
  transition: all 0.2s ease;
}

.btn-navy-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Cards System */
.card-eg {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  height: 100%;
}

.card-eg:hover {
  border-color: var(--emerald-green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-eg h3, .card-eg h4 {
  font-weight: 700;
  color: var(--slate-blue);
}

/* Badges */
.badge-pill-emerald {
  background-color: var(--emerald-bg);
  color: var(--emerald-text);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4em 0.9em;
  border-radius: 20px;
  border: 1px solid rgba(45, 140, 106, 0.2);
}

.badge-pill-cyan {
  background-color: var(--cyan-bg);
  color: var(--cyan-text);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4em 0.9em;
  border-radius: 20px;
  border: 1px solid rgba(0, 180, 219, 0.2);
}

.badge-pill-gray {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4em 0.9em;
  border-radius: 20px;
}

.status-badge-live {
  background: var(--cyan-bg);
  color: var(--cyan-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.7em;
  border-radius: 4px;
}

/* Blog Section Card */
.blog-coming-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
}

/* Section Headings */
.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--slate-blue);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Contact Form Input Styling */
.form-control-eg {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--slate-blue);
}

.form-control-eg:focus {
  border-color: var(--emerald-green);
  box-shadow: 0 0 0 3px rgba(45, 140, 106, 0.15);
}

/* Footer */
.footer-eg {
  background-color: var(--slate-blue-dark);
  color: #94a3b8;
  padding: 2.5rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 5px solid var(--emerald-green);
}

.footer-eg .brand-text-eg .testing-suffix {
  color: var(--card-bg);
}

.footer-eg a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-eg a:hover {
  color: var(--card-bg);
}

/* --- Dark Mode Configuration --- */
@media (prefers-color-scheme: dark) {
  :root {
    --off-white: #0f172a; /* Deep Slate Background */
    --card-bg: #1e293b;   /* Slate Card Background */
    --text-dark: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-light: #334155;
    --border-hover: #475569;

    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.6);

    --slate-blue: #38bdf8;
    --slate-blue-dark: #0f172a;
    
    --cyan-bg: #0c4a6e;
    --cyan-text: #7dd3fc;
    --emerald-bg: #064e3b;
    --emerald-text: #6ee7b7;
  }
  
  /* Bootstrap Overrides for Dark Mode */
  .text-dark { color: var(--text-dark) !important; }
  .bg-light { background-color: var(--off-white) !important; }
  .text-muted { color: var(--text-muted) !important; }
  .text-secondary { color: var(--text-muted) !important; }
  .border-top { border-color: var(--border-light) !important; }
  .border-bottom { border-color: var(--border-light) !important; }
  
  /* Form Inputs in Dark Mode */
  .form-control-eg {
    color: var(--text-body);
    background-color: #0f172a;
  }
  .form-control-eg::placeholder {
    color: #475569;
    opacity: 1;
  }
  .form-control-eg:focus {
    background-color: #1e293b;
    color: var(--text-dark);
  }
  
  /* Admin List Groups */
  .list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-light);
    color: var(--text-body);
  }
  
  /* Navbar */
  .navbar-eg {
    background: rgba(15, 23, 42, 0.95) !important;
  }
  
  /* Badges */
  .badge.bg-secondary {
    background-color: var(--border-light) !important;
    color: var(--text-body);
  }
}
