/* Genesis Core - Space Theme CSS */
/* Applied consistently across all pages */

/* Patent protection blur effects */
.patent-blur {
    filter: blur(15px) !important;
    -webkit-filter: blur(15px) !important;
    -moz-filter: blur(15px) !important;
    -ms-filter: blur(15px) !important;
}

.patent-blur-heavy {
    filter: blur(4px) !important;
    -webkit-filter: blur(4px) !important;
    -moz-filter: blur(4px) !important;
    -ms-filter: blur(4px) !important;
}

/* Sticky Navigation Enhancement */
.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 162, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Navigation scroll enhancement */
.navbar.sticky-top.scrolled {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* Mobile Optimizations - Complete Mobile Experience Enhancement */
@media (max-width: 991.98px) {
    /* Navigation Improvements */
    .navbar-collapse {
        text-align: right !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        border-radius: 8px !important;
        margin-top: 8px !important;
        padding: 12px !important;
        border: 1px solid rgba(138, 43, 226, 0.3) !important;
    }
    
    .navbar-nav {
        align-items: flex-end !important;
    }
    
    .navbar-nav.align-items-center {
        align-items: flex-end !important;
        margin-left: auto !important;
    }
    
    .navbar-nav li.nav-item {
        text-align: right !important;
        margin-left: auto !important;
        margin-bottom: 8px !important;
    }
    
    .navbar-nav li.nav-item .btn {
        margin-left: auto !important;
        margin-right: 0 !important;
        min-width: 44px !important; /* Touch target size */
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Improve touch targets for mobile */
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-radius: 6px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* Mobile-specific glass nebula button optimizations */
    .glass-nebula-btn {
        min-height: 40px !important;
        min-width: 90px !important;
        padding: 8px 12px !important;
        margin: 3px !important;
        flex-wrap: wrap !important;
        text-align: center !important;
    }
    
    /* Ensure button text is large enough for mobile */
    .glass-nebula-btn .fas {
        font-size: 14px !important;
        margin-right: 6px !important;
    }
    
    /* Stack buttons vertically on very small screens */
    @media (max-width: 576px) {
        .d-flex.justify-content-center.gap-3.mt-4.flex-wrap {
            flex-direction: column !important;
            align-items: center !important;
            gap: 8px !important;
        }
        
        .glass-nebula-btn {
            width: 100% !important;
            max-width: 280px !important;
            margin: 4px 0 !important;
        }
    }
    
    /* Enhanced mobile brand styling */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-brand img {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Mobile-specific card spacing and sizing */
    .card {
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    .card-header {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .card-body {
        padding: 16px !important;
    }
    
    /* Mobile form optimizations */
    .form-control, .form-select {
        min-height: 48px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 8px !important;
        padding: 12px 16px !important;
    }
    
    textarea.form-control {
        min-height: 80px !important;
        resize: vertical !important;
    }
    
    /* Mobile button improvements */
    .btn {
        min-height: 44px !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        touch-action: manipulation !important;
    }
    
    .btn-sm {
        min-height: 38px !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* Mobile table responsiveness */
    .table-responsive {
        border-radius: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .table th, .table td {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 16px !important;
        max-width: calc(100vw - 32px) !important;
    }
    
    .modal-content {
        border-radius: 12px !important;
    }
    
    /* Mobile spacing adjustments */
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Mobile title adjustments */
    .intelligence-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 24px !important;
    }
    
    /* Desktop title override */
    @media (min-width: 992px) {
        .intelligence-title {
            font-size: 3.5rem !important;
        }
    }
    
    h1, .h1 {
        font-size: 1.8rem !important;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
    }
    
    h3, .h3 {
        font-size: 1.3rem !important;
    }
    
    /* Mobile list improvements */
    .list-group-item {
        padding: 12px 16px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* Mobile badge and label improvements */
    .badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
    }
    
    /* Mobile dropdown improvements */
    .dropdown-menu {
        border-radius: 8px !important;
        padding: 8px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }
    
    .dropdown-item {
        padding: 12px 16px !important;
        border-radius: 6px !important;
        margin-bottom: 4px !important;
    }
    
    /* Mobile progress bar improvements */
    .progress {
        height: 8px !important;
        border-radius: 4px !important;
    }
    
    /* Mobile alert improvements */
    .alert {
        padding: 12px 16px !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
    }
    
    /* Mobile breadcrumb improvements */
    .breadcrumb {
        padding: 8px 16px !important;
        border-radius: 6px !important;
        font-size: 0.85rem !important;
    }
    
    /* Mobile pagination improvements */
    .pagination .page-link {
        padding: 8px 12px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Mobile-specific textarea optimizations */
    .enhanced-textarea[data-mobile-optimized="true"] {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 200px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px !important;
        border-radius: 12px !important;
    }
    
    /* Mobile card grid optimizations */
    .col-md-6 {
        margin-bottom: 12px !important;
    }
    
    /* Mobile collapsible sections */
    .collapse .card-body {
        padding: 12px !important;
    }
    
    /* Mobile protocol selection */
    .form-check {
        margin-bottom: 12px !important;
        padding: 8px !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .form-check-input {
        width: 20px !important;
        height: 20px !important;
        margin-top: 2px !important;
    }
    
    .form-check-label {
        padding-left: 8px !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    /* Mobile AI model selection */
    .ai-model-selection .form-check {
        background: rgba(138, 43, 226, 0.1) !important;
    }
    
    /* Mobile Compact Button Optimizations - Perplexity AI Style */
    .compact-btn,
    button.compact-btn,
    .btn.compact-btn {
        padding: 0.1rem 0.15rem !important;
        font-size: 0.45rem !important;
        height: 14px !important;
        max-height: 14px !important;
        min-height: 14px !important;
        min-width: auto !important;
        line-height: 1 !important;
        border-width: 0.5px !important;
        border-radius: 2px !important;
        margin: 0 1px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .compact-btn i {
        font-size: 0.4rem !important;
    }
    
    /* Conversation Control Buttons Mobile */
    .conversation-control-btn {
        padding: 0.1rem 0.25rem !important;
        font-size: 0.45rem !important;
        height: 14px !important;
        max-height: 14px !important;
        min-height: 14px !important;
        line-height: 1 !important;
        border-width: 0.5px !important;
        border-radius: 2px !important;
        margin: 0 1px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }
    
    .conversation-control-btn i {
        font-size: 0.4rem !important;
        margin-right: 2px !important;
    }
    
    /* Patent Pending Button Mobile Optimizations */
    .position-relative .compact-btn {
        padding: 0.1rem 0.15rem !important;
        font-size: 0.4rem !important;
        height: 14px !important;
        max-height: 14px !important;
        min-height: 14px !important;
    }
    
    .position-relative .badge {
        font-size: 0.35rem !important;
        padding: 0px 2px !important;
        margin-top: -3px !important;
    }
    
    /* Mobile Button Container Spacing */
    .d-flex.gap-1 {
        gap: 0.15rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    /* Button-specific styles */
    .btn-voice-input {
        border: 0.5px solid #6c757d !important;
        background: rgba(108, 117, 125, 0.1) !important;
    }
    
    .btn-attachment {
        border: 0.5px solid #dc3545 !important;
        background: rgba(220, 53, 69, 0.1) !important;
    }
    
    .btn-advanced {
        border: 0.5px solid #0d6efd !important;
        background: rgba(13, 110, 253, 0.1) !important;
        white-space: nowrap !important;
    }

    /* Desktop Button Optimizations - Larger for readability */
    @media (min-width: 768px) {
        .compact-btn,
        button.compact-btn,
        .btn.compact-btn {
            padding: 0.25rem 0.5rem !important;
            font-size: 0.75rem !important;
            height: 24px !important;
            max-height: 24px !important;
            min-height: 24px !important;
            border-radius: 4px !important;
        }
        
        .compact-btn i {
            font-size: 0.65rem !important;
        }
        
        .conversation-control-btn {
            padding: 0.25rem 0.5rem !important;
            font-size: 0.75rem !important;
            height: 24px !important;
            max-height: 24px !important;
            min-height: 24px !important;
            border-radius: 4px !important;
        }
        
        .conversation-control-btn i {
            font-size: 0.65rem !important;
        }
        
        .position-relative .compact-btn {
            padding: 0.25rem 0.4rem !important;
            font-size: 0.7rem !important;
            height: 24px !important;
            max-height: 24px !important;
            min-height: 24px !important;
        }
    }
    
    .d-flex.gap-1::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Free Plan Status Mobile */
    .d-flex.align-items-center span {
        font-size: 0.55rem !important;
    }
    
    .badge.rounded-pill {
        font-size: 0.45rem !important;
        padding: 1px 4px !important;
    }
    
    /* Mobile spacing adjustments for button row */
    .mt-2.mb-2 {
        margin-top: 0.3rem !important;
        margin-bottom: 0.3rem !important;
    }
    }
    
    /* Mobile starfield optimizations */
    #starfield-canvas {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -1 !important;
        pointer-events: none !important;
    }
    
    /* Mobile navigation brand */
    .navbar-brand {
        padding: 8px 0 !important;
    }
    
    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Mobile footer improvements */
    .footer {
        padding: 16px 0 !important;
        margin-top: 32px !important;
    }
    
    .footer .btn {
        margin: 4px 2px !important;
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
    
    /* Mobile title responsiveness - ONLY for very small screens */
    .intelligence-title {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 16px !important;
        text-align: center !important;
    }
    
    /* Mobile revolutionary section */
    .revolutionary-section {
        margin: 20px 0 !important;
    }
    
    .revolutionary-section .card-body {
        padding: 16px !important;
    }
    
    /* Mobile upgrade buttons */
    .upgrade-to-pro {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
        margin: 8px 0 !important;
    }
    
    /* Mobile welcome modal */
    .welcome-modal .modal-dialog {
        margin: 8px !important;
        max-width: calc(100vw - 16px) !important;
    }
    
    .welcome-modal .modal-content {
        border-radius: 16px !important;
    }
    
    .welcome-modal .modal-body {
        padding: 20px !important;
    }
    
    /* Mobile query form improvements */
    .query-form-container {
        padding: 16px !important;
        margin: 16px 0 !important;
    }
    
    .query-form-container .card {
        border-radius: 16px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Mobile character counter */
    .character-counter {
        font-size: 0.8rem !important;
        margin-top: 8px !important;
    }
    
    /* Mobile submit button */
    .submit-query-btn {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 1rem !important;
        margin-top: 16px !important;
        border-radius: 12px !important;
    }
    
    /* Mobile attachment preview */
    .attachment-preview {
        font-size: 0.8rem !important;
        padding: 8px !important;
        border-radius: 8px !important;
    }
    
    /* Mobile advanced options */
    .advanced-options .btn {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }
    
    /* Mobile-specific nano buttons for character counter row */
    .nano-btn {
        height: 10px !important;
        min-width: 10px !important;
        padding: 0.03rem 0.05rem !important;
        font-size: 0.2rem !important;
        border-radius: 1px !important;
        line-height: 1 !important;
        backdrop-filter: blur(3px) !important;
        transition: all 0.1s ease !important;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06) !important;
    }
    
    .nano-btn:hover {
        transform: translateY(-0.25px) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
        opacity: 0.85 !important;
    }
    
    /* Mobile character counter row layout */
    .character-counter-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .character-counter-row .nano-btn {
        margin-right: 1px !important;
    }
        margin: 4px 0 !important;
    }
}

/* Dystopian Font Face */
@font-face {
    font-family: 'SD Dystopian';
    src: url('../fonts/Sddystopiandemo-GO7xa.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Space Background Body - Deep Space Black with Starfield Independence */
body {
    background: #000000 !important;
    overflow-x: hidden;
    min-height: 100vh;
    /* Remove all positioning and transforms that interfere with canvas */
    margin: 0;
    padding: 0;
}

/* Enhanced Space Background - Pure Black with Stars Only */
body.space-background {
    background: #000000 !important;
    overflow: auto !important;
    border-radius: 0 !important;
    border: none !important;
    /* Remove all positioning/transforms that create stacking contexts */
    margin: 0;
    padding: 0;
}

/* JavaScript star animation will handle the stars */

/* Starfield Canvas - Completely Independent Background Layer */
canvas#starfield-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: -1000 !important;
    /* Performance optimizations */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Simplified Keyframe Animations - Performance Optimized */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes starMove {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-100px) translateY(-50px); }
    50% { transform: translateX(-200px) translateY(-100px); }
    75% { transform: translateX(-100px) translateY(-150px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes cosmicGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 162, 255, 0.3), inset 0 0 30px rgba(138, 43, 226, 0.1); }
    50% { box-shadow: 0 0 40px rgba(138, 43, 226, 0.4), inset 0 0 50px rgba(0, 162, 255, 0.2); }
}

@keyframes nebula {
    0% { 
        background-position: 0% 0%; 
        background-size: 400% 400%;
    }
    25% { 
        background-position: 100% 0%; 
        background-size: 450% 450%;
    }
    50% { 
        background-position: 100% 100%; 
        background-size: 400% 400%;
    }
    75% { 
        background-position: 0% 100%; 
        background-size: 350% 350%;
    }
    100% { 
        background-position: 0% 0%; 
        background-size: 400% 400%;
    }
}

/* Navigation Z-Index Fixes - CRITICAL */
.navbar {
    z-index: 2147483646 !important;
    position: relative !important;
    backdrop-filter: blur(10px);
}

/* Compact Navigation - 17% Reduction */
.navbar.compact-nav {
    padding-top: 0.33rem !important;  /* Reduced from ~0.5rem */
    padding-bottom: 0.33rem !important;
    min-height: 46px !important;  /* Reduced from ~56px */
}

.navbar.compact-nav .navbar-brand {
    padding-top: 0.25rem !important;  /* Reduced padding */
    padding-bottom: 0.25rem !important;
    font-size: 1.1rem !important;  /* Slightly smaller font */
    line-height: 1.2 !important;
}

.navbar.compact-nav .nav-link {
    padding-top: 0.4rem !important;  /* Reduced from ~0.5rem */
    padding-bottom: 0.4rem !important;
    font-size: 0.95rem !important;  /* Slightly smaller */
    line-height: 1.3 !important;
}

.navbar.compact-nav .badge {
    font-size: 0.65rem !important;  /* Smaller badges */
    padding: 0.2rem 0.4rem !important;
}

/* Cache reset timestamp: 1753334800 */

/* Center dropdown modal styling */
.dropdown-menu {
    display: none;
}

.dropdown-menu a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: block !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    margin: 2px 0 !important;
}

.dropdown-menu a:hover {
    background: rgba(0, 123, 255, 0.3) !important;
    transform: translateX(8px) translateY(-2px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.5) !important;
    border-left: 3px solid rgba(0, 162, 255, 0.8) !important;
}

.dropdown-toggle {
    z-index: 99999 !important;
}

.dropdown-menu .dropdown-item {
    color: #ffffff !important;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #ffffff !important;
}

.dropdown-menu .dropdown-item:focus {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #ffffff !important;
}

/* Ensure dropdown appears above all other content */
.navbar-nav .dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
}

.navbar-collapse {
    z-index: 99999 !important;
}

/* Space Background Cards with Breathing Purple Nebula */
.space-background {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(13, 27, 42, 0.71) 0%, 
        rgba(27, 38, 59, 0.68) 25%,
        rgba(65, 105, 225, 0.11) 50%,
        rgba(138, 43, 226, 0.15) 75%,
        rgba(13, 27, 42, 0.71) 100%
    );
    background-size: 400% 400%;
    animation: nebula 20s ease-in-out infinite, cosmicGlow 8s ease-in-out infinite;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3) !important;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.23),
        inset 0 0 50px rgba(138, 43, 226, 0.08);
}

/* Exclude body from card-specific styling */
.space-background:not(body) {
    background: linear-gradient(135deg, 
        rgba(13, 27, 42, 0.71) 0%, 
        rgba(27, 38, 59, 0.68) 25%,
        rgba(65, 105, 225, 0.11) 50%,
        rgba(138, 43, 226, 0.15) 75%,
        rgba(13, 27, 42, 0.71) 100%
    );
    background-size: 400% 400%;
    animation: nebula 20s ease-in-out infinite, cosmicGlow 8s ease-in-out infinite;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3) !important;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.23),
        inset 0 0 50px rgba(138, 43, 226, 0.08);
}

.space-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px circle at 13% 89%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px circle at 77% 22%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px circle at 39% 71%, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 500px 400px;
    animation: starTwinkle 30s ease-in-out infinite;
    pointer-events: none;
}

/* Removed ::after for maximum performance */

/* Enhanced Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

.btn-success:hover {
    box-shadow: 0 4px 20px rgba(25, 135, 84, 0.4);
}

.btn-info:hover {
    box-shadow: 0 4px 20px rgba(13, 202, 240, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 4px 20px rgba(108, 117, 125, 0.4);
}

/* Enhanced Navigation Link Hover Effects */
.nav-link {
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
}

.nav-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.4) !important;
    background: rgba(0, 162, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Enhanced Dropdown Item Hover Effects */
.list-group-item {
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    margin: 2px !important;
}

.list-group-item:hover {
    transform: translateX(8px) translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.5) !important;
    background: rgba(0, 162, 255, 0.15) !important;
    border-left: 3px solid rgba(0, 162, 255, 0.8) !important;
}

/* Cosmic Text Effects */
.cosmic-glow {
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.5);
}

.genesis-title {
    font-family: 'SD Dystopian', 'Orbitron', monospace, sans-serif;
    font-size: 4.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(45deg, 
        #00a2ff 0%, 
        #8b5cf6 25%, 
        #00d4ff 50%, 
        #a855f7 75%, 
        #00a2ff 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 
        0 0 20px rgba(0, 162, 255, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(0, 212, 255, 0.3);
    animation: nebula 8s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 162, 255, 0.5));
}

/* Cards and Components */
.card {
    background: rgba(13, 27, 42, 0.6) !important;
    border: 1px solid rgba(138, 43, 226, 0.15) !important;
}

.card-header {
    border-bottom: 1px solid rgba(138, 43, 226, 0.2) !important;
}

.card-footer {
    border-top: 1px solid rgba(138, 43, 226, 0.2) !important;
}

/* Modal Styling */
.modal-content {
    background: rgba(13, 27, 42, 0.71) !important;
    border: 1px solid rgba(138, 43, 226, 0.23) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(138, 43, 226, 0.2) !important;
}

.modal-footer {
    border-top: 1px solid rgba(138, 43, 226, 0.2) !important;
}

/* Form Controls */
.form-control, .form-select {
    background: rgba(13, 27, 42, 0.6) !important;
    border: 1px solid rgba(138, 43, 226, 0.23) !important;
    color: #fff !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(13, 27, 42, 0.68) !important;
    border: 1px solid rgba(0, 162, 255, 0.38) !important;
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.15) !important;
}

/* Navigation */
.navbar {
    background: rgba(13, 27, 42, 0.68) !important;
    border-bottom: 1px solid rgba(138, 43, 226, 0.15) !important;
}

/* Tables */
.table-dark {
    background: rgba(13, 27, 42, 0.6) !important;
}

/* Alerts */
.alert {
    border: 1px solid rgba(138, 43, 226, 0.2) !important;
}

/* Badges */
.badge {
    box-shadow: 0 2px 8px rgba(0, 162, 255, 0.2);
}

/* Text Colors for Space Theme */
.text-space-blue {
    color: #00a2ff !important;
}

.text-space-purple {
    color: #8a2be2 !important;
}

.text-space-cyan {
    color: #00ffff !important;
}

/* Progress Bars */
.progress {
    background: rgba(13, 27, 42, 0.8) !important;
}

.progress-bar {
    background: linear-gradient(45deg, #00a2ff, #8a2be2) !important;
}

/* List Groups */
.list-group-item {
    background: rgba(13, 27, 42, 0.8) !important;
    border: 1px solid rgba(138, 43, 226, 0.2) !important;
}

/* PATENT PROTECTION BLUR OVERLAYS */
.patent-protected {
    position: relative;
    filter: blur(6px) !important;
    user-select: none !important;
    pointer-events: none !important;
}

.patent-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.patent-protection-overlay .badge {
    font-size: 1.1rem;
    padding: 12px 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* MAXIMUM PERFORMANCE STARFIELD - TIMESTAMP 1752512400 */

/* Glass Nebula Button Animations */
@keyframes breathe {
    0%, 100% { 
        background: rgba(0, 162, 255, 0.15) !important;
        border-color: rgba(0, 162, 255, 0.3) !important;
        box-shadow: 0 4px 15px rgba(0, 162, 255, 0.2) !important;
    }
    50% { 
        background: rgba(0, 162, 255, 0.25) !important;
        border-color: rgba(0, 162, 255, 0.4) !important;
        box-shadow: 0 6px 20px rgba(0, 162, 255, 0.3) !important;
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3), inset 0 0 20px rgba(255, 193, 7, 0.1) !important;
    }
    50% { 
        box-shadow: 0 6px 25px rgba(255, 193, 7, 0.5), inset 0 0 30px rgba(255, 193, 7, 0.2) !important;
    }
}

/* Glass Nebula Button Base Styles */
.glass-nebula-btn {
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
}

.glass-nebula-btn:hover {
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

.glass-nebula-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

.glass-nebula-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.glass-nebula-btn:hover::before {
    left: 100%;
}
/* MOBILE CACHE BUSTER 1753494507 */
/* Force cache refresh */
/* Cache busting comment 1753546664 */
