/* Tab Styling - Minimal and elegant */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  transition: var(--transition-standard);
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.nav-tabs .nav-link:hover {
  color: var(--text-dark);
  background-color: var(--background-muted);
  border: none;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border: none;
  font-weight: 600;
}

.nav-tabs .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  animation: fadeIn 0.2s ease;
}

/* Mobile Navbar Component - Glassmorphism */
.mobile-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.12);
  z-index: 1600; /* above cards, below dropdown menus */
  justify-content: space-around;
  padding: var(--spacing-sm) 0;
  border-top: 1px solid var(--glass-border);
}

/* Show mobile navbar on mobile devices */
@media (max-width: 767.98px) {
  .mobile-navbar {
    display: flex !important;
  }
}

/* Mobile navbar buttons */
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  transition: var(--transition-standard);
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  width: 25%;
}

/* Icon styling */
.mobile-nav-icon {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  transition: var(--transition-standard);
}

/* Active button styling - Glassmorphism */
.mobile-nav-btn.active {
  color: var(--primary-color);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-light);
}

/* Special styling for donate button */
.mobile-nav-btn.btn-donate {
  color: var(--primary-color);
}

/* Tap effect */
.mobile-nav-btn:active {
  transform: scale(0.95);
}

/* Mobile tabs styling */
.mobile-tabs {
  width: 100%;
}

/* Accessibility improvements */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.1);
}

@media (min-width: 768px) {
  /* Mobile navbar should be hidden on desktop */
  .mobile-navbar {
    display: none;
  }
}

@media (max-width: 768px) {
  #desktop-tabs-wrapper { display: none !important; }
  #mobile-tabs-wrapper { display: block !important; }
  #mobile-tabs-wrapper .btn-group, #mobile-tabs-wrapper .btn-nav {
    width: 100% !important;
    min-width: 0;
    font-size: 0.85rem;
    padding: 0.5rem 0.2rem;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  #mobile-tabs-wrapper .btn-nav {
    flex: 1 1 0;
    margin: 0;
    border: none;
    border-radius: 0 !important;
    background: var(--background-white) !important;
    color: var(--primary-color) !important;
    font-weight: 500;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #mobile-tabs-wrapper .btn-nav:active, #mobile-tabs-wrapper .btn-nav.active {
    background: var(--primary-color) !important;
    color: #fff !important;
  }
}

@media (min-width: 769px) {
  #desktop-tabs-wrapper { display: block !important; }
  #mobile-tabs-wrapper { display: none !important; }
}

