/* ==========================================================================
   🌐 eInsightsAI Global Stylesheet
   Author: Tracy Hassman
   Version: 2025.11
   ========================================================================== */

/* ==========================================================================
   🎨 Base Layout
   ========================================================================== */



html, body {
  height: 100%;
  background-color: #f8f9fa;
  color: #212529;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  color: #084298;
  text-decoration: underline;
}

.card {
  border-radius: 1rem;
  border: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ==========================================================================
   🧱 Header & Navigation
   ========================================================================== */

.header-bar {
  background-color: #ffffff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1030;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
  color: #0d6efd !important;
}

.nav-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   🏷️ Tier Badge
   ========================================================================== */

.tier-badge {
  height: 34px;
  vertical-align: middle;
  margin-left: 10px;
  border-radius: 6px;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.25));
}

/* ==========================================================================
   📊 Dashboard Metrics Cards
   ========================================================================== */

.metrics-card {
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metrics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.metrics-card h6 {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #6c757d;
}

.metrics-card .small {
  font-size: 0.875rem;
}

.metrics-card strong {
  color: #0d6efd;
  font-weight: 600;
}

/* ==========================================================================
   💬 Flash Messages
   ========================================================================== */

.alert {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  border-left: 4px solid #198754;
}

.alert-info {
  border-left: 4px solid #0dcaf0;
}

.alert-warning {
  border-left: 4px solid #ffc107;
}

.alert-danger {
  border-left: 4px solid #dc3545;
}

/* ==========================================================================
   💻 File Upload / Table Sections
   ========================================================================== */

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

.btn {
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

/* ==========================================================================
   🖼️ Banner (Report Headers, Branding)
   ========================================================================== */

.banner {
  width: 200px;
  max-height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 0 20px 20px;
}

/* ==========================================================================
   ⚙️ Utility Helpers
   ========================================================================== */

.text-muted-small {
  font-size: 0.85rem;
  color: #6c757d;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   🌟 Animations & Transitions
   ========================================================================== */

.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   🌟 /* === Upsell Banner Animation === 
   ====================================================== */
.upsell-banner {
  animation: slideFadeIn 0.5s ease-out forwards;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  80% {
    opacity: 1;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Exit Animation === */
.upsell-exit {
  animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* === Optional Bounce Glow === */
.upsell-banner .premium-pulse {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 rgba(0,0,0,0.1); }
  50%  { box-shadow: 0 0 12px rgba(2,159,173,0.35); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0.1); }
}

.analyze-hint {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0 1rem 0.75rem;
  }