/* ==========================================================================
   UVA Financial Services - Modern Fintech Design System
   Synergy: Tailwind CSS & Bootstrap 5
   ========================================================================== */

:root {
  --primary-glow: rgba(59, 130, 246, 0.35);
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --gold-glow: rgba(245, 158, 11, 0.35);
  --bg-dark: #070b13;
  --card-bg: rgba(13, 21, 38, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
}

/* Base & Smooth Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
  selection-background-color: #2563eb;
  selection-color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070b13;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ==========================================================================
   Financial Market Live Ticker
   ========================================================================== */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(8, 14, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  z-index: 45;
}

.ticker-move {
  display: inline-block;
  animation: tickerMove 36s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Three.js 3D Canvas (Fintech Wave & Currency Matrix)
   ========================================================================== */
#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
}

#hero-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Ambient Radial Gradients */
.hero-ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0) 70%);
  top: -100px;
  right: -50px;
}

.hero-glow-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: 0px;
  left: -100px;
}

/* ==========================================================================
   Glassmorphism Styles
   ========================================================================== */
.glass-nav {
  background: rgba(7, 11, 19, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(7, 11, 19, 0.98) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

.glass-card {
  background: rgba(13, 21, 38, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Featured Event Spotlight Card & Dynamic Date Badges (BIG HERO SHOWCASE)
   ========================================================================== */
.big-event-spotlight {
  background: linear-gradient(135deg, rgba(17, 27, 49, 0.92) 0%, rgba(10, 16, 30, 0.96) 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(20px);
}

.big-event-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #10b981, #3b82f6, #f59e0b);
  background-size: 300% 100%;
  animation: borderShimmer 8s linear infinite;
}

@keyframes borderShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Dynamic Event Status Badges */
.event-badge-upcoming {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4));
  border: 1px solid #10b981;
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.event-badge-live {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(220, 38, 38, 0.5));
  border: 1px solid #ef4444;
  color: #fca5a5;
  animation: pulseLive 2s infinite;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.event-badge-past {
  background: rgba(71, 85, 105, 0.4);
  border: 1px solid #64748b;
  color: #cbd5e1;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.03); }
}

/* Big Event Image Container with Zoom & Gold Frame */
.big-event-img-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.15);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.big-event-img-frame:hover {
  transform: scale(1.02);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 25px 55px -10px rgba(245, 158, 11, 0.3);
}

.big-event-img-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Big Event Countdown Unit Boxes */
.big-countdown-box {
  background: rgba(10, 17, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 12px 18px;
  min-width: 78px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.5);
}

.big-countdown-box .val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
}

.big-countdown-box .unit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 4px;
}

/* Past event overlay style */
.event-past-state {
  filter: grayscale(20%);
}

.event-past-state .big-event-img-frame {
  opacity: 0.85;
}

/* ==========================================================================
   Gradient Typography & Highlights
   ========================================================================== */
.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Interactive Loan EMI Range Sliders
   ========================================================================== */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #1e293b;
  outline: none;
  transition: background 0.2s ease;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
}

.custom-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   Fintech Vector Animation Wrappers
   ========================================================================== */
.lottie-card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
}

@keyframes float-fintech {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes spin-fintech {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float {
  animation: float-fintech 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-fintech 20s linear infinite;
  transform-origin: center;
}

/* ==========================================================================
   Database Applications Manager Table (Modal Styles)
   ========================================================================== */
.db-table-container {
  max-height: 480px;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.db-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.db-table th {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.db-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.db-table tr:hover td {
  background-color: rgba(59, 130, 246, 0.08);
}

/* Status Badges in Database Table */
.status-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================================
   Bootstrap Accordion Custom Overrides
   ========================================================================== */
.accordion-item {
  background-color: rgba(13, 21, 38, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1rem !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.accordion-button {
  background-color: transparent !important;
  color: #f1f5f9 !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: #60a5fa !important;
  background-color: rgba(59, 130, 246, 0.08) !important;
}

.accordion-button::after {
  filter: invert(1) brightness(2);
  transition: transform 0.25s ease;
}

.accordion-body {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
   Bootstrap Modal Custom Overrides
   ========================================================================== */
.modal-content {
  background: #0d1526 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.2) !important;
}

.modal-backdrop.show {
  opacity: 0.85;
  backdrop-filter: blur(8px);
}

/* Floating Badges & Animations */
@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(2deg); }
}

.floating-elem-1 {
  animation: floatSlow 5s ease-in-out infinite alternate;
}

.floating-elem-2 {
  animation: floatSlow 6s ease-in-out infinite alternate-reverse;
}

/* High-tech Grid Pattern */
.tech-grid-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  #hero-canvas-container {
    height: 70vh;
    position: relative;
  }
}
