/* Custom styles for Banco Master Research Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --accent-purple: #7c3aed;
  --accent-red: #dc2626;
  --accent-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Logo Glow Effect */
.logo-glow {
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4));
  transition: all 0.4s ease;
}

.logo-glow:hover {
  filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.7)) drop-shadow(0 0 60px rgba(124, 58, 237, 0.3));
  transform: scale(1.05);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 12px;
  max-height: 80vh;
  overflow-y: auto;
}

.floating-nav::-webkit-scrollbar {
  width: 4px;
}

.floating-nav::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 4px;
}

.nav-item {
  display: block;
  padding: 8px 12px;
  margin: 4px 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--text-primary);
}

.nav-item.active {
  border-left: 3px solid var(--accent-purple);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Sections */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Cards */
.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-blue));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-purple);
}

/* Table Styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table th {
  background: rgba(124, 58, 237, 0.1);
  font-weight: 600;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Collapsible */
.collapsible-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--glass-bg);
  border-radius: 8px;
  margin-top: 16px;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.open {
  max-height: 2000px;
}

/* Alert Boxes */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.1);
  border-left: 4px solid var(--accent-red);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--accent-blue);
}

/* Chart Container Styles */
.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.chart-container canvas {
  max-width: 100%;
  height: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-nav {
    display: none;
  }

  section {
    padding: 40px 0;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Charts responsiveness */
  .chart-container {
    padding: 8px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .chart-container canvas {
    width: 100% !important;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  /* Reduce gap between chart cards on mobile */
  .grid.gap-8 {
    gap: 1rem;
  }

  /* Adjust chart card padding on mobile */
  .chart-container.p-6 {
    padding: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}