/* Shared Base Styles for All Apps */

/* CSS Custom Properties for consistent theming */
:root {
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-secondary: 'Georgia', 'Times New Roman', serif;
    --font-family-mono: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
}

/* Reset and Base */
* {
    box-sizing: border-box;
}

body:not(.home-page) {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: #000000 !important;
    background: #ffffff !important;
}

/* Ensure all text is black except buttons and icons and training cards and notification badge and footer social icons and network visualization and messages */
body *, body *:not(button):not(.btn):not(.button):not(input[type="button"]):not(input[type="submit"]):not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fass):not(.fasr):not(.fasl):not(.training-card):not(.training-card *):not(.training-price):not(.training-price *):not(.notification-badge):not(.footer-social-icon):not(.footer-social-icon *):not(.footer-social-links):not(.footer-social-links *):not(.hub-network):not(.hub-network *):not(.network-visualization):not(.network-visualization *):not(.network-legend):not(.network-legend *):not(.network-node):not(.network-node *):not(.messages-container):not(.messages-container *):not(.alert):not(.alert *) {
    color: #000000 !important;
}

/* Icons default to black but can change on hover - exclude footer social icons */
i:not(.footer-social-icon i):not(.footer-social-links i),
.fa:not(.footer-social-icon .fa):not(.footer-social-links .fa),
.fas:not(.footer-social-icon .fas):not(.footer-social-links .fas),
.far:not(.footer-social-icon .far):not(.footer-social-links .far),
.fab:not(.footer-social-icon .fab):not(.footer-social-links .fab),
.fal:not(.footer-social-icon .fal):not(.footer-social-links .fal),
.fad:not(.footer-social-icon .fad):not(.footer-social-links .fad),
.fass:not(.footer-social-icon .fass):not(.footer-social-links .fass),
.fasr:not(.footer-social-icon .fasr):not(.footer-social-links .fasr),
.fasl:not(.footer-social-icon .fasl):not(.footer-social-links .fasl) {
    color: #000000 !important;
    transition: color 0.3s ease !important;
}

/* Footer social icons - preserve their brand colors */
.footer-social-icon i,
.footer-social-links i,
.footer-social-icon .fab,
.footer-social-links .fab {
    transition: color 0.3s ease !important;
}

/* Feature icons background */
.feature-icon, .icon-feature, .service-icon, .card-icon {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 50% !important;
    padding: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
}

/* Keep button colors as intended */
button:not(.btn-warning):not(.btn-outline-custom), .btn:not(.btn-warning):not(.btn-outline-custom), .button, input[type="button"], input[type="submit"] {
    color: inherit !important;
    transition: background-color 0.3s ease !important;
}

/* Button hover state - navbar style */
button:not(.btn-warning):not(.btn-outline-custom):hover, .btn:not(.btn-warning):not(.btn-outline-custom):hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 8px !important;
    transform: none !important;
}

/* Link hover state */
a:hover {
    color: rgba(119, 137, 159, 1) !important;
    transition: color 0.3s ease !important;
}

/* Footer text links hover - navbar style (exclude social media icons) */
footer a:not(.social-links a):not(.social-media-links a):not(.social-icons a):not(.footer-social-icon):hover {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.25rem 0.5rem !important;
    color: rgba(119, 137, 159, 1) !important;
}

/* Footer social icons hover effects */
.footer-social-icon:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Specific buttons with blue background - exclude btn-warning and btn-outline-custom */
.nav-cta, .btn-primary, 
button[class*="subscribe"]:not(.btn-warning), .btn[class*="subscribe"]:not(.btn-warning), a[class*="subscribe"]:not(.btn-warning),
button[class*="enroll"]:not(.btn-warning), .btn[class*="enroll"]:not(.btn-warning), a[class*="enroll"]:not(.btn-warning),
button[class*="invite"]:not(.btn-warning), .btn[class*="invite"]:not(.btn-warning), a[class*="invite"]:not(.btn-warning),
button[class*="signup"]:not(.btn-warning), .btn[class*="signup"]:not(.btn-warning), a[class*="signup"]:not(.btn-warning),
button[class*="signin"]:not(.btn-warning), .btn[class*="signin"]:not(.btn-warning), a[class*="signin"]:not(.btn-warning),
a[href*="signup"]:not(.btn-warning), a[href*="signin"]:not(.btn-warning), a[href*="invite"]:not(.btn-warning), a[href*="subscribe"]:not(.btn-warning), a[href*="enroll"]:not(.btn-warning) {
    background: #3690cb !important;
    color: white !important;
    border: none !important;
}

/* Red buttons for Live Sessions - exclude btn-outline-custom */
button[class*="live"]:not(.btn-outline-custom), .btn[class*="live"]:not(.btn-outline-custom), a[class*="live"]:not(.btn-outline-custom),
a[href*="live"]:not(.btn-outline-custom) {
    background: rgba(220, 53, 69, 1) !important;
    color: white !important;
    border: none !important;
}

/* Force red background for live buttons */
.btn-outline-custom[href*="live"] {
    background: rgba(220, 53, 69, 1) !important;
    color: white !important;
    border: none !important;
}

/* Navigation */
.navbar, .navbar.navbar-expand-lg {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #dee2e6;
}

.navbar a,
.navbar button,
.navbar .nav-link,
.navbar .dropdown-toggle {
    pointer-events: auto;
    cursor: pointer;
    color: #000000 !important;
}

.dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Main Content */
main, #main-content {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Icon hover effects */
i:hover, .fa:hover, .fas:hover, .far:hover, .fab:hover, .fal:hover, .fad:hover, .fass:hover, .fasr:hover, .fasl:hover {
    color: #b8930d !important;
}

/* Link icon hover */
a:hover i, a:hover .fa, a:hover .fas, a:hover .far, a:hover .fab, a:hover .fal, a:hover .fad, a:hover .fass, a:hover .fasr, a:hover .fasl {
    color: #b8930d !important;
}

/* Navbar icon hover */
.navbar i:hover, .navbar .fa:hover, .navbar .fas:hover, .navbar .far:hover, .navbar .fab:hover,
.navbar a:hover i, .navbar a:hover .fa, .navbar a:hover .fas, .navbar a:hover .far, .navbar a:hover .fab,
.navbar .nav-link:hover i, .navbar .nav-link:hover .fa, .navbar .nav-link:hover .fas, .navbar .nav-link:hover .far, .navbar .nav-link:hover .fab {
    color: #b8930d !important;
}

/* Footer icon hover - exclude social media icons which have their own styling */
footer i:not(.social-links i):not(.social-media-links i):not(.social-icons i):hover,
footer .fa:not(.social-links .fa):not(.social-media-links .fa):not(.social-icons .fa):hover,
footer .fas:not(.social-links .fas):not(.social-media-links .fas):not(.social-icons .fas):hover,
footer .far:not(.social-links .far):not(.social-media-links .far):not(.social-icons .far):hover,
footer .fab:not(.social-links .fab):not(.social-media-links .fab):not(.social-icons .fab):hover,
footer a:not(.social-links a):not(.social-media-links a):not(.social-icons a):hover i,
footer a:not(.social-links a):not(.social-media-links a):not(.social-icons a):hover .fa,
footer a:not(.social-links a):not(.social-media-links a):not(.social-icons a):hover .fas,
footer a:not(.social-links a):not(.social-media-links a):not(.social-icons a):hover .far,
footer a:not(.social-links a):not(.social-media-links a):not(.social-icons a):hover .fab {
    color: #b8930d !important;
}

/* Click/active states */
i:active, .fa:active, .fas:active, .far:active, .fab:active, .fal:active, .fad:active, .fass:active, .fasr:active, .fasl:active,
a:active i, a:active .fa, a:active .fas, a:active .far, a:active .fab, a:active .fal, a:active .fad, a:active .fass, a:active .fasr, a:active .fasl,
.navbar a:active i, .navbar a:active .fa, .navbar a:active .fas, .navbar a:active .far, .navbar a:active .fab,
footer a:active i, footer a:active .fa, footer a:active .fas, footer a:active .far, footer a:active .fab {
    color: #b8930d !important;
}

/* Social Media Links - Navbar/General Pages Only (NOT Footer) */
.navbar .social-links, 
.navbar .social-media-links, 
.navbar .social-icons,
main .social-links:not(footer .social-links),
main .social-media-links:not(footer .social-media-links),
main .social-icons:not(footer .social-icons) {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Navbar social icons styling - gray background */
.navbar .social-links a,
.navbar .social-media-links a,
.navbar .social-icons a,
.navbar a[href*="facebook"],
.navbar a[href*="twitter"],
.navbar a[href*="instagram"],
.navbar a[href*="linkedin"],
.navbar a[href*="youtube"],
.navbar a[href*="tiktok"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 50% !important;
    color: #000000 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.navbar .social-links a:hover,
.navbar .social-media-links a:hover,
.navbar .social-icons a:hover,
.navbar a[href*="facebook"]:hover,
.navbar a[href*="twitter"]:hover,
.navbar a[href*="instagram"]:hover,
.navbar a[href*="linkedin"]:hover,
.navbar a[href*="youtube"]:hover,
.navbar a[href*="tiktok"]:hover {
    background: #3690cb !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.navbar .social-links a i,
.navbar .social-media-links a i,
.navbar .social-icons a i,
.navbar a[href*="facebook"] i,
.navbar a[href*="twitter"] i,
.navbar a[href*="instagram"] i,
.navbar a[href*="linkedin"] i,
.navbar a[href*="youtube"] i,
.navbar a[href*="tiktok"] i {
    color: #000000 !important;
    font-size: 1.1rem !important;
}

/* App-specific consistent styling */

/* Hubs App */
.hub-header, .hub-header-ad, .btn-hubs, .hub-section, .hub-cta, .filter-tab, .filter-tab.active {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    transition: all 0.3s ease !important;
}

.hub-header:hover, .hub-header-ad:hover, .btn-hubs:hover, .hub-section:hover, .hub-cta:hover, .filter-tab:hover {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 8px !important;
}

.filter-tab.active {
    background: #3690cb !important;
    color: white !important;
}

/* Training App */
.training-hero {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.category-pill, .category-pill.active {
    background: #e0e0e0 !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

.category-pill:hover {
    background: rgba(119, 137, 159, 0.1) !important;
}

.category-pill.active {
    background: #3690cb !important;
    color: white !important;
}

.filter-pill {
    background: #e0e0e0 !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

.filter-pill:hover {
    background: rgba(119, 137, 159, 0.1) !important;
}

.filter-pill.active {
    background: #3690cb !important;
    color: white !important;
}

.hub-banner, .search-wrapper {
    background: #e0e0e0 !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    transition: all 0.3s ease !important;
}

.hub-banner:hover, .search-wrapper:hover {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 8px !important;
}

.reveal, .visible {
    color: #000000 !important;
}

.hero-content .reveal, .hero-content .visible {
    background: transparent !important;
    color: #000000 !important;
}

.hub-banner .hub-icon {
    background: transparent !important;
    color: #000000 !important;
}

.card-body {
    background: #e0e0e0 !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
}

.card-body:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

.hero-title {
    color: #3690cb !important;
}

h1.hero-title {
    color: #3690cb !important;
}

.level-badge {
    background: #000000 !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

.type-badge.paid {
    background: #3690cb !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

.type-badge.image {
    background: #e0e0e0 !important;
    color: #000000 !important;
    border-radius: 4px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

/* Content App */
.content-card, .content-item, .content-block {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.content-card:hover, .content-item:hover, .content-block:hover {
    background: rgba(119, 137, 159, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Content App - Buttons styled like nav-link dropdown-toggle */
.content-app button, .content-section button, .content-wrapper button,
[class*="content"] button,
.content-app .btn, .content-section .btn, .content-wrapper .btn,
[class*="content"] .btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.content-app button:hover, .content-section button:hover, .content-wrapper button:hover,
[class*="content"] button:hover,
.content-app .btn:hover, .content-section .btn:hover, .content-wrapper .btn:hover,
[class*="content"] .btn:hover {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 8px !important;
}

/* Content App - Override blue backgrounds and text */
.content-app .bg-blue, .content-section .bg-blue, .content-wrapper .bg-blue,
[class*="content"] .bg-blue,
.content-app .bg-primary, .content-section .bg-primary, .content-wrapper .bg-primary,
[class*="content"] .bg-primary {
    background: #ffffff !important;
}

.content-app .text-blue, .content-section .text-blue, .content-wrapper .text-blue,
[class*="content"] .text-blue,
.content-app .text-primary, .content-section .text-primary, .content-wrapper .text-primary,
[class*="content"] .text-primary {
    color: #000000 !important;
}

/* Media placeholder styled like nav-link dropdown-toggle */
.media-placeholder {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.media-placeholder:hover {
    background: rgba(119, 137, 159, 0.1) !important;
    border-radius: 8px !important;
}

/* Apps Section Styles */
:root {
    --app-color: #3690cb;
    --app-color-secondary: #3690cb;
}

.apps-hero {
    background: #3690cb;
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.apps-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="20" height="20" fill="rgba(255,255,255,0.05)" rx="2"/><rect x="40" y="30" width="15" height="15" fill="rgba(255,255,255,0.05)" rx="2"/><rect x="70" y="20" width="18" height="18" fill="rgba(255,255,255,0.05)" rx="2"/></svg>');
    animation: float 15s infinite linear;
}

.app-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.app-header {
    padding: 2rem;
    background: var(--app-color, #3690cb);
    color: white;
    position: relative;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-category {
    opacity: 0.9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.app-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #495057;
}

.app-features i {
    color: var(--app-color, #3690cb) !important;
    margin-right: 0.75rem;
    width: 16px;
}

.app-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--app-color, #3690cb);
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.app-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--app-color, #3690cb);
}

.price-period {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-app {
    background: var(--app-color, #3690cb);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-app:hover {
    background: var(--app-color-secondary, #3690cb);
    color: white;
    transform: translateY(-2px);
}

.btn-app-outline {
    background: transparent;
    border: 2px solid var(--app-color, #3690cb);
    color: var(--app-color, #3690cb);
}

.btn-app-outline:hover {
    background: var(--app-color, #3690cb);
    color: white;
}

.app-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.status-live {
    background: #28a745;
    color: white;
}

.status-beta {
    background: #ffc107;
    color: #212529;
}

.status-coming-soon {
    background: #6c757d;
    color: white;
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: -50px auto 3rem;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.filter-chip {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
}

.filter-chip:hover, .filter-chip.active {
    background: #3690cb;
    color: white;
    border-color: #3690cb;
    text-decoration: none;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    border-radius: 50px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    color: #1a202c !important;
    -webkit-text-fill-color: #1a202c !important;
}

.search-input:focus {
    border-color: #3690cb;
    box-shadow: 0 0 0 0.2rem rgba(54,144,203,.25);
    color: #1a202c !important;
    -webkit-text-fill-color: #1a202c !important;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.floating-waitlist-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #3690cb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(54, 144, 203, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse-float 2s infinite;
    border: none;
    text-decoration: none;
}

.floating-waitlist-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(54, 144, 203, 0.6);
    color: white !important;
    text-decoration: none;
}

@keyframes pulse-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-100px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .apps-hero {
        padding: 80px 0 60px;
    }
    
    .filter-section {
        margin: -30px 1rem 2rem;
        padding: 1.5rem;
    }
    
    .app-header {
        padding: 1.5rem;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .app-title {
        font-size: 1.25rem;
    }
    
    .app-content {
        padding: 1.5rem;
    }
    
    .floating-waitlist-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Tablet iOS specific fixes */
@media (max-width: 1024px) and (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Force navbar visibility on iOS tablets */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1030 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure navbar brand (logo) is visible */
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1035 !important;
        flex-shrink: 0 !important;
    }
    
    /* Force logo container visibility */
    .navbar-logo-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 48px !important;
        min-height: 48px !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    .navbar-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Ensure brand text fallback is visible */
    .brand-text {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .brand-icon {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Force user menu visibility */
    .user-menu {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1035 !important;
        background: transparent !important;
        border: none !important;
        min-height: 48px !important;
        padding: 0.5rem 1rem !important;
    }
    
    .user-avatar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #3690cb !important;
    }
    
    .user-avatar img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .user-avatar i {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure navigation collapse works properly */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        position: relative !important;
        z-index: 1035 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Force all navigation links to be visible */
    .nav-link {
        display: flex !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1040 !important;
        cursor: pointer !important;
        min-height: 48px !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Fix dropdown menus */
    .dropdown-menu {
        position: absolute !important;
        z-index: 1060 !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        border-radius: 12px !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    /* Ensure body padding accounts for fixed navbar */
    body {
        padding-top: 80px !important;
    }
    
    /* Force main content visibility */
    main, #main-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
        background: #ffffff !important;
        min-height: 400px !important;
        padding: 2rem 0 !important;
    }
}

/* iPad Pro specific fixes */
@media (max-width: 1112px) and (min-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    .navbar-brand {
        flex-shrink: 0 !important;
    }
    
    .user-menu {
        flex-shrink: 0 !important;
    }
    
    .navbar {
        padding: 0.75rem 1.5rem !important;
    }
}