/* Modern Dashboard Styles - Premium Finance Theme */

/* Global Dashboard Styling */
body {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: 75px; /* Space for ultra-modern footer menu */
}

/* Modern Header Design */
.header-area {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  height: 60px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content .logo-wrapper {
  flex: none;
  display: flex;
  justify-content: flex-start;
}

.header-content .logo-wrapper img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.header-content .logo-wrapper img:hover {
  transform: scale(1.05);
}

/* Hamburger Menu Hover Effects */
.navbar--toggler:hover {
  background: var(--primary-100) !important;
  transform: scale(1.05);
}

.navbar--toggler:hover span {
  background-color: var(--primary-600) !important;
}

/* Modern Menu Toggle Button */
.navbar--toggler {
  background: var(--gray-100);
  border: none;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.navbar--toggler:hover {
  background: var(--primary-100);
  transform: scale(1.05);
}

.navbar--toggler span {
  width: 20px;
  height: 2px;
  background: var(--primary-600);
  border-radius: 1px;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar--toggler span:nth-child(1) {
  width: 16px;
}

.navbar--toggler span:nth-child(3) {
  width: 12px;
}

.navbar--toggler:hover span {
  background: var(--primary-700);
}

/* Header notification/profile area (if needed) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-notification {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.header-notification:hover {
  background: var(--primary-100);
  transform: scale(1.05);
}

.header-notification i {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.header-notification:hover i {
  color: var(--primary-600);
}

/* Hero Slider Modern Styling - Clean Images Only */
.tiny-slider-one-wrapper {
  margin-bottom: 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.single-hero-slide {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  /* Removed overlay - clean images only */
}

/* Modern Card Styling */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.5rem;
}

/* Premium Loan Product Cards - Fixed Icons & Alignment */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card .card {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
  border: 2px solid var(--primary-100);
  margin: 0 auto 0.75rem auto;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-card .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .card::before {
  opacity: 0.1;
}

.feature-card .card i {
  color: var(--primary-600);
  font-size: 2rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
}

/* Icon fallback - if Bootstrap Icons don't load */
.feature-card .card i::before {
  font-family: 'bootstrap-icons', 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
}

.feature-card:hover .card i {
  color: var(--primary-700);
  transform: scale(1.1);
}

.feature-card p {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0.5rem 0 0.25rem 0;
  text-align: center;
  line-height: 1.3;
}

/* Badge alignment fix */
.feature-card .badge {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Icon specific fixes - Bootstrap Icons already loaded in head */
.bi {
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
}

.bi::before {
  display: inline-block;
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

/* Premium Promotional Banners */
.card.bg-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%) !important;
  border: none;
  position: relative;
  overflow: hidden;
}

.card.bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.card.bg-primary .card-body {
  position: relative;
  z-index: 2;
}

.card.bg-primary h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.card.bg-primary .btn-warning {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card.bg-primary .btn-warning:hover {
  background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Cyber Crime Alert Banner */
.card.card-bg-img.bg-overlay {
  background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-700) 100%) !important;
  border: none;
  position: relative;
}

.card.card-bg-img.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: 16px;
}

/* Statistics Section */
.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.customer-count {
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Testimonials Enhancement - Working with Tiny Slider */
.testimonial-slide-three-wrapper {
  margin-top: 1rem;
  position: relative;
}

.testimonial-slide3 {
  width: 100%;
  position: relative;
}

/* Default testimonial slide styling */
.single-testimonial-slide {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-500);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  min-height: 120px;
}

.single-testimonial-slide:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-left-color: var(--accent-500);
}

.single-testimonial-slide .badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  color: white !important;
}

.single-testimonial-slide .badge i {
  color: white !important;
  font-size: 0.75rem;
}

.single-testimonial-slide h6 {
  color: var(--text) !important;
  line-height: 1.6;
  margin-bottom: 1rem !important;
  font-size: 0.95rem;
  display: block !important;
  font-weight: 500;
}

.single-testimonial-slide span:last-child {
  color: var(--text-light) !important;
  font-weight: 600;
  font-size: 0.875rem;
  display: block !important;
}

/* Tiny Slider specific overrides */
.testimonial-slide3.tns-slider {
  transition: all 0.3s ease;
}

.testimonial-slide3.tns-slider .tns-item {
  width: 100% !important;
  padding: 0 !important;
}

/* Navigation dots styling */
.testimonial-slide-three-wrapper .tns-nav {
  text-align: center;
  margin-top: 1rem;
}

.testimonial-slide-three-wrapper .tns-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  margin: 0 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-slide-three-wrapper .tns-nav button.tns-nav-active {
  background: var(--primary-500);
  transform: scale(1.2);
}

/* Mobile testimonial slider */
@media (max-width: 768px) {
  .testimonial-slide-three-wrapper {
    padding: 0;
  }

  .single-testimonial-slide {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .single-testimonial-slide h6 {
    font-size: 0.9rem;
  }
}

/* Ultra Modern Footer Menu - Native Mobile App Style */
.footer-area {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--white);
}

.footer-nav-area {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 0.5px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  height: 65px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.footer-nav {
  height: 65px;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
}

.footer-nav ul {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav ul li {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.footer-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
  min-width: 48px;
  min-height: 48px;
  position: relative;
}

/* Bigger, modern icons */
.footer-nav ul li a i {
  font-size: 26px;
  font-weight: 300;
  color: #8E8E93;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  line-height: 1;
}

/* Small, light text */
.footer-nav ul li a span {
  font-size: 10px;
  font-weight: 400;
  color: #8E8E93;
  text-transform: none;
  letter-spacing: -0.1px;
  transition: all 0.2s ease;
  line-height: 1;
  margin-top: 1px;
}

/* Active state - Blue rounded background with 100% opacity */
.footer-nav ul li.active a {
  background: rgba(12, 140, 233, 1.0);
  border-radius: 12px;
  transform: scale(1.02);
}

.footer-nav ul li.active a i {
  color: white;
  font-weight: 500;
}

.footer-nav ul li.active a span {
  color: white;
  font-weight: 500;
}

/* Hover effects - subtle */
.footer-nav ul li a:hover {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  transform: scale(1.05);
}

.footer-nav ul li a:hover i {
  color: var(--primary-500);
}

.footer-nav ul li a:hover span {
  color: var(--primary-500);
}

/* Active item hover - Darker blue background */
.footer-nav ul li.active a:hover {
  background: rgba(0, 109, 214, 1.0);
  border-radius: 12px;
  transform: scale(1.05);
}

.footer-nav ul li.active a:hover i,
.footer-nav ul li.active a:hover span {
  color: white;
}

/* Override any conflicting styles from old footer CSS */
.footer-nav-area {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border-top: 0.5px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08) !important;
  height: 65px !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}

.footer-nav {
  height: 65px !important;
  background: transparent !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.footer-nav ul {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.footer-nav ul li {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100% !important;
}

/* Ensure ultra-modern styles take precedence */
.footer-nav ul li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  border-radius: 16px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  position: relative !important;
}

.footer-nav ul li a i {
  font-size: 26px !important;
  font-weight: 300 !important;
  color: #8E8E93 !important;
  transition: all 0.2s ease !important;
  margin-bottom: 2px !important;
  line-height: 1 !important;
}

.footer-nav ul li a span {
  font-size: 10px !important;
  font-weight: 400 !important;
  color: #8E8E93 !important;
  text-transform: none !important;
  letter-spacing: -0.1px !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  margin-top: 1px !important;
}

/* Active state overrides - Blue rounded background with 100% opacity */
.footer-nav ul li.active a {
  background: rgba(12, 140, 233, 1.0) !important;
  border-radius: 12px !important;
  transform: scale(1.02) !important;
}

.footer-nav ul li.active a i {
  color: white !important;
  font-weight: 500 !important;
}

.footer-nav ul li.active a span {
  color: white !important;
  font-weight: 500 !important;
}

/* Container Spacing */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  /* Header adjustments */
  .header-area {
    height: 55px;
  }

  .header-content {
    height: 55px;
    padding: 0 0.75rem;
  }

  .header-content .logo-wrapper img {
    height: 28px;
  }

  .navbar--toggler {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
  }

  .navbar--toggler span {
    width: 18px;
  }

  /* Ultra-modern footer adjustments */
  .footer-nav-area {
    height: 60px !important;
  }

  .footer-nav {
    height: 60px !important;
    padding: 0 !important;
  }

  .footer-nav ul li a {
    padding: 6px 10px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .footer-nav ul li a i {
    font-size: 24px !important;
    margin-bottom: 1px !important;
  }

  .footer-nav ul li a span {
    font-size: 9px !important;
    margin-top: 0.5px !important;
  }

  /* Adjust body padding for mobile */
  body {
    padding-bottom: 70px !important;
  }

  /* Content adjustments */
  .card-body {
    padding: 1.25rem;
  }

  .feature-card .card {
    width: 60px;
    height: 60px;
  }

  .feature-card .card i {
    font-size: 1.75rem;
  }

  .single-testimonial-slide {
    padding: 1.25rem;
  }

  /* Section headers */
  .section-header h3 {
    font-size: 1.25rem;
  }

  .section-header p {
    font-size: 0.875rem;
  }

  /* Hero slider */
  .single-hero-slide {
    height: 180px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .feature-card .card {
    width: 55px;
    height: 55px;
  }

  .feature-card .card i {
    font-size: 1.5rem;
  }

  .feature-card p {
    font-size: 0.8rem;
  }

  .single-hero-slide {
    height: 160px;
  }
}

/* Section Headers */
.section-header h3 {
  position: relative;
  display: inline-block;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
  border-radius: 2px;
}

/* Badge Enhancements */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
}

.badge.bg-warning {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%) !important;
  color: white !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%) !important;
  color: white !important;
}

.badge.bg-success {
  background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%) !important;
  color: white !important;
}

/* Hero Welcome Section */
.hero-welcome-section .card {
  position: relative;
  overflow: hidden;
}

.hero-welcome-section .card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Enhanced Button Styles */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.card {
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}
