/* Welcome.css - Modern, látványos welcome oldal stílusok */

/* ===== GLOBAL RESET ===== */
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: transparent;
  backdrop-filter: blur(20px);
  border-bottom: none;
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #ffd700 !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #ffd700 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link.active {
  color: #ffd700 !important;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
}

.dropdown-item {
  color: #333;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.navbar-nav .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-nav .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-nav .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-nav .btn-primary {
  background: var(--gradient-primary-button);
  border: none;
}

.navbar-nav .btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.navbar-collapse {
  z-index: 1031;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 80px 0 0 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.badge-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.hero-actions {
  animation: fadeInUp 1s ease-out 0.6s both;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  height: 500px;
  animation: fadeInRight 1s ease-out 0.8s both;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .hero-visual {
    position: relative;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}

.main-dashboard {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 400px;
  color: #333;
  z-index: 3;
  position: relative;
  transition: transform 0.3s ease;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #059669;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #059669;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.metric-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric {
  flex: 1;
  text-align: center;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2563eb;
}

.metric-label {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.25rem;
}

.chart-container {
  height: 120px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== DASHBOARD COMPONENTS ===== */
.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.filter-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

.filter-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid;
  position: relative;
  z-index: 1;
}

.metric-card.incoming {
  border-left-color: #f97316;
}

.metric-card.outgoing {
  border-left-color: #10b981;
}

.metric-card.balance {
  border-left-color: #f97316;
}

.metric-card.profit {
  border-left-color: #3b82f6;
}

.metric-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  flex-shrink: 0;
}

.metric-card.incoming .metric-icon {
  background: #f97316;
}

.metric-card.outgoing .metric-icon {
  background: #10b981;
}

.metric-card.balance .metric-icon {
  background: #f97316;
}

.metric-card.profit .metric-icon {
  background: #3b82f6;
}

.metric-content {
  flex: 1;
  min-width: 0;
}

.metric-content .metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.metric-content .metric-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.metric-content .metric-subtitle {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.2;
}

.charts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.chart-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}

.chart-card h6 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* ===== CATEGORY CHART OVERLAY ===== */
.category-chart-overlay {
  position: absolute;
  bottom: 20px;
  right: -190px;
  z-index: 1;
}

.category-chart-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  text-align: center;
  width: 330px;
  backdrop-filter: blur(3px);
  transition: transform 0.3s ease;
  filter: blur(1px);
  opacity: 0.8;
}

@media (max-width: 991px) {
  .category-chart-card {
    filter: none;
    opacity: 1;
    backdrop-filter: none;
  }
}

.chart-header h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.chart-container-overlay {
  height: 225px;
  position: relative;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .category-chart-overlay {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .category-chart-card {
    width: 100%;
    max-width: 300px;
  }

  .chart-container-overlay {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .category-chart-card {
    padding: 0.75rem;
  }

  .chart-container-overlay {
    height: 180px;
  }

  .chart-header h6 {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .category-chart-card {
    padding: 0.5rem;
  }

  .chart-container-overlay {
    height: 160px;
  }

  .chart-header h6 {
    font-size: 0.75rem;
  }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #059669;
}

.benefit-item i {
  font-size: 0.8rem;
}

/* ===== DEMO SECTION ===== */
.demo-section {
  padding: 5rem 0;
  background: white;
}

.demo-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.demo-content p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.demo-steps {
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.demo-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-dashboard {
  background: #1e293b;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  color: white;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.demo-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #10b981;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.demo-content-area {
  background: #334155;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.upload-area {
  border: 2px dashed #64748b;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.upload-area i {
  font-size: 2rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.upload-area p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.processing-animation {
  margin-top: 1.5rem;
}

.processing-bar {
  height: 4px;
  background: #475569;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.processing-fill {
  height: 100%;
  background: var(--gradient-processing);
  width: 0%;
  animation: processing 3s ease-in-out infinite;
}

.processing-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.processing-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.processing-steps .step.active {
  opacity: 1;
  color: #10b981;
}

.processing-steps .step i {
  font-size: 1rem;
}

/* ===== ANALYTICS SHOWCASE SECTION ===== */
.analytics-showcase-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.analytics-showcase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.analytics-row {
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.analytics-row:last-child {
  margin-bottom: 0;
}

.analytics-content {
  padding: 2rem;
}

.analytics-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: white;
}

.analytics-badge.business {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}

.analytics-badge.subscription {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.5);
}

.analytics-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.analytics-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.analytics-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
  width: 20px;
  color: #ffd700;
  font-size: 1.1rem;
}

.analytics-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.chart-card-large {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 500px;
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.chart-card-large h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  text-align: center;
}

.chart-container-large {
  height: 200px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Animation classes */
.analytics-row {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.analytics-row.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.cta-feature i {
  color: #ffd700;
}

.cta-actions {
  margin-bottom: 1.5rem;
}

.cta-note {
  opacity: 0.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes processing {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .analytics-content h3 {
    font-size: 1.5rem;
  }

  .analytics-content p {
    font-size: 1rem;
  }

  .chart-card-large {
    max-width: 100%;
  }

  .analytics-row {
    margin-bottom: 3rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    height: 400px;
    margin-top: 2rem;
  }

  .main-dashboard {
    position: relative;
    transform: none;
    width: 100%;
    margin-top: 2rem;
    max-width: 100%;
    padding: 1rem;
    z-index: 1;
    margin-bottom: 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .charts-section {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Hero section mobile fixes */
  .hero-section {
    padding: 100px 0 40px 0;
    min-height: auto;
    position: relative;
    z-index: 1;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    padding-top: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 2;
  }

  /* Dashboard mobile fixes */
  .dashboard-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .filter-section {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .metric-card {
    padding: 1rem;
    position: relative;
    z-index: 1;
  }

  .metric-content .metric-value {
    font-size: 1.1rem;
  }

  .metric-content .metric-label {
    font-size: 0.8rem;
  }

  .metric-content .metric-subtitle {
    font-size: 0.7rem;
  }

  /* Ensure proper stacking context */
  .hero-section .row {
    position: relative;
    z-index: 1;
  }

  .hero-section .col-lg-6 {
    position: relative;
    z-index: 1;
  }

  .hero-visual {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }

  .badge-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 20px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-item {
    flex: 1;
    min-width: 70px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Navbar responsive */
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .navbar-nav .btn {
    margin: 0.5rem 0;
    width: 100%;
    justify-content: center;
  }

  /* Dashboard mobile fixes */
  .main-dashboard {
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    overflow: hidden;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .metric-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .metric-content .metric-value {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .metric-content .metric-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .metric-content .metric-subtitle {
    font-size: 0.8rem;
  }

  .charts-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
  }

  .chart-card {
    padding: 1rem;
    width: 100%;
    overflow: hidden;
  }

  .chart-card h6 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .chart-container {
    height: 100px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }

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

  /* Ensure charts are responsive */
  .chart-container {
    position: relative;
    width: 100%;
    height: 120px;
  }

  .chart-container canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Category Distribution specific fixes */
  .chart-container canvas[id='categoryChart'] {
    height: 100px !important;
    max-height: 100px !important;
  }

  /* Adjust chart container height for different chart types */
  .chart-card .chart-container {
    height: auto;
    min-height: 120px;
    padding-bottom: 1rem;
  }

  .chart-card .chart-container canvas[id='spendingChart'] {
    height: 80px !important;
    max-height: 80px !important;
  }

  /* Hero visual mobile fixes */
  .hero-visual {
    height: auto;
    margin-top: 1rem;
    padding: 0 1rem;
    width: 100%;
    overflow: hidden;
  }

  /* Additional chart responsive fixes */
  .chart-card-large {
    width: 100%;
    overflow: hidden;
    padding: 1rem;
  }

  .chart-container-large {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

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

  /* Fix any chart legend overflow */
  .chart-card .chart-container {
    padding: 0.5rem;
  }

  /* Ensure dashboard doesn't overflow */
  .main-dashboard {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    margin: 1rem auto;
    padding: 1rem;
  }

  /* Additional mobile chart fixes */
  @media (max-width: 576px) {
    .chart-container {
      width: 100% !important;
      max-width: 100% !important;
      overflow: hidden !important;
      padding: 0.5rem !important;
    }

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

    .chart-card {
      width: 100% !important;
      max-width: 100% !important;
      overflow: hidden !important;
      padding: 0.75rem !important;
    }

    .charts-section {
      width: 100% !important;
      max-width: 100% !important;
      overflow: hidden !important;
    }

    /* Force chart legend to wrap properly */
    .chart-container canvas {
      max-height: 80px !important;
    }

    /* Category Distribution legend mobile fixes */
    .chart-card .chart-container {
      position: relative;
    }

    .chart-card .chart-container canvas {
      margin-bottom: 0.5rem;
    }

    /* Custom legend styling for mobile */
    .chart-card .chart-container::after {
      content: '';
      display: block;
      height: 0.5rem;
    }

    /* Ensure legend items don't overflow */
    .chart-container canvas {
      max-width: 100% !important;
    }

    /* Additional spacing for chart cards on mobile */
    .chart-card {
      margin-bottom: 1rem;
    }

    /* Fix legend alignment and spacing */
    .chart-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }

  /* Ensure proper spacing */
  .hero-section .container {
    padding: 0 1rem;
  }

  .hero-section .row {
    margin: 0;
  }

  .hero-section .col-lg-6 {
    padding: 0;
  }

  /* Bootstrap grid overrides for mobile */
  .hero-section .row > [class*='col-'] {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  /* Force single column layout on mobile */
  .hero-section .row {
    flex-direction: column;
  }

  .hero-section .col-lg-6:first-child {
    order: 1;
    margin-bottom: 2rem;
  }

  .hero-section .col-lg-6:last-child {
    order: 2;
  }

  /* Ensure content doesn't overflow */
  .hero-content,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Fix any remaining z-index issues */
  .hero-section * {
    position: relative;
    z-index: auto;
  }

  .hero-content,
  .hero-actions,
  .hero-stats {
    z-index: 2;
  }

  .main-dashboard {
    z-index: 1;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #1e293b;
  color: white;
  padding: 2rem 0;
  margin-top: 0;
}

.footer h6 {
  color: #f8fafc;
  font-weight: 600;
}

.footer p {
  color: #94a3b8;
  margin-bottom: 0;
}

.footer small {
  color: #64748b;
}
