/**
 * Enhanced UI Components Styles
 * Compact header with dropdown menu and compact footer
 * Matches existing page designs
 */

/* ================================
   ENHANCED HEADER STYLES
   ================================ */

.enhanced-app-header {
  background: linear-gradient(135deg, rgba(0, 48, 87, 0.98) 0%, rgba(0, 35, 65, 0.98) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.1) inset !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  color: white !important;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  height: 50px; /* Reduced from 80px for better proportions */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.header-title-section {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 0.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.title-stars {
  background: linear-gradient(135deg, #ffffff 0%, rgba(56, 189, 248, 0.95) 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 0.85em;
}

.title-subtitle {
  font-size: 0.75em;
  font-weight: 500;
  opacity: 1;
  color: #ffffff;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.user-badge:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-badge svg {
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.staff-name {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  min-width: 50px !important;
}

.theme-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  line-height: 1;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn svg {
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.2));
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-btn:hover svg {
  transform: rotate(-15deg);
}

.enhanced-logout-btn {
  background: rgba(220, 53, 69, 0.2);
  color: #ff8a9b;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(220, 53, 69, 0.3);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  line-height: 1;
}

.enhanced-logout-btn:hover {
  background: rgba(220, 53, 69, 0.3);
  color: #ffb3c1;
  border-color: rgba(220, 53, 69, 0.5);
  transform: scale(1.05);
}

/* ================================
   HORIZONTAL NAVIGATION STYLES
   ================================ */

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  max-width: 800px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-link[data-page].active,
.nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: white !important;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link-admin {
  background: rgba(255, 193, 7, 0.15);
  border-color: transparent;
  color: rgba(255, 235, 135, 1) !important;
}

.nav-link-admin:hover {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.3);
  color: white !important;
}

.nav-link-admin.active {
  background: rgba(255, 193, 7, 0.3);
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

/* ================================
   DROPDOWN MENU STYLES
   ================================ */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: linear-gradient(135deg, rgba(74, 85, 224, 0.9), rgba(58, 69, 208, 0.9));
  color: white !important;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(74, 85, 224, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropbtn:hover {
  background: linear-gradient(135deg, rgba(58, 69, 208, 1), rgba(74, 85, 224, 1));
  box-shadow: 0 4px 16px rgba(74, 85, 224, 0.4);
  transform: translateY(-2px);
}

.dropbtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 85, 224, 0.3);
}

.menu-icon {
  flex-shrink: 0;
}

.menu-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa) !important;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
              0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: dropdown-slide-in 0.2s ease-out;
}

@keyframes dropdown-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 12px 20px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 4px 0;
}

.dropdown-item {
  color: rgba(0, 0, 0, 0.85);
  padding: 14px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(74, 85, 224, 0.15), transparent);
  transition: width 0.3s ease;
}

.dropdown-item:hover::before,
.dropdown-item:focus::before {
  width: 100%;
}

.item-icon {
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 1;
  stroke: rgba(0, 0, 0, 0.6);
}

.item-text {
  flex: 1;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(to right, rgba(74, 85, 224, 0.08), transparent);
  color: #4a55e0;
  transform: translateX(4px);
}

.dropdown-item:hover .item-icon,
.dropdown-item:focus .item-icon {
  stroke: #4a55e0;
  transform: scale(1.1);
}

/* Legacy support for old links */
.dropdown-content a,
.dropdown-content button {
  color: rgba(0, 0, 0, 0.85);
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-content a:last-child,
.dropdown-content button:last-child {
  border-bottom: none;
}

.dropdown-content a:hover,
.dropdown-content a:focus,
.dropdown-content button:hover,
.dropdown-content button:focus {
  background: rgba(74, 85, 224, 0.12);
  color: #4a55e0;
  transform: translateX(4px);
}

.dropdown:hover .dropdown-content,
.dropdown-content:focus-within {
  display: block;
}

/* Active page styling */
.dropdown-item.active,
.dropdown-item[aria-current="page"],
.dropdown-content a.active,
.dropdown-content a[aria-current="page"] {
  background: linear-gradient(to right, rgba(74, 85, 224, 0.15), rgba(74, 85, 224, 0.05));
  color: #4a55e0;
  font-weight: 600;
  border-left: 3px solid #4a55e0;
  padding-left: 17px;
}

.dropdown-item.active .item-icon,
.dropdown-item[aria-current="page"] .item-icon {
  stroke: #4a55e0;
}

.dropdown-item.active::after,
.dropdown-item[aria-current="page"]::after,
.dropdown-content a.active::after,
.dropdown-content a[aria-current="page"]::after {
  content: '✓';
  position: absolute;
  right: 20px;
  font-weight: 700;
  color: #4a55e0;
  font-size: 1rem;
  z-index: 1;
}

.dropdown-content a.active:hover,
.dropdown-content a.active:focus,
.dropdown-content a[aria-current="page"]:hover,
.dropdown-content a[aria-current="page"]:focus {
  background: rgba(74, 85, 224, 0.2);
  color: #3a45d0;
}

/* Admin item special styling */
.dropdown-item-admin {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(74, 85, 224, 0.03);
}

.dropdown-item-admin:hover {
  background: linear-gradient(to right, rgba(74, 85, 224, 0.12), rgba(74, 85, 224, 0.05));
}

.badge {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.5);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .dropdown-content {
    min-width: 240px;
    right: -10px;
  }
  
  .menu-text {
    display: none;
  }
  
  .dropbtn {
    padding: 10px 14px;
  }
}

/* ================================
   BREADCRUMB NAVIGATION
   ================================ */

.breadcrumb-nav {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.125rem;
  font-weight: 300;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.breadcrumb-item a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item.active {
  color: white;
  font-weight: 600;
}

/* ================================
   COMPACT FOOTER STYLES
   ================================ */

.footer {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 48px !important;
  padding: 22px !important;
  background: linear-gradient(135deg, rgba(0, 48, 87, 0.98) 0%, rgba(0, 35, 65, 0.98) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 2px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.85em !important;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 -1px 0 rgba(255, 255, 255, 0.1) inset !important;
  border-radius: 0 !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 250px;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 380px;
}

.footer-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.8rem !important;
  user-select: none;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  min-width: 200px;
}

.footer-crest {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-text {
  color: white;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.footer-credits {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.footer-links-title {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-right: 8px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* .footer-link styles removed - using enhanced-ui-styles-2026.css */

.logout-footer-btn {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.25), rgba(220, 53, 69, 0.15));
  color: #ff8a9b !important;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220, 53, 69, 0.4);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.logout-footer-btn:hover {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.35), rgba(220, 53, 69, 0.25));
  color: #ffb3c1 !important;
  border-color: rgba(220, 53, 69, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.version-badge {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(74, 144, 226, 0.15));
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

.version-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.performance-indicator {
  background: linear-gradient(135deg, rgba(74, 224, 92, 0.25), rgba(74, 224, 92, 0.15));
  color: #6aff80 !important;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(74, 224, 92, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(74, 224, 92, 0.2);
  transition: all 0.3s ease;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 2px 6px rgba(74, 224, 92, 0.2);
  }
  50% { 
    box-shadow: 0 2px 12px rgba(74, 224, 92, 0.4);
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
  .header-container {
    padding: 12px 20px;
  }

  .header-title {
    font-size: 1.15rem;
  }
  
  .header-nav {
    gap: 6px;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .nav-link svg {
    width: 12px;
    height: 12px;
  }

  .breadcrumb-nav {
    padding: 0.65rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px 15px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-logo {
    height: 28px;
  }

  .header-title {
    font-size: 1rem;
  }
  
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    max-width: none;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 8px;
    flex: 1;
    justify-content: center;
  }
  
  .nav-link svg {
    width: 16px;
    height: 16px;
  }

  .staff-name {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .dropbtn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .dropdown-content {
    min-width: 240px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .footer-quick-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 8px 10px;
  }

  .header-logo {
    height: 24px;
  }

  .header-title {
    font-size: 0.9rem;
  }
  
  .title-subtitle {
    display: none;
  }

  .staff-name {
    font-size: 0.75rem !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .user-badge {
    padding: 6px 10px;
    min-width: 40px;
    justify-content: center;
    gap: 4px;
  }
  
  .user-badge svg {
    margin: 0;
  }

  .theme-btn,
  .enhanced-logout-btn {
    padding: 8px;
    font-size: 1rem;
    min-width: 40px;
    justify-content: center;
  }
  
  .header-nav {
    display: none;
  }
  
  .header-right {
    gap: 8px;
  }

  .dropdown-content {
    min-width: 200px;
    right: -10px;
  }

  .dropdown-content a,
  .dropdown-content button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Responsive for medium screens (tablets, narrow desktop windows) */
@media (max-width: 900px) and (min-width: 481px) {
  .header-container {
    padding: 12px 20px;
  }
  
  .staff-name {
    font-size: 0.85rem !important;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header-nav {
    gap: 4px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 8px;
    min-width: 36px;
    justify-content: center;
  }
  
  .header-right {
    gap: 10px;
  }
}

/* Hide elements when window gets very narrow (console open scenario) */
@media (max-width: 1100px) {
  .staff-name {
    font-size: 0.85rem !important;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1000px) {
  .header-left {
    gap: 10px;
  }
  
  .title-subtitle {
    font-size: 0.75em;
  }
  
  .staff-name {
    max-width: 80px;
  }
  
  .user-badge {
    padding: 6px 12px;
  }
}

/* Hide staff name when console is open (narrow viewport) */
@media (max-width: 1200px) {
  .header-nav {
    gap: 6px;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
  .enhanced-app-header,
  .breadcrumb-nav,
  .enhanced-app-footer {
    display: none !important;
  }
}

/* ================================
   ENHANCED FOOTER STYLES
   ================================ */

.enhanced-app-footer {
  background: linear-gradient(135deg, rgba(0, 48, 87, 0.98) 0%, rgba(0, 35, 65, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 -1px 0 rgba(255, 255, 255, 0.1) inset;
  color: white;
  padding: 30px 0 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.footer-section {
  min-width: 0;
}

/* Branding Section with Crest */
.footer-branding {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-crest {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.footer-branding-text {
  flex: 1;
}

.footer-branding-text h4 {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.footer-description {
  margin: 4px 0 !important;
  font-size: 0.95rem !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.3;
}

.footer-version {
  margin: 8px 0 0 0 !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 500;
}

/* Links Sections */
.footer-links-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0 0 8px 0;
}

/* .footer-links a styles removed - using enhanced-ui-styles-2026.css */

/* Info Section */
.footer-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
}

.footer-info p {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-info a:hover {
  color: white;
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.8rem !important;
  line-height: 1.5;
}

.footer-copyright small {
  display: block;
  font-size: 0.85em;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  
  .footer-branding {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .enhanced-app-footer {
    padding: 25px 0 15px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }
  
  .footer-branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-crest {
    width: 50px;
    height: 50px;
  }
  
  .footer-links-section,
  .footer-info {
    text-align: center;
  }
  
  /* .footer-links a responsive styles removed - using enhanced-ui-styles-2026.css */
}

