/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Local Poppins Bold font for WingletIS branding */
@font-face {
    font-family: 'Poppins-Bold';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Root CSS variables for WingletIS theme */
:root {
    --wingletis-primary: #1F3B5C;
    --wingletis-secondary: #41B6E6;
    --wingletis-tertiary: #2A4A6B;
    --wingletis-font-family: 'Poppins', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    --wingletis-brand-font: 'Poppins-Bold', 'Poppins', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Override MudBlazor default font family */
.mud-typography,
.mud-typography-default,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6,
.mud-typography-subtitle1,
.mud-typography-subtitle2,
.mud-typography-body1,
.mud-typography-body2,
.mud-typography-caption,
.mud-typography-overline,
.mud-button,
.mud-input,
.mud-select,
.mud-textfield,
.mud-nav-link,
.mud-menu-item,
.mud-list-item {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom heading styles with Poppins Bold */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4 {
    font-weight: 700 !important; /* Bold */
    font-family: var(--wingletis-font-family) !important;
}

.mud-typography-h5,
.mud-typography-h6 {
    font-weight: 600 !important; /* Semi-bold */
    font-family: var(--wingletis-font-family) !important;
}

/* Button styling with Poppins */
.mud-button {
    font-weight: 600 !important; /* Semi-bold */
    font-family: var(--wingletis-font-family) !important;
    text-transform: uppercase;
    letter-spacing: 0.02857em;
}

/* Navigation styling */
.mud-nav-link {
    font-family: var(--wingletis-font-family) !important;
    font-weight: 500 !important; /* Medium */
}

/* App bar styling */
.mud-appbar {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    box-shadow: 0 2px 8px rgba(31, 59, 92, 0.1) !important;
    border-bottom: 1px solid rgba(31, 59, 92, 0.1);
}

/* Dark mode app bar */
.mud-theme-dark .mud-appbar {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A6B 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* App bar title styling */
.mud-appbar .mud-typography-h5 {
    font-family: var(--wingletis-brand-font) !important;
    font-weight: 700 !important; /* Bold for app title */
}

/* App bar icons styling */
.mud-appbar .mud-icon-button {
    color: #1F3B5C !important; /* Navy icons in light mode */
}

.mud-theme-dark .mud-appbar .mud-icon-button {
    color: #FFFFFF !important; /* White icons in dark mode */
}

/* Theme toggle button in app bar */
.mud-appbar .mud-icon-button:hover {
    background-color: rgba(31, 59, 92, 0.1) !important;
}

.mud-theme-dark .mud-appbar .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Aircraft Selector Styling */
.aircraft-selector-button {
    min-width: 180px !important;
    max-width: 250px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    color: #1F3B5C !important;
}

.mud-theme-dark .aircraft-selector-button {
    color: #FFFFFF !important;
}

.aircraft-menu-item {
    min-width: 280px !important;
    padding: 8px 16px !important;
}

.aircraft-menu-item:hover {
    background-color: rgba(31, 59, 92, 0.1) !important;
}

.mud-theme-dark .aircraft-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Custom WingletIS logo styling */
.wingletis-logo {
    font-family: var(--wingletis-brand-font) !important;
    font-weight: 700 !important; /* Bold */
    color: var(--wingletis-primary);
}

.wingletis-logo .winglet-text {
    color: var(--wingletis-primary);
    font-family: var(--wingletis-brand-font) !important;
}

.wingletis-logo .is-text {
    color: var(--wingletis-secondary);
    font-family: var(--wingletis-brand-font) !important;
}

/* Dark mode logo styling */
.mud-theme-dark .wingletis-logo .winglet-text {
    color: #FFFFFF !important; /* White text in dark mode */
}

.mud-theme-dark .wingletis-logo .is-text {
    color: var(--wingletis-secondary) !important; /* Keep blue in dark mode */
}

/* Light mode logo styling (explicit) */
.mud-theme-light .wingletis-logo .winglet-text {
    color: var(--wingletis-primary) !important; /* Navy text in light mode */
}

.mud-theme-light .wingletis-logo .is-text {
    color: var(--wingletis-secondary) !important; /* Blue in light mode */
}

/* Custom primary color overrides */
.mud-theme-primary {
    color: var(--wingletis-primary) !important;
}

.mud-theme-secondary {
    color: var(--wingletis-secondary) !important;
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom card styling */
.mud-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(31, 59, 92, 0.1);
}

/* Custom input styling */
.mud-input-control {
    font-family: var(--wingletis-font-family) !important;
}

.mud-input-control .mud-input {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom table styling */
.mud-table {
    font-family: var(--wingletis-font-family) !important;
}

.mud-table-head .mud-table-cell {
    font-weight: 600 !important; /* Semi-bold for table headers */
    font-family: var(--wingletis-font-family) !important;
}

/* Custom dialog styling */
.mud-dialog .mud-dialog-title {
    font-family: var(--wingletis-font-family) !important;
    font-weight: 600 !important; /* Semi-bold */
}

/* Custom snackbar styling */
.mud-snackbar {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom drawer styling */
.mud-drawer {
    font-family: var(--wingletis-font-family) !important;
}

.mud-drawer .mud-nav-link {
    font-family: var(--wingletis-font-family) !important;
    font-weight: 500 !important; /* Medium */
}

/* Custom menu styling */
.mud-menu .mud-menu-item {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom chip styling */
.mud-chip {
    font-family: var(--wingletis-font-family) !important;
    font-weight: 500 !important; /* Medium */
}

/* Custom badge styling */
.mud-badge {
    font-family: var(--wingletis-font-family) !important;
    font-weight: 600 !important; /* Semi-bold */
}

/* Custom tooltip styling */
.mud-tooltip {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom pagination styling */
.mud-pagination {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom breadcrumbs styling */
.mud-breadcrumbs {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom tabs styling */
.mud-tabs .mud-tab {
    font-family: var(--wingletis-font-family) !important;
    font-weight: 500 !important; /* Medium */
}

/* Custom stepper styling */
.mud-stepper {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom timeline styling */
.mud-timeline {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom alert styling */
.mud-alert {
    font-family: var(--wingletis-font-family) !important;
}

/* Custom progress styling */
.mud-progress-linear,
.mud-progress-circular {
    font-family: var(--wingletis-font-family) !important;
}

/* Responsive styling */
@media (max-width: 960px) {
    .aircraft-selector-button {
        min-width: 140px !important;
        max-width: 180px !important;
    }
    
    .aircraft-menu-item {
        min-width: 240px !important;
    }
}

/* Responsive font sizes */
@media (max-width: 600px) {
    .mud-typography-h1 {
        font-size: 3rem !important;
    }
    
    .mud-typography-h2 {
        font-size: 2.5rem !important;
    }
    
    .mud-typography-h3 {
        font-size: 2rem !important;
    }
    
    .mud-typography-h4 {
        font-size: 1.75rem !important;
    }
}

/* Dark mode specific overrides */
.mud-theme-dark {
    /* Any dark mode specific styling can go here */
}

/* Light mode specific overrides */
.mud-theme-light {
    /* Any light mode specific styling can go here */
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--wingletis-primary);
    border-radius: 4px;
    opacity: 0.3;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.6;
}

/* User Menu Styling */
.user-menu-header {
    background: linear-gradient(135deg, rgba(31, 59, 92, 0.05) 0%, rgba(65, 182, 230, 0.05) 100%);
    border-bottom: 1px solid rgba(31, 59, 92, 0.1);
    margin: -8px -8px 8px -8px;
    padding: 16px;
}

.mud-theme-dark .user-menu-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(65, 182, 230, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-section {
    padding: 8px 0;
}

.user-menu-section-title {
    padding: 8px 16px 4px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.user-menu-logout-form {
    margin: 0;
    padding: 0;
}

.user-menu-logout-form .mud-menu-item {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure logout form doesn't interfere with menu styling */
.user-menu-logout-form form {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Avatar styling in user menu */
.user-menu-avatar {
    background: linear-gradient(135deg, var(--wingletis-primary) 0%, var(--wingletis-secondary) 100%);
    color: white;
    font-weight: 600;
}

/* FIX: UserMenu width and overflow issues */
.user-menu-container {
    z-index: 9999 !important;
}

.user-menu-container .mud-popover {
    z-index: 9999 !important;
    min-width: 260px !important;
    max-width: 280px !important;
    overflow: hidden !important;
}

.user-menu-container .mud-popover-content {
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.user-menu-container .mud-menu {
    width: 100% !important;
    overflow: hidden !important;
}

/* Fix menu items to prevent horizontal overflow */
.user-menu-container .mud-menu-item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
}

/* Fix menu item text to prevent overflow */
.user-menu-container .mud-menu-item .mud-list-item-text {
    flex: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Ensure icons don't cause width issues */
.user-menu-container .mud-menu-item .mud-list-item-icon {
    min-width: 24px !important;
    width: 24px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

/* Fix header content overflow */
.user-menu-header {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.user-menu-header .d-flex {
    width: 100% !important;
    overflow: hidden !important;
}

.user-menu-header .mud-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
}

/* Fix admin section title */
.user-menu-section-title {
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* Remove any horizontal scrollbar */
.user-menu-container ::-webkit-scrollbar:horizontal {
    display: none !important;
}

.user-menu-container {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

/* Additional MudBlazor menu overrides to prevent scrollbar */
.mud-popover.user-menu-container {
    overflow: hidden !important;
}

.mud-popover.user-menu-container .mud-paper {
    overflow: hidden !important;
    width: 260px !important;
    max-width: 260px !important;
}

.mud-popover.user-menu-container .mud-list {
    overflow: hidden !important;
    padding: 0 !important;
}

/* Ensure all child elements fit within bounds */
.mud-popover.user-menu-container * {
    box-sizing: border-box !important;
}

.user-menu-button {
    z-index: 1001 !important;
    position: relative !important;
}

/* =============================================================================
   HERO BANNER STYLES - NEW COMPACT & FULL VERSIONS
   ============================================================================= */

/* Full Hero Banner - for non-authenticated users */
.hero-banner-full {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    margin: -1rem -1rem 1.5rem -1rem; /* Extend to edges */
    padding: 1.5rem 1rem; /* More compact padding */
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(31, 59, 92, 0.1);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(31, 59, 92, 0.1);
}

/* Add subtle pattern overlay for full banner */
.hero-banner-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(65, 182, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(31, 59, 92, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Compact Hero Banner - for logged-in users */
.hero-banner-compact {
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.6) 0%, rgba(187, 222, 251, 0.4) 100%);
    border-bottom: 1px solid rgba(31, 59, 92, 0.08);
    margin-bottom: 1rem;
    min-height: 56px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero Logo Styling - Centered (Full Banner) */
.hero-logo-centered {
    max-width: 300px; /* Larger since it's the only element */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(31, 59, 92, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    margin: 0 auto; /* Center the logo */
}

.hero-logo-centered:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 16px rgba(31, 59, 92, 0.2));
}

/* Hero Logo Styling - Compact (Logged-in Users) */
.hero-logo-compact {
    max-height: 32px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 1px 3px rgba(31, 59, 92, 0.1));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.hero-logo-compact:hover {
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(31, 59, 92, 0.15));
}

/* Hero Tagline Styling */
.hero-tagline {
    color: rgba(31, 59, 92, 0.7);
    font-weight: 400;
    font-style: italic;
    opacity: 0.85;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.hero-tagline:hover {
    color: rgba(31, 59, 92, 0.9);
    opacity: 1;
}

/* Aviation-themed accent elements for full banner */
.hero-banner-full::after {
    content: '✈';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.1;
    color: var(--wingletis-primary);
    transform: rotate(15deg);
    pointer-events: none;
}

/* Dark mode support */
.mud-theme-dark .hero-banner-full {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A6B 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mud-theme-dark .hero-banner-full::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(65, 182, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.mud-theme-dark .hero-banner-full::after {
    color: #FFFFFF;
    opacity: 0.08;
}

.mud-theme-dark .hero-banner-compact {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.6) 0%, rgba(42, 74, 107, 0.4) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .hero-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.mud-theme-dark .hero-tagline:hover {
    color: rgba(255, 255, 255, 0.9);
}

.mud-theme-dark .hero-logo-centered {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.mud-theme-dark .hero-logo-centered:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.mud-theme-dark .hero-logo-compact {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.mud-theme-dark .hero-logo-compact:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Mobile responsive adjustments for hero banners */
@media (max-width: 768px) {
    .hero-banner-full {
        margin: -1rem -0.5rem 1.5rem -0.5rem;
        padding: 1.25rem 0.5rem;
    }
    
    .hero-banner-compact {
        min-height: 48px;
    }
    
    .hero-banner-compact .d-flex.align-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
    }
    
    .hero-banner-compact .hero-logo-compact {
        max-height: 28px;
        margin-right: 0 !important;
        margin-bottom: 4px;
    }
    
    .hero-tagline {
        font-size: 0.8rem;
        text-align: left;
        line-height: 1.3;
    }
    
    .hero-logo-centered {
        max-width: 250px;
    }
}

/* Ultra-small screens */
@media (max-width: 480px) {
    .hero-banner-full {
        margin: -1rem -0.25rem 1.25rem -0.25rem;
        padding: 1rem 0.25rem;
        border-radius: 0 0 16px 16px;
    }
    
    .hero-banner-compact {
        padding: 6px 0;
        min-height: 42px;
    }
    
    .hero-tagline {
        font-size: 0.75rem;
    }
    
    .hero-banner-compact .hero-logo-compact {
        max-height: 24px;
    }
    
    .hero-logo-centered {
        max-width: 200px;
    }
}

/* Smooth animations for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-compact,
.hero-tagline {
    animation: fadeInUp 0.6s ease-out;
}

.hero-tagline {
    animation-delay: 0.1s;
}

.hero-logo-centered {
    animation: fadeInUp 0.8s ease-out;
}

/* =============================================================================
   LEGACY HERO BANNER STYLES (keeping for compatibility)
   ============================================================================= */

/* Hero Banner Styling - Legacy */
.hero-banner {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    margin: -1rem -1rem 1.5rem -1rem; /* Extend to edges */
    padding: 1.5rem 1rem; /* More compact padding */
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(31, 59, 92, 0.1);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(65, 182, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(31, 59, 92, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Dark mode hero banner */
.mud-theme-dark .hero-banner {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A6B 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mud-theme-dark .hero-banner::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(65, 182, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* App Bar Logo Styling */
.appbar-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(31, 59, 92, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.appbar-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 3px 6px rgba(31, 59, 92, 0.15));
}

/* Dark mode app bar logo */
.mud-theme-dark .appbar-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mud-theme-dark .appbar-logo:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* Hero Title Styling */
.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(31, 59, 92, 0.1);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Dark mode hero text */
.mud-theme-dark .hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive hero styling */
@media (max-width: 960px) {
    .hero-banner {
        margin: -1rem -0.5rem 1.5rem -0.5rem;
        padding: 1.25rem 0.5rem;
    }
    
    .appbar-logo {
        height: 35px;
    }
}

@media (max-width: 600px) {
    .hero-banner {
        margin: -1rem -0.25rem 1.25rem -0.25rem;
        padding: 1rem 0.25rem;
        border-radius: 0 0 16px 16px;
    }
    
    .appbar-logo {
        height: 30px;
    }
}

/* Enhanced card styling for better visual hierarchy */
.mud-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(31, 59, 92, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(31, 59, 92, 0.05);
}

.mud-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 59, 92, 0.12) !important;
}

/* Dark mode card enhancements */
.mud-theme-dark .mud-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mud-theme-dark .mud-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Aviation-themed accent elements */
.hero-banner::after {
    content: '✈';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.1;
    color: var(--wingletis-primary);
    transform: rotate(15deg);
    pointer-events: none;
}

.mud-theme-dark .hero-banner::after {
    color: #FFFFFF;
    opacity: 0.08;
}

/* Subtle animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo,
.hero-title,
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

/* Welcome Features Component Styling */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 59, 92, 0.15) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.aviation-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(31, 59, 92, 0.1);
}

.mud-theme-dark .aviation-card {
    background: linear-gradient(135deg, #1E1E1E 0%, #2C2C2C 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-card {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid rgba(65, 182, 230, 0.2);
}

.mud-theme-dark .cta-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A6B 100%);
    border: 2px solid rgba(65, 182, 230, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-card {
    animation: fadeInScale 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; }

/* =============================================================================
   PHOTO VIEWER DIALOG STYLING
   Pure Blazor implementation with responsive design
   ============================================================================= */

.photo-viewer-container {
    position: relative;
    height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    outline: none;
    user-select: none;
}

/* Blurred background layer - actual element with inline style */
.photo-viewer-background {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(25px);
    opacity: 0.5;
    transform: scale(1.2);
    z-index: 0;
    pointer-events: none;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.photo-viewer-container:hover .nav-arrow {
    opacity: 1;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Action Toolbar */
.action-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-viewer-container:hover .action-toolbar {
    opacity: 1;
}

.action-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.action-button:active {
    transform: scale(0.95);
}

.favorite-button.is-favorite {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.favorite-button.is-favorite:hover {
    background: rgba(255, 193, 7, 0.4);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Photo Counter */
.photo-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 16px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-viewer-container:hover .photo-counter {
    opacity: 1;
}

/* Info Toggle Button */
.info-toggle-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.photo-viewer-container:hover .info-toggle-button {
    opacity: 1;
}

.info-toggle-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Main Image Container */
.image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1; /* Above background */
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

/* Animation for Photo Transitions */
.main-image.changing {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Info Panel - 60% viewport height */
.info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    height: 60vh;
    max-height: 60vh;
    overflow-y: auto;
}

.info-panel.collapsed {
    transform: translateY(100%);
}

.info-panel.expanded {
    transform: translateY(0);
}

.info-content {
    padding: 24px;
    background: var(--mud-palette-surface);
}

.info-item {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--mud-palette-background-grey);
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
}

/* Keyboard Focus Indicators */
.photo-viewer-container:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

/* Dark Mode Adjustments */
.mud-theme-dark .info-panel {
    background: var(--mud-palette-surface);
    border-top-color: var(--mud-palette-lines-default);
}

/* Responsive Design for Photo Viewer */
@media (max-width: 768px) {
    .nav-arrow {
        width: 60px;
        height: 60px;
        opacity: 0.8; /* Always visible on mobile */
    }
    
    .nav-arrow-left {
        left: 10px;
    }
    
    .nav-arrow-right {
        right: 10px;
    }
    
    .action-toolbar {
        opacity: 1; /* Always visible on mobile */
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .action-button {
        width: 40px;
        height: 40px;
    }
    
    .photo-counter,
    .info-toggle-button {
        opacity: 1; /* Always visible on mobile */
    }
    
    .photo-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
    }
    
    .info-toggle-button {
        bottom: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .image-container {
        padding: 10px;
    }
}
