/* Mobile Optimizations for LoveLensGallery */
/* Phase 1: Navigation & Header Improvements - Enhanced Version */

/* ===== MOBILE NAVIGATION ENHANCEMENTS ===== */

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    /* Enhanced mobile navbar collapse */
    .navbar-expand-lg .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        padding: 80px 20px 20px;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        backdrop-filter: blur(10px);
    }

    .navbar-expand-lg .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Mobile menu backdrop */
    .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Mobile menu items styling */
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }

    .navbar-nav .nav-item {
        margin: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        color: white !important;
        padding: 15px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-height: 48px; /* Increased for better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 8px 0;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    /* Mobile menu close button */
    .navbar-toggler {
        position: relative;
        z-index: 1060;
        border: none;
        padding: 12px; /* Increased padding for better touch target */
        background: transparent;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }

    /* Hamburger icon styling - working with theme.css box-shadow approach */
    .toggler-icon {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 30px;
        height: 0;
        box-shadow: 0 0 0 1px currentColor, 0px -10px 0 1px currentColor, 0 10px 0 1px currentColor;
        transition: all 0.3s ease;
    }

    /* Animated hamburger menu - transform the box-shadow lines */
    .navbar-toggler[aria-expanded="true"] .toggler-icon {
        box-shadow: 0 0 0 0 currentColor, 0 0 0 0 currentColor, 0 0 0 0 currentColor;
    }

    .navbar-toggler[aria-expanded="true"] .toggler-icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 2px;
        background: currentColor;
        transform: rotate(45deg);
        transition: all 0.3s ease;
    }

    .navbar-toggler[aria-expanded="true"] .toggler-icon::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 2px;
        background: currentColor;
        transform: rotate(-45deg);
        transition: all 0.3s ease;
    }
}

/* ===== HEADER MOBILE OPTIMIZATIONS ===== */

@media (max-width: 767.98px) {
    /* Header container adjustments */
    .main-header .container {
        padding: 0 15px;
    }

    /* Logo sizing for mobile */
    .navbar-brand img {
        max-width: 100px;
        height: auto;
    }

    /* Header buttons mobile optimization */
    .nav .btn {
        padding: 10px 18px; /* Increased padding for better touch target */
        font-size: 0.9rem;
        min-height: 48px; /* Increased for better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        border-radius: 8px;
        font-weight: 600;
    }

    /* Language dropdown mobile improvements */
    .language-dropdown-toggle {
        padding: 10px 14px !important; /* Increased padding */
        min-height: 48px; /* Increased for better touch target */
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .custom-dropdown-menu {
        min-width: 120px;
        margin-top: 8px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .custom-dropdown-menu .dropdown-item {
        padding: 14px 18px; /* Increased padding */
        font-size: 0.95rem;
        min-height: 48px; /* Increased for better touch target */
        display: flex;
        align-items: center;
    }

    .custom-dropdown-menu .dropdown-item:hover {
        background: rgba(0, 102, 255, 0.1);
    }

    /* Theme switcher mobile optimization */
    .theme-switch-01 {
        width: 48px; /* Increased for better touch target */
        height: 48px; /* Increased for better touch target */
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin-right: 8px;
    }

    /* Header layout adjustments */
    .nav.align-items-center {
        gap: 8px;
    }

    /* Login/Logout buttons mobile styling */
    .btn-secondary {
        padding: 10px 18px; /* Increased padding */
        font-size: 0.9rem;
        min-height: 48px; /* Increased for better touch target */
        border-radius: 8px;
        font-weight: 600;
    }
}

/* ===== SMALL MOBILE OPTIMIZATIONS ===== */

@media (max-width: 575.98px) {
    /* Extra small mobile adjustments */
    .navbar-brand img {
        max-width: 80px;
    }

    .nav .btn {
        padding: 8px 14px; /* Still maintaining good touch target */
        font-size: 0.85rem;
        min-height: 44px; /* Minimum acceptable touch target */
    }

    .language-dropdown-toggle {
        padding: 8px 12px !important;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .theme-switch-01 {
        width: 44px; /* Minimum acceptable touch target */
        height: 44px;
    }

    /* Stack buttons vertically on very small screens */
    .nav.align-items-center {
        flex-direction: column;
        gap: 4px;
    }

    .nav.align-items-center > * {
        margin: 2px 0;
    }
}

/* ===== TOUCH INTERACTION IMPROVEMENTS ===== */

/* Ensure all interactive elements meet touch target requirements */
@media (max-width: 991.98px) {
    /* Minimum touch target size */
    .nav-link,
    .btn,
    .dropdown-toggle,
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improved focus states for accessibility */
    .nav-link:focus,
    .btn:focus,
    .dropdown-toggle:focus {
        outline: 2px solid #0066ff;
        outline-offset: 2px;
    }

    /* Better hover states for touch devices */
    .nav-link:hover,
    .btn:hover {
        transform: translateY(-1px);
        transition: transform 0.2s ease;
    }

    /* Active states for better feedback */
    .nav-link:active,
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===== MOBILE-SPECIFIC CONTENT IMPROVEMENTS ===== */

@media (max-width: 767.98px) {
    /* Hero section mobile improvements */
    .display-4 {
        font-size: 2.5rem; /* Smaller but still readable */
        line-height: 1.2;
    }

    .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Button improvements for mobile */
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Card improvements for mobile */
    .card {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .card-body {
        padding: 1.5rem;
    }

    /* Form improvements for mobile */
    .form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
}

/* ===== ANIMATION IMPROVEMENTS ===== */

/* Smooth transitions for mobile menu */
.navbar-collapse {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states for buttons */
.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar-nav .nav-link {
        border: 2px solid white;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .navbar-collapse,
    .nav-link,
    .btn,
    .toggler-icon {
        transition: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Hardware acceleration for smooth animations */
.navbar-collapse,
.nav-link,
.btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== DARK MODE MOBILE OPTIMIZATIONS ===== */

[data-bs-theme="dark"] .navbar-expand-lg .navbar-collapse {
    background: rgba(18, 21, 25, 0.98);
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== SAFE AREA SUPPORT FOR NOTCHED DEVICES ===== */

@supports (padding: max(0px)) {
    .navbar-collapse {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(80px, env(safe-area-inset-top) + 60px);
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* ===== PHASE 1 SPECIFIC IMPROVEMENTS ===== */

/* Enhanced mobile menu close functionality */
@media (max-width: 991.98px) {
    /* Add close button to mobile menu */
    .navbar-collapse::after {
        content: '✕';
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1061;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: background 0.3s ease;
    }

    .navbar-collapse::after:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Improve mobile menu item spacing */
    .navbar-nav .nav-item {
        margin: 12px 0;
        padding: 0 10px;
    }

    /* Add visual feedback for active menu items */
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        border-left: 4px solid #0066ff;
    }
}

/* Enhanced mobile header layout */
@media (max-width: 767.98px) {
    /* Better spacing in header */
    .navbar > .container {
        padding: 0 10px;
    }

    /* Improve logo positioning */
    .navbar-brand {
        margin-right: auto;
    }

    /* Better button grouping */
    .nav.align-items-center {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Ensure all buttons are visible */
    .nav.align-items-center > * {
        flex-shrink: 0;
    }
}

/* Mobile-specific gallery improvements */
@media (max-width: 767.98px) {
    /* Gallery controls mobile optimization */
    .gallery-controls-container {
        padding: 15px;
    }

    .sort-filter-container,
    .face-filter-container {
        margin-bottom: 20px;
    }

    .sort-options .btn {
        min-height: 44px;
        padding: 8px 16px;
        margin: 2px;
    }

    .face-thumbnails img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
    }
}

/* ===== HOME PAGE MOBILE IMPROVEMENTS ===== */

@media (max-width: 767.98px) {
    /* Hero section mobile improvements */
    .mobile-cta-primary,
    .mobile-cta-secondary {
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 16px 24px;
        border-radius: 12px;
        margin: 4px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-cta-primary:hover,
    .mobile-cta-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-cta-primary:active,
    .mobile-cta-secondary:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    /* Trust indicators mobile improvements */
    .trust-indicators {
        margin-top: 2rem;
    }

    .trust-item {
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Hero image mobile optimization */
    .mobile-hero-image {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    /* Pricing card mobile improvements */
    .mobile-pricing-card {
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-pricing-btn {
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 16px 24px;
        background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
        border: none;
        transition: all 0.3s ease;
    }

    .mobile-pricing-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
        background: linear-gradient(135deg, #0052cc 0%, #004499 100%);
    }

    .mobile-pricing-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 102, 255, 0.2);
    }

    /* Feature list mobile improvements */
    .feature-list .d-flex {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .feature-list .d-flex:last-child {
        border-bottom: none;
    }

    .feature-list i {
        font-size: 1.2rem;
        min-width: 24px;
    }

    /* Stats row mobile improvements */
    .stats-row .col-4 {
        padding: 16px 8px;
    }

    .stat-item {
        background: rgba(0, 102, 255, 0.05);
        border-radius: 12px;
        padding: 16px 8px;
        border: 1px solid rgba(0, 102, 255, 0.1);
    }

    /* Urgency banner mobile improvements */
    .urgency-banner {
        border-radius: 12px;
        padding: 16px;
        margin-top: 1.5rem;
    }

    .urgency-banner i {
        font-size: 1.5rem;
    }

    /* Testimonial cards mobile improvements */
    .testimonial-card {
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .testimonial-card .stars {
        font-size: 1.1rem;
    }

    /* Section spacing mobile improvements */
    .section {
        padding: 3rem 0;
    }

    .pt-10 {
        padding-top: 3rem !important;
    }
}

/* ===== SMALL MOBILE SPECIFIC IMPROVEMENTS ===== */

@media (max-width: 575.98px) {
    /* Extra small mobile adjustments for home page */
    .mobile-cta-primary,
    .mobile-cta-secondary {
        min-height: 52px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    .trust-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .mobile-pricing-card {
        padding: 1.25rem;
    }

    .mobile-pricing-btn {
        min-height: 52px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* Stack trust indicators vertically on very small screens */
    .trust-indicators .d-flex {
        flex-direction: column;
        gap: 8px;
    }

    .trust-item {
        justify-content: center;
        width: 100%;
    }
}

/* ===== PRICING PAGE MOBILE IMPROVEMENTS ===== */

@media (max-width: 767.98px) {
    /* Pricing hero section mobile improvements */
    .pricing-hero {
        padding: 3rem 0;
    }

    .mobile-social-proof-item {
        background: rgba(0, 102, 255, 0.05);
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        border: 1px solid rgba(0, 102, 255, 0.1);
    }

    /* Urgency banner mobile improvements */
    .mobile-urgency-banner {
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .mobile-urgency-btn {
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 16px 24px;
        background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
        border: none;
        transition: all 0.3s ease;
        color: #000;
    }

    .mobile-urgency-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
        background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
        color: #000;
    }

    .mobile-urgency-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(255, 193, 7, 0.2);
    }

    /* Pricing cards mobile improvements */
    .mobile-pricing-card {
        border-radius: 16px;
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-pricing-card .card-body {
        padding: 2rem 1.5rem;
    }

    .mobile-pricing-action-btn {
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 16px 24px;
        background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
        border: none;
        transition: all 0.3s ease;
    }

    .mobile-pricing-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
        background: linear-gradient(135deg, #0052cc 0%, #004499 100%);
    }

    .mobile-pricing-action-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 102, 255, 0.2);
    }

    /* Feature list mobile improvements */
    .mobile-feature-list li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: flex-start;
    }

    .mobile-feature-list li:last-child {
        border-bottom: none;
    }

    .mobile-feature-list i {
        font-size: 1.1rem;
        min-width: 20px;
        margin-top: 2px;
    }

    /* Guarantee badge mobile improvements */
    .guarantee-badge {
        background: rgba(40, 167, 69, 0.1);
        border-radius: 12px;
        padding: 12px;
        border: 1px solid rgba(40, 167, 69, 0.2);
    }

    /* Trust indicators mobile improvements */
    .trust-indicators .trust-item {
        background: rgba(0, 102, 255, 0.05);
        border: 1px solid rgba(0, 102, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 1rem;
    }

    .trust-indicators .trust-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .trust-indicators .trust-item h5 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .trust-indicators .trust-item p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* ===== SMALL MOBILE PRICING IMPROVEMENTS ===== */

@media (max-width: 575.98px) {
    /* Extra small mobile adjustments for pricing page */
    .mobile-social-proof-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .mobile-urgency-banner {
        padding: 1.25rem;
    }

    .mobile-urgency-btn {
        min-height: 52px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    .mobile-pricing-card .card-body {
        padding: 1.5rem 1.25rem;
    }

    .mobile-pricing-action-btn {
        min-height: 52px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* Stack social proof items vertically on very small screens */
    .social-proof .d-flex {
        flex-direction: column;
        gap: 8px;
    }

    .mobile-social-proof-item {
        justify-content: center;
        width: 100%;
    }
}

/* ===== MOBILE ACCOUNT BUTTONS IMPROVEMENTS ===== */

@media (max-width: 991.98px) {
    /* Mobile account buttons container */
    .mobile-account-buttons {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Mobile account button styling */
    .mobile-account-btn {
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    /* Primary mobile account button (Login) */
    .mobile-account-btn.btn-primary {
        background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
        border-color: #0066ff;
        color: white;
    }

    .mobile-account-btn.btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
        background: linear-gradient(135deg, #0052cc 0%, #004499 100%);
        border-color: #0052cc;
        color: white;
    }

    .mobile-account-btn.btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 102, 255, 0.2);
    }

    /* Outline mobile account buttons (My Account, Logout) */
    .mobile-account-btn.btn-outline-light {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
        backdrop-filter: blur(10px);
    }

    .mobile-account-btn.btn-outline-light:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }

    .mobile-account-btn.btn-outline-light:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(255, 255, 255, 0.1);
    }

    /* Account button icons */
    .mobile-account-btn i {
        font-size: 1.2rem;
        margin-right: 8px;
    }

    /* Account buttons grid layout */
    .mobile-account-buttons .d-grid {
        gap: 12px;
    }
}

/* ===== SMALL MOBILE ACCOUNT BUTTONS ===== */

@media (max-width: 575.98px) {
    /* Extra small mobile adjustments for account buttons */
    .mobile-account-btn {
        min-height: 52px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    .mobile-account-btn i {
        font-size: 1.1rem;
        margin-right: 6px;
    }

    .mobile-account-buttons {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
}

/* ===== HEADER ALIGNMENT IMPROVEMENTS ===== */

/* Ensure all header elements are properly aligned horizontally */
.nav.align-items-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    height: 100%;
    width: auto;
    flex-wrap: nowrap;
}

/* Language dropdown alignment */
.language-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
}

/* Theme switcher alignment */
.theme-switch-01 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

/* Hamburger menu alignment */
.navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

/* Desktop account buttons alignment */
.nav.align-items-center .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Consistent spacing between elements */
.nav.align-items-center > * {
    margin: 0;
    flex-shrink: 0;
}

.nav.align-items-center .nav-item {
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Ensure all elements have the same baseline */
.nav.align-items-center * {
    vertical-align: middle;
}

/* Mobile-specific header alignment */
@media (max-width: 767.98px) {
    .nav.align-items-center {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .language-dropdown-toggle,
    .theme-switch-01,
    .navbar-toggler {
        height: 48px;
        min-height: 48px;
    }
    
    .theme-switch-01,
    .navbar-toggler {
        min-width: 48px;
        width: 48px;
    }
    
    .nav.align-items-center .btn {
        height: 48px;
        min-height: 48px;
    }
}

/* Small mobile header alignment */
@media (max-width: 575.98px) {
    .nav.align-items-center {
        gap: 0.25rem;
        flex-wrap: nowrap;
    }
    
    .language-dropdown-toggle,
    .theme-switch-01,
    .navbar-toggler {
        height: 44px;
        min-height: 44px;
    }
    
    .theme-switch-01,
    .navbar-toggler {
        min-width: 44px;
        width: 44px;
    }
    
    .nav.align-items-center .btn {
        height: 44px;
        min-height: 44px;
    }
} 