/* 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);
    z-index:1400;
}

/* 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 */
}

/* ================================================
   TABLET NAV DRAWER - Overlay (40% width)
   ================================================ */

/* Tablet: Overlay drawer that doesn't push content */
@media (min-width: 600px) and (max-width: 959.95px) {
    /* Semi-transparent backdrop - clicking it closes drawer */
    .mud-drawer-overlay {
        background-color: rgba(0, 0, 0, 0.3) !important;
        top: 64px !important;
        height: calc(100% - 64px) !important;
        z-index: 1299 !important;
    }
    
    /* Make drawer overlay style, not pushing content */
    .nav-drawer.mud-drawer {
        width: 320px !important;
        max-width: 40% !important;
        min-width: 280px !important;
        position: fixed !important;
        z-index: 1300 !important;
        height: calc(100% - 64px) !important;
        top: 64px !important;
    }
    
    /* Ensure the drawer content scrolls properly and is above overlay */
    .nav-drawer .mud-drawer-content {
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        position: relative !important;
        z-index: 1301 !important;
        background-color: var(--mud-palette-surface) !important;
    }
    
    /* Smooth slide-in animation */
    .nav-drawer.mud-drawer--open {
        transform: translateX(0) !important;
        transition: transform 225ms cubic-bezier(0, 0, 0.2, 1) !important;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .nav-drawer.mud-drawer--closed {
        transform: translateX(-100%) !important;
        transition: transform 195ms cubic-bezier(0.4, 0, 0.6, 1) !important;
    }
    
    /* Touch-friendly nav items */
    .nav-drawer .mud-nav-link {
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
    
    /* Nav icons */
    .nav-drawer .mud-nav-link .mud-icon-root {
        font-size: 1.3rem !important;
        margin-right: 14px !important;
    }
}

/* ================================================
   MOBILE NAV DRAWER - Full Width Overlay
   ================================================ */

/* Mobile: Full-width drawer overlay */
@media (max-width: 599.95px) {
    /* Make drawer full width on mobile with high z-index to appear over chat */
    .nav-drawer.mud-drawer {
        width: 100% !important;
        max-width: 100% !important;
        z-index: 1300 !important;
        position: fixed !important;
    }
    
    /* Ensure the drawer paper takes full width */
    .nav-drawer .mud-drawer-content {
        width: 100% !important;
        z-index: 1301 !important;
    }
    
    /* Smooth slide-in animation */
    .nav-drawer.mud-drawer--open {
        transform: translateX(0) !important;
        transition: transform 225ms cubic-bezier(0, 0, 0.2, 1) !important;
    }
    
    .nav-drawer.mud-drawer--closed {
        transform: translateX(-100%) !important;
        transition: transform 195ms cubic-bezier(0.4, 0, 0.6, 1) !important;
    }
    
    /* Style the overlay/backdrop for mobile drawer - position below header, high z-index */
    .mud-drawer-overlay {
        background-color: rgba(0, 0, 0, 0.5) !important;
        top: 56px !important;
        height: calc(100% - 56px) !important;
        z-index: 1299 !important;
    }
    
    /* Larger touch targets for nav items on mobile */
    .nav-drawer .mud-nav-link {
        min-height: 52px !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
    
    /* Section headers */
    .nav-drawer .mud-typography-subtitle2 {
        padding: 16px 20px 8px 20px !important;
        font-size: 0.85rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Dividers with more spacing */
    .nav-drawer .mud-divider {
        margin: 8px 0 !important;
    }
    
    /* Nav icons slightly larger on mobile */
    .nav-drawer .mud-nav-link .mud-icon-root {
        font-size: 1.4rem !important;
        margin-right: 16px !important;
    }
}

/* 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: Notification popover z-index - must be above AI chat dialog */
.notification-popover {
    z-index: 9999 !important;
}

/* 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; }

/* =============================================================================
   AI CO-PILOT DIALOG STYLING - DESKTOP
   Positions the fullscreen dialog below the main header (56px)
   ============================================================================= */

/* Desktop: AI copilot dialog should start below the header */
.ai-copilot-dialog.mud-dialog {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 1200 !important; /* Below header dropdowns (1399-1400) */
}

/* AI copilot backdrop - lower z-index so header dropdowns appear above */
.ai-copilot-backdrop {
    z-index: 1199 !important;
    top: 56px !important;
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
}

/* AI copilot dialog content - fill available space, no padding */
.ai-copilot-dialog .mud-dialog-content {
    flex: 1 !important;
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* AI copilot dialog title bar - compact */
.ai-copilot-dialog .mud-dialog-title {
    padding: 8px 16px !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
}

/* AI copilot dialog actions (close button) - compact */
.ai-copilot-dialog .mud-dialog-actions {
    padding: 4px 16px !important;
    flex-shrink: 0 !important;
}

/* Chat container inside dialog should fill the space */
.ai-copilot-dialog .chat-dialog-container {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

/* Style the MudDialog paper for photo viewer - transparent background */
.mud-dialog:has(.photo-viewer-container) {
    background: transparent !important;
    box-shadow: none !important;
    max-width: calc(100vw - 80px) !important;
    width: calc(100vw - 80px) !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    margin: 20px auto !important;
}

/* Ensure the MudDialog content clips properly */
.mud-dialog-content:has(.photo-viewer-container) {
    overflow: hidden !important;
    padding: 0 !important;
    background: transparent !important;
}

.photo-viewer-container {
    position: relative;
    height: 90vh;
    height: 90dvh;
    max-height: calc(100vh - 100px); /* Ensure it fits within viewport */
    max-height: calc(100dvh - 100px);
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    outline: none;
    user-select: none;
    isolation: isolate; /* Creates a new stacking context */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Blurred background layer - actual element with inline style */
.photo-viewer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px);
    opacity: 0.4;
    transform: scale(1.3);
    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;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

/* Move left arrow when info panel is open */
.photo-viewer-container.info-open .nav-arrow-left {
    left: 400px;
}

.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: 25; /* Above info panel */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Move info button when panel is open so it stays visible */
.photo-viewer-container.info-open .info-toggle-button {
    left: 400px;
    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 */
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust image container when info panel is open */
.photo-viewer-container.info-open .image-container {
    padding-left: 400px;
}

.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 - Professional Photo Metadata Panel
   Modern, clean design inspired by Google Photos/Lightroom
   ============================================ */

.info-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: linear-gradient(180deg, rgba(45, 45, 50, 0.97) 0%, rgba(35, 35, 40, 0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px 0 0 12px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

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

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

/* Panel Header */
.info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.info-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.info-panel-title .mud-icon-root {
    color: var(--mud-palette-primary);
}

.info-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.info-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

/* Scrollable Content Area */
.info-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.info-content::-webkit-scrollbar {
    width: 6px;
}

.info-content::-webkit-scrollbar-track {
    background: transparent;
}

.info-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.info-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Loading State */
.info-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Description */
.info-description {
    margin: 0 0 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border-left: 3px solid var(--mud-palette-primary);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

/* Tags */
.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(var(--mud-palette-primary-rgb), 0.25);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.4);
}

.info-tag:hover {
    background: rgba(var(--mud-palette-primary-rgb), 0.35);
    border-color: rgba(var(--mud-palette-primary-rgb), 0.6);
}

/* Section Container */
.info-section {
    margin-bottom: 24px;
}

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

/* Section Header */
.info-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-section-header .mud-icon-root {
    font-size: 16px;
    color: var(--mud-palette-primary);
    opacity: 0.8;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Info Card */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.info-card-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    word-break: break-word;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.info-ratio {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
}

.info-location {
    line-height: 1.5;
}

.info-mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Map Link */
.info-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.info-map-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: #fff;
}

.info-map-link .mud-icon-root {
    font-size: 16px;
    opacity: 0.8;
}

/* Light Theme Adjustments */
.mud-theme-light .info-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border-right-color: rgba(0, 0, 0, 0.08);
}

.mud-theme-light .info-panel-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

.mud-theme-light .info-panel-title {
    color: rgba(0, 0, 0, 0.85);
}

.mud-theme-light .info-panel-close {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
}

.mud-theme-light .info-panel-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.85);
}

.mud-theme-light .info-loading {
    color: rgba(0, 0, 0, 0.5);
}

.mud-theme-light .info-description {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.8);
}

.mud-theme-light .info-section-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.5);
}

.mud-theme-light .info-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.mud-theme-light .info-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.mud-theme-light .info-label {
    color: rgba(0, 0, 0, 0.5);
}

.mud-theme-light .info-value {
    color: rgba(0, 0, 0, 0.85);
}

.mud-theme-light .info-ratio {
    color: rgba(0, 0, 0, 0.5);
}

.mud-theme-light .info-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.mud-theme-light .info-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 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-right-color: var(--mud-palette-lines-default);
}

/* Responsive Design for Photo Viewer */
@media (max-width: 768px) {
    /* Kill all MudBlazor dialog spacing on mobile */
    .mud-overlay-content:has(.photo-viewer-dialog),
    .mud-dialog-container:has(.photo-viewer-dialog) {
        padding: 0 !important;
        margin: 0 !important;
        inset: 0 !important;
    }
    
    /* Photo viewer dialog - true fullscreen below header */
    .photo-viewer-dialog.mud-dialog {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: #000 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .photo-viewer-dialog .mud-dialog-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    /* Photo viewer container - absolute fill */
    .photo-viewer-dialog .photo-viewer-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Keep bottom UI elements above safe area */
    .photo-viewer-container .photo-counter,
    .photo-viewer-container .info-toggle-button {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* ========================================
       PDF VIEWER - MOBILE FULLSCREEN
       ======================================== */
    
    /* Kill all MudBlazor dialog spacing for PDF viewer */
    .mud-overlay-content:has(.pdf-viewer-dialog),
    .mud-dialog-container:has(.pdf-viewer-dialog) {
        padding: 0 !important;
        margin: 0 !important;
        inset: 0 !important;
    }
    
    /* PDF viewer dialog - true fullscreen below header */
    .pdf-viewer-dialog.mud-dialog {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .pdf-viewer-dialog .mud-dialog-title {
        padding: 8px 12px !important;
        min-height: auto !important;
    }
    
    .pdf-viewer-dialog .mud-dialog-content {
        position: absolute !important;
        top: 48px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    /* Position elements above the safe area */
    .photo-counter {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 10px;
        padding: 6px 12px;
    }
    
    .info-toggle-button {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .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 */
    }
    
    .image-container {
        padding: 10px;
    }
    
    /* On mobile, info panel slides up from bottom */
    .info-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 70vh;
        height: 70dvh;
        max-height: 70vh;
        max-height: 70dvh;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    }
    
    .info-panel.collapsed {
        transform: translateY(100%);
    }
    
    .info-panel.expanded {
        transform: translateY(0);
    }
    
    .info-panel-header {
        padding: 12px 16px;
    }
    
    .info-content {
        padding: 16px;
    }
    
    .info-card {
        padding: 10px 12px;
    }
    
    /* Don't adjust image padding on mobile */
    .photo-viewer-container.info-open .image-container {
        padding-left: 10px;
    }
    
    /* Reset info button position on mobile */
    .photo-viewer-container.info-open .info-toggle-button {
        left: 10px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Reset nav arrow position on mobile */
    .photo-viewer-container.info-open .nav-arrow-left {
        left: 10px;
    }
}

/* User Archiving Styles */
.user-archived {
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}

.user-archived:hover {
    opacity: 0.8;
}

.archive-badge {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
    height: auto !important;
    line-height: 1.2 !important;
}

/* ========================================
   PDF VIEWER DIALOG - Mobile Responsive Header
   ======================================== */

.pdf-dialog-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.pdf-header-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pdf-header-filename {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Mobile: smaller filename */
@media (max-width: 600px) {
    .pdf-dialog-header {
        gap: 6px;
    }
    
    .pdf-header-filename {
        font-size: 0.9rem;
        min-width: 0;
    }
    
    .pdf-header-icon {
        transform: scale(0.85);
    }
}

/* ================================================
   MOBILE HEADER RESPONSIVE STYLES
   ================================================ */

/* Hide BETA chip on mobile */
@media (max-width: 600px) {
    .mobile-hide {
        display: none !important;
    }
    
    /* Add margin to hamburger menu on mobile only */
    .nav-drawer-toggle {
        margin-left: 8px !important;
    }
    
    /* Add margin to user menu on mobile only */
    .user-menu-button {
        margin-right: 8px !important;
    }
}

/* Mobile header - smaller logo */
@media (max-width: 600px) {
    .appbar-logo {
        height: 28px !important;
    }
    
    /* Reduce toolbar padding and prevent overflow */
    .mud-appbar .mud-toolbar {
        padding-left: 4px !important;
        padding-right: 4px !important;
        min-width: 0 !important;
        overflow: visible !important;
        flex-wrap: nowrap !important;
    }
    
    /* Smaller icon buttons */
    .mud-appbar .mud-icon-button {
        width: 36px !important;
        height: 36px !important;
        padding: 6px !important;
        min-width: 36px !important;
        flex-shrink: 0 !important;
    }
    
    .mud-appbar .mud-icon-button .mud-icon-root {
        font-size: 1.25rem !important;
    }
    
    /* Compact margins */
    .mud-appbar .mr-2 {
        margin-right: 2px !important;
    }
    
    .mud-appbar .ml-3 {
        margin-left: 4px !important;
    }
    
    /* Hide BETA chip on very small screens */
    .mud-appbar .mobile-hide {
        display: none !important;
    }
}

/* Compact aircraft selector on mobile */
@media (max-width: 600px) {
    .aircraft-selector-button {
        max-width: 100px !important;
        padding: 4px 8px !important;
    }
    
    .aircraft-selector-button .mud-typography {
        max-width: 70px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.75rem !important;
    }
}

/* Extra small screens - even more compact */
@media (max-width: 400px) {
    .appbar-logo {
        height: 24px !important;
    }
    
    .mud-appbar .mud-icon-button {
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
    }
    
    .mud-appbar .mud-icon-button .mud-icon-root {
        font-size: 1.1rem !important;
    }
    
    .aircraft-selector-button {
        max-width: 80px !important;
        padding: 2px 6px !important;
    }
    
    .aircraft-selector-button .mud-typography {
        max-width: 50px !important;
        font-size: 0.7rem !important;
    }
    
    /* Hide menu toggle text if any */
    .mud-appbar .ml-3 {
        margin-left: 4px !important;
    }
}

/* Notification popover positioning - below header */
.notification-popover {
    top: 56px !important;
    max-height: calc(100vh - 70px) !important;
    z-index: 1500 !important;
}

/* Mobile: full-width notification popover */
@media (max-width: 600px) {
    .notification-popover {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
}

@media (min-width: 600px) {
    .notification-popover {
        top: 64px !important;
        max-height: calc(100vh - 80px) !important;
    }
}

/* User menu popover positioning - below header */
.user-menu-popover {
    top: 56px !important;
    right: 0 !important;
    left: auto !important;
    max-height: calc(100vh - 70px) !important;
}

@media (min-width: 600px) {
    .user-menu-popover {
        top: 64px !important;
        max-height: calc(100vh - 80px) !important;
    }
}

/* Aircraft selector popover positioning - below header, aligned to right */
.aircraft-selector-popover {
    top: 56px !important;
    right: 50px !important;
    left: auto !important;
    max-height: calc(100vh - 70px) !important;
}

/* Mobile: full-width aircraft selector popover */
@media (max-width: 600px) {
    .aircraft-selector-popover {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
    
    /* Override MudPaper inline width constraints */
    .aircraft-selector-popover .mud-paper {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    /* Make menu items full width */
    .aircraft-selector-popover .mud-menu,
    .aircraft-selector-popover .mud-list {
        width: 100% !important;
    }
    
    .aircraft-menu-item {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (min-width: 600px) {
    .aircraft-selector-popover {
        top: 64px !important;
        max-height: calc(100vh - 80px) !important;
    }
}

/* ========================================
   DOCUMENT LIBRARY - RESPONSIVE VIEWS
   ======================================== */

/* DEFAULT: Show table, hide cards */
.document-table-view {
    display: block;
}

.document-card-view {
    display: none;
}

/* TABLET PORTRAIT (600px - 959px, portrait orientation): Show cards, hide table */
@media (max-width: 959.95px) and (min-width: 600px) and (orientation: portrait) {
    .document-table-view {
        display: none !important;
    }
    
    .document-card-view {
        display: block !important;
    }
}

/* TABLET LANDSCAPE: Keep table view */
@media (max-width: 959.95px) and (min-width: 600px) and (orientation: landscape) {
    .document-table-view {
        display: block !important;
    }
    
    .document-card-view {
        display: none !important;
    }
}

/* MOBILE (< 600px): Show cards, hide table */
@media (max-width: 599.95px) {
    .document-table-view {
        display: none !important;
    }
    
    .document-card-view {
        display: block !important;
    }
    
    /* Hide only the "Document" label to give filename more space */
    .mud-table .mud-table-cell[data-label="Document"]::before {
        display: none !important;
    }
    
    /* Make filename wrap instead of truncate */
    .mud-table .mud-table-cell[data-label="Document"] {
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .mud-table .mud-table-cell[data-label="Document"] .mud-typography {
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    
    /* Document Library Header - compact on mobile */
    .doc-library-header {
        padding: 10px !important;
        margin-bottom: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .doc-library-header .mud-grid {
        margin: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .doc-library-header .mud-grid-item {
        padding: 3px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    
    .doc-library-title {
        font-size: 1.25rem !important;
        margin-bottom: 4px !important;
    }
    
    .doc-library-title .mud-icon-root {
        font-size: 1.25rem !important;
        margin-right: 6px !important;
    }
    
    .doc-library-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* Header button group - full width on mobile */
    .doc-library-header .mud-grid-item.text-right {
        text-align: center !important;
        padding: 3px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .doc-library-header .mud-button-group-root {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .doc-library-header .mud-button-group-root .mud-button-root {
        font-size: 0.65rem !important;
        padding: 4px 2px !important;
        min-height: 30px !important;
        height: 30px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .doc-library-header .mud-button-group-root .mud-button-root:first-child {
        flex: 1 !important;
    }
    
    .doc-library-header .mud-button-group-root .mud-button-root:last-child {
        flex: 0 0 auto !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 40% !important;
    }
    
    .doc-library-header .mud-button-group-root .mud-button-root .mud-icon-root {
        font-size: 0.85rem !important;
        margin-right: 2px !important;
    }

    .doc-library-header .mud-button-group-root .mud-button-root span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Stats section - compact on mobile */
    .doc-library-stats {
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
    }
    
    .doc-library-stats .mud-grid {
        margin: 0 !important;
    }
    
    .doc-library-stats .mud-grid-item {
        padding: 4px 8px !important;
    }
    
    .doc-library-stats .mud-typography-caption {
        font-size: 0.65rem !important;
        margin-bottom: 0 !important;
    }
    
    .doc-library-stats .mud-typography-h6 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    /* Search panel - compact on mobile */
    .doc-library-search {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
    }
    
    /* MOBILE: Bypass MudCollapse completely - always show filters */
    .doc-library-search .mud-collapse-container {
        height: auto !important;
        max-height: none !important;
    }
    
    .doc-library-search .mud-collapse-wrapper {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .doc-library-search .mud-collapse-wrapper-inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide the Filters button on mobile since filters are always visible */
    .doc-library-search .mud-button-root[aria-label*="Filter"],
    .doc-library-search .mud-grid-item .mud-button-root:has(.mud-icon-root[class*="FilterList"]) {
        display: none !important;
    }
    
    .doc-library-search .mud-grid {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .doc-library-search .mud-grid-item {
        padding: 4px 0 !important;
    }
    
    .doc-library-search .mud-grid-item.text-right {
        text-align: left !important;
        padding-top: 0 !important;
    }
    
    .doc-library-search .mud-input-control {
        margin: 0 !important;
    }
    
    .doc-library-search .mud-input-slot,
    .doc-library-search .mud-input-slot input,
    .doc-library-search .mud-input-slot input::placeholder {
        font-size: 0.8rem !important;
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
    }
    
    .doc-library-search .mud-input-label {
        font-size: 0.8rem !important;
    }
    
    /* Make main action buttons full width, but NOT icon buttons inside inputs */
    .doc-library-search > .mud-grid > .mud-grid-item > .mud-button-root,
    .doc-library-search .mud-collapse-wrapper .mud-grid-item > .mud-button-root {
        width: 100% !important;
    }
    
    .doc-library-search .mud-input-control .mud-button-root,
    .doc-library-search .mud-picker .mud-button-root,
    .doc-library-search .mud-icon-button {
        width: auto !important;
    }

    /* Compact filter grid on mobile */
    .doc-library-search .mt-4 {
        margin-top: 8px !important;
    }
    
    .doc-library-search .mb-2 {
        margin-bottom: 4px !important;
    }
    
    /* Prevent extra scroll space from select/picker menus */
    .doc-library-search .mud-select,
    .doc-library-search .mud-input-control {
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* Date picker needs proper height to show the selected value */
    .doc-library-search .mud-picker {
        height: auto !important;
    }
    
    .doc-library-search .mud-picker .mud-input-slot {
        min-height: 24px !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Fix date picker text being hidden behind clear button */
    .doc-library-search .mud-picker .mud-input-root-adorned-end {
        padding-right: 60px !important;
    }
    
    .doc-library-search .mud-picker input {
        text-overflow: ellipsis !important;
        padding-right: 0 !important;
    }
    
    .doc-library-search .mud-popover-open {
        position: fixed !important;
    }
}

/* Fix filter select text visibility on mobile */
@media (max-width: 599.95px) {
    .filter-select .mud-input-slot {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        height: auto !important;
        min-height: 20px !important;
    }
    
    /* Fix filter datepicker text visibility on mobile */
    .filter-datepicker .mud-input-slot,
    .filter-datepicker .mud-picker-input-text,
    .filter-datepicker input {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        height: auto !important;
        min-height: 20px !important;
    }
    
    /* Fix checkbox label visibility on mobile */
    .filter-checkbox {
        overflow: visible !important;
    }
    
    .filter-checkbox .mud-checkbox-label,
    .filter-checkbox .mud-typography,
    .filter-checkbox label,
    .filter-checkbox span {
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: nowrap !important;
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Photos Page - Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 599.95px) {
    /* Container - reduce top margin */
    .photos-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-top: 8px !important;
    }

    /* Header - compact on mobile */
    .photos-header {
        padding: 10px !important;
        margin-bottom: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .photos-header .mud-grid {
        margin: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .photos-header .mud-grid-item {
        padding: 3px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .photos-title {
        font-size: 1.25rem !important;
        margin-bottom: 4px !important;
    }

    .photos-title .mud-icon-root {
        font-size: 1.25rem !important;
        margin-right: 6px !important;
    }

    .photos-subtitle {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* Aircraft chip - smaller */
    .photos-header .mud-chip {
        font-size: 0.7rem !important;
        height: 22px !important;
        margin-top: 6px !important;
    }

    /* Header button group - full width on mobile */
    .photos-header .mud-grid-item.text-right {
        text-align: center !important;
        padding: 3px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .photos-header .mud-button-group-root {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .photos-header .mud-button-group-root .mud-button-root {
        font-size: 0.65rem !important;
        padding: 4px 2px !important;
        min-height: 30px !important;
        height: 30px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .photos-header .mud-button-group-root .mud-button-root:first-child {
        flex: 1 !important;
    }

    .photos-header .mud-button-group-root .mud-button-root:last-child {
        flex: 0 0 auto !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 40% !important;
    }

    .photos-header .mud-button-group-root .mud-button-root .mud-icon-root {
        font-size: 0.85rem !important;
        margin-right: 2px !important;
    }

    .photos-header .mud-button-group-root .mud-button-root span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Stats section - compact on mobile */
    .photos-stats {
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
    }

    .photos-stats .mud-grid {
        margin: 0 !important;
    }

    .photos-stats .mud-grid-item {
        padding: 4px 6px !important;
    }

    .photos-stats .mud-typography-caption {
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
    }

    .photos-stats .mud-typography-h6 {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }

    .photos-stats .mud-typography-body2 {
        font-size: 0.65rem !important;
    }

    /* Search panel - compact on mobile */
    .photos-search {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
    }

    .photos-search .mud-grid {
        margin: 0 !important;
        width: 100% !important;
    }

    .photos-search .mud-grid-item {
        padding: 4px 0 !important;
    }
    
    .photos-search .mud-grid-item.text-right {
        text-align: left !important;
        padding-top: 0 !important;
    }
    
    .photos-search .mud-input-control {
        margin: 0 !important;
    }
    
    .photos-search .mud-input-slot,
    .photos-search .mud-input-slot input,
    .photos-search .mud-input-slot input::placeholder {
        font-size: 0.8rem !important;
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
    }
    
    .photos-search .mud-input-label {
        font-size: 0.8rem !important;
    }
    
    /* Make main action buttons full width, but NOT icon buttons inside inputs */
    .photos-search > .mud-grid > .mud-grid-item > .mud-button-root,
    .photos-search .mud-collapse-wrapper .mud-grid-item > .mud-button-root {
        width: 100% !important;
    }
    
    .photos-search .mud-input-control .mud-button-root,
    .photos-search .mud-picker .mud-button-root,
    .photos-search .mud-icon-button {
        width: auto !important;
    }
    
    /* Compact filter grid on mobile */
    .photos-search .mt-4 {
        margin-top: 8px !important;
    }
    
    .photos-search .mb-2 {
        margin-bottom: 4px !important;
    }
    
    /* Prevent extra scroll space from select/picker menus */
    .photos-search .mud-select,
    .photos-search .mud-input-control {
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* Date picker needs proper height to show the selected value */
    .photos-search .mud-picker {
        height: auto !important;
    }
    
    .photos-search .mud-picker .mud-input-slot {
        min-height: 24px !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Fix date picker text being hidden behind clear button */
    .photos-search .mud-picker .mud-input-root-adorned-end {
        padding-right: 60px !important;
    }
    
    .photos-search .mud-picker input {
        text-overflow: ellipsis !important;
        padding-right: 0 !important;
    }
    
    .photos-search .mud-popover-open {
        position: fixed !important;
    }

    .photos-search-input {
        margin: 0 !important;
    }

    .photos-search-input .mud-input-slot,
    .photos-search-input .mud-input-slot input,
    .photos-search-input .mud-input-slot input::placeholder {
        font-size: 0.8rem !important;
    }

    /* Filter row - full width button */
    .photos-filter-row {
        text-align: left !important;
        padding-top: 4px !important;
    }

    .photos-filter-btn {
        width: 100% !important;
        font-size: 0.8rem !important;
    }

    /* Filters grid - compact */
    .photos-filters-grid .mud-grid-item {
        padding: 4px !important;
    }

    /* Filter select dropdowns - fix text visibility */
    .photos-filter-select .mud-input-slot {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        height: auto !important;
        min-height: 20px !important;
        font-size: 0.8rem !important;
    }

    .photos-filter-select .mud-input-label {
        font-size: 0.75rem !important;
    }

    /* Date picker - compact */
    .photos-datepicker .mud-input-slot {
        font-size: 0.8rem !important;
    }

    .photos-datepicker .mud-input-label {
        font-size: 0.75rem !important;
    }

    /* Photo timeline groups - compact */
    .photo-timeline .mud-paper {
        margin-bottom: 8px !important;
    }

    .photo-timeline .mud-container {
        padding: 10px !important;
    }

    .photo-timeline .mud-typography-h6 {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    .photo-timeline .mud-typography-h6 .mud-icon-root {
        font-size: 0.8rem !important;
    }

    .photo-timeline .mud-typography-h6 .mud-chip {
        font-size: 0.6rem !important;
        height: 18px !important;
        margin-left: 4px !important;
    }

    /* Photo grid - tighter spacing */
    .photo-timeline .mud-grid {
        margin: -4px !important;
    }

    .photo-timeline .mud-grid-item {
        padding: 4px !important;
    }

    /* No photos message - compact */
    .photos-container .text-center .mud-icon-root.mud-icon-size-large {
        font-size: 2rem !important;
    }

    .photos-container .text-center .mud-typography-h6 {
        font-size: 1rem !important;
    }

    .photos-container .text-center .mud-typography-body1 {
        font-size: 0.8rem !important;
    }

    .photos-container .text-center .mud-button-root {
        font-size: 0.8rem !important;
        padding: 6px 16px !important;
    }

    /* Tags section in filters - compact */
    .photos-search .mud-typography-subtitle2 {
        font-size: 0.75rem !important;
    }

    .photos-search .mud-chip {
        font-size: 0.65rem !important;
        height: 22px !important;
    }

    /* Clear filters button - full width on mobile */
    .photos-clear-filters {
        text-align: center !important;
        margin-top: 8px !important;
    }

    .photos-clear-filters .mud-button-root {
        width: 100% !important;
        font-size: 0.75rem !important;
    }

    /* Tags section - smaller gap */
    .photos-tags-section .mud-typography-subtitle2 {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
    }

    .photos-tags-section .mud-chip {
        font-size: 0.6rem !important;
        height: 20px !important;
        padding: 0 6px !important;
    }

    /* Loading indicator in search panel */
    .photos-filter-row .mud-progress-circular {
        display: none !important;
    }

    /* Upload overlay - mobile friendly */
    .mud-overlay .mud-paper {
        min-width: auto !important;
        width: 85% !important;
        max-width: 280px !important;
        padding: 16px !important;
    }

    .mud-overlay .mud-typography-h6 {
        font-size: 0.95rem !important;
    }

    .mud-overlay .mud-typography-body2 {
        font-size: 0.75rem !important;
    }

    /* Infinite scroll sentinel */
    .photos-container .d-flex.justify-center {
        padding: 8px !important;
    }

    .photos-container .d-flex.justify-center .mud-typography {
        font-size: 0.75rem !important;
    }
}

/* ==========================================================================
   Document Upload Dialog - Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 599.95px) {
    /* Make dialog full screen on mobile */
    .mud-dialog-container {
        padding: 0 !important;
    }
    
    /* Document upload dialog specific */
    .mud-dialog .mud-dialog-content:has(> .mud-container[style*="max-height: 70vh"]) {
        padding: 8px !important;
    }
    
    .mud-dialog .mud-container[style*="max-height: 70vh"] {
        max-height: calc(100vh - 200px) !important;
        padding: 0 8px !important;
    }
    
    /* Dialog title - compact */
    .mud-dialog .mud-dialog-title {
        padding: 12px 16px !important;
        min-height: auto !important;
    }
    
    .mud-dialog .mud-dialog-title .mud-typography-h6 {
        font-size: 1rem !important;
    }
    
    .mud-dialog .mud-dialog-title .mud-icon-root {
        font-size: 1.1rem !important;
    }
    
    /* Section titles */
    .mud-dialog .mud-typography-subtitle1 {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }
    
    /* File selection button */
    .mud-dialog .mud-file-upload .mud-button-root {
        width: 100% !important;
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    
    /* Alert box - compact */
    .mud-dialog .mud-alert {
        padding: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .mud-dialog .mud-alert .mud-typography-body2 {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    
    .mud-dialog .mud-alert strong {
        font-size: 0.7rem !important;
    }
    
    /* File cards - make more compact */
    .mud-dialog .mud-card {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .mud-dialog .mud-card .mud-grid {
        gap: 4px !important;
    }
    
    /* File icon column */
    .mud-dialog .mud-card .mud-grid-item:first-child {
        flex-basis: 8% !important;
        max-width: 8% !important;
    }
    
    .mud-dialog .mud-card .mud-icon-root {
        font-size: 1.2rem !important;
    }
    
    /* Filename column */
    .mud-dialog .mud-card .mud-grid-item:nth-child(2) {
        flex-basis: 52% !important;
        max-width: 52% !important;
    }
    
    .mud-dialog .mud-card .mud-typography-body2 {
        font-size: 0.75rem !important;
    }
    
    .mud-dialog .mud-card .mud-typography-caption {
        font-size: 0.65rem !important;
    }
    
    /* Category select column */
    .mud-dialog .mud-card .mud-grid-item:nth-child(3) {
        flex-basis: 30% !important;
        max-width: 30% !important;
    }
    
    .mud-dialog .mud-card .mud-select {
        font-size: 0.7rem !important;
    }
    
    .mud-dialog .mud-card .mud-input-label {
        font-size: 0.65rem !important;
    }
    
    .mud-dialog .mud-card .mud-input-slot {
        font-size: 0.7rem !important;
        min-height: 30px !important;
    }
    
    /* Remove button column */
    .mud-dialog .mud-card .mud-grid-item:last-child {
        flex-basis: 10% !important;
        max-width: 10% !important;
    }
    
    .mud-dialog .mud-card .mud-icon-button {
        width: 28px !important;
        height: 28px !important;
    }
    
    .mud-dialog .mud-card .mud-icon-button .mud-icon-root {
        font-size: 1rem !important;
    }
    
    /* Upload options section */
    .mud-dialog .mud-text-field,
    .mud-dialog .mud-input-control {
        margin-bottom: 8px !important;
    }
    
    .mud-dialog .mud-input-control .mud-input-label {
        font-size: 0.75rem !important;
    }
    
    .mud-dialog .mud-input-control .mud-input-slot {
        font-size: 0.8rem !important;
    }
    
    .mud-dialog .mud-input-helper-text {
        font-size: 0.65rem !important;
    }
    
    /* Tags section */
    .mud-dialog .mud-autocomplete {
        margin-bottom: 8px !important;
    }
    
    .mud-dialog .mud-chip {
        font-size: 0.65rem !important;
        height: 22px !important;
        padding: 0 8px !important;
    }
    
    /* Checkbox */
    .mud-dialog .mud-checkbox {
        margin-bottom: 4px !important;
    }
    
    .mud-dialog .mud-checkbox .mud-typography {
        font-size: 0.75rem !important;
    }
    
    .mud-dialog .mud-checkbox + .mud-typography-caption {
        font-size: 0.65rem !important;
        margin-left: 28px !important;
    }
    
    /* Dialog actions */
    .mud-dialog .mud-dialog-actions {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    
    .mud-dialog .mud-dialog-actions .mud-button-root {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        min-width: 80px !important;
    }
    
    /* Upload progress view */
    .mud-dialog .text-center.pa-4 {
        padding: 16px !important;
    }
    
    .mud-dialog .mud-progress-circular {
        width: 60px !important;
        height: 60px !important;
    }
    
    .mud-dialog .text-center .mud-typography-h6 {
        font-size: 0.9rem !important;
        margin-top: 12px !important;
    }
    
    .mud-dialog .text-center .mud-typography-body2 {
        font-size: 0.75rem !important;
    }
    
    .mud-dialog .text-center .mud-typography-caption {
        font-size: 0.7rem !important;
    }
    
    /* Clear selection button */
    .mud-dialog .mud-typography-subtitle1 .mud-icon-button {
        width: 24px !important;
        height: 24px !important;
        margin-left: 4px !important;
    }
    
    /* Dividers */
    .mud-dialog .mud-divider {
        margin: 12px 0 !important;
    }
}
