/* Custom styles for Jet Finder */

:root {
    --jet-black: #000000;
    --jet-white: #FFFFFF;
    --jet-primary: #F05545;
    --jet-primary-dark: #E04537;
    --jet-primary-light: #FF6B5B;
    --jet-gray-dark: #212529;
    --jet-gray-medium: #343a40;
    --jet-gray-light: #495057;
    --jet-accent: #FFD700;
    --animation-speed: 0.3s;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#sky-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

body {
    background-color: transparent;
    color: var(--jet-white);
    font-family: 'Rajdhani', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Button styles */
.btn {
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all var(--animation-speed);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    padding: 0.5rem 1.5rem;
}

.btn-danger {
    background-color: var(--jet-primary);
    border-color: var(--jet-primary);
}

.btn-danger:hover {
    background-color: var(--jet-primary-light);
    border-color: var(--jet-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 85, 69, 0.4);
}

.btn-danger:disabled {
    background-color: var(--jet-gray-medium);
    border-color: var(--jet-gray-medium);
    color: var(--jet-gray-light);
}

/* Card styles */
.card {
    background-color: rgba(0, 0, 0, 0.85);
    border-color: var(--jet-gray-medium);
    border-radius: 0;
    overflow: hidden;
    transition: all var(--animation-speed);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--jet-primary);
    box-shadow: 0 0 20px rgba(240, 85, 69, 0.2);
}

/* Form control styles */
.form-control {
    background-color: rgba(33, 37, 41, 0.9);
    border-color: var(--jet-gray-medium);
    color: var(--jet-white);
    border-radius: 0;
    transition: all var(--animation-speed);
    font-weight: 500;
    font-size: 1rem;
}

.form-control:focus {
    background-color: rgba(33, 37, 41, 0.95);
    border-color: var(--jet-primary);
    color: var(--jet-white);
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 107, 0.25);
}

/* Input placeholder color */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Input number styles */
input[type="number"] {
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

/* Range slider styles */
.form-range::-webkit-slider-thumb {
    background-color: var(--jet-primary);
}

.form-range::-moz-range-thumb {
    background-color: var(--jet-primary);
}

.form-range::-webkit-slider-runnable-track {
    background-color: var(--jet-gray-medium);
}

.form-range::-moz-range-track {
    background-color: var(--jet-gray-medium);
}

/* Filter badge styles */
.filter-badge {
    background-color: var(--jet-gray-medium);
    color: var(--jet-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
    transition: all var(--animation-speed);
}

.filter-badge .close-btn {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.filter-badge .close-btn:hover {
    opacity: 1;
}

/* Priority button styles */
.priority-btn {
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    background-color: var(--jet-gray-medium);
    color: var(--jet-white);
    border: none;
    cursor: pointer;
    transition: all var(--animation-speed);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-left: 3px solid var(--jet-primary);
}

.priority-btn:hover {
    background-color: var(--jet-gray-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.priority-btn.active {
    background-color: var(--jet-primary);
    color: var(--jet-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 85, 69, 0.4);
}

/* Modern Aircraft Cards */
.aircraft-card {
    background: linear-gradient(145deg, var(--jet-gray-dark), var(--jet-gray-medium));
    border: 1px solid var(--jet-gray-medium);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.aircraft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(240, 85, 69, 0.2);
    border-color: var(--jet-primary);
}

.aircraft-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--jet-gray-medium), var(--jet-gray-dark));
}

.aircraft-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.aircraft-card:hover .aircraft-card-image img {
    transform: scale(1.05);
}

.aircraft-card-image .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(240, 85, 69, 0.9);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.aircraft-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aircraft-card-header {
    margin-bottom: 16px;
}

.aircraft-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.aircraft-card-manufacturer {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--jet-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aircraft-card-price {
    background: linear-gradient(135deg, var(--jet-primary), var(--jet-primary-dark));
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 16px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(240, 85, 69, 0.3);
}

.aircraft-card-price .price-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 500;
}

.aircraft-card-price .price-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.aircraft-card-specs {
    flex: 1;
    margin-bottom: 20px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(240, 85, 69, 0.1);
    border-color: rgba(240, 85, 69, 0.3);
}

.spec-item .spec-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jet-primary);
    display: block;
}

.spec-item .spec-label {
    font-size: 0.75rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 500;
}

.aircraft-card-features {
    margin-bottom: 20px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.aircraft-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-view-details {
    flex: 1;
    background: linear-gradient(135deg, #333, #444);
    border: 1px solid #555;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-details:hover {
    background: linear-gradient(135deg, var(--jet-primary), var(--jet-primary-dark));
    border-color: var(--jet-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 85, 69, 0.3);
}

.btn-show-range {
    background: rgba(0, 168, 107, 0.1);
    border: 1px solid var(--jet-primary);
    color: var(--jet-primary);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-show-range:hover {
    background: var(--jet-primary);
    color: white;
    transform: translateY(-2px);
}

/* Aircraft Card Responsive */
@media (max-width: 768px) {
    .aircraft-card-image {
        height: 200px;
    }
    
    .aircraft-card-content {
        padding: 16px;
    }
    
    .aircraft-card-price .price-value {
        font-size: 1.4rem;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .aircraft-card-actions {
        flex-direction: column;
    }
}

/* Aircraft Card Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aircraft-card {
    animation: slideInUp 0.6s ease-out;
}

.aircraft-card:nth-child(1) { animation-delay: 0.1s; }
.aircraft-card:nth-child(2) { animation-delay: 0.2s; }
.aircraft-card:nth-child(3) { animation-delay: 0.3s; }
.aircraft-card:nth-child(4) { animation-delay: 0.4s; }
.aircraft-card:nth-child(5) { animation-delay: 0.5s; }
.aircraft-card:nth-child(6) { animation-delay: 0.6s; }

/* Score badges */
.score-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.score-excellent { background: linear-gradient(135deg, var(--jet-primary), var(--jet-primary-dark)); color: white; }
.score-very-good { background: linear-gradient(135deg, #ff6b5b, #F05545); color: white; }
.score-good { background: linear-gradient(135deg, #ff8a80, #ff6b5b); color: white; }
.score-fair { background: linear-gradient(135deg, #ffab91, #ff8a80); color: white; }
.score-poor { background: linear-gradient(135deg, #ffcdd2, #ffab91); color: white; }

/* Aircraft grid layout - Square Cards */
.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.aircraft-card {
    aspect-ratio: 1;
    height: 350px;
    width: 350px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .aircraft-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Aircraft details section */
.aircraft-details {
    margin-top: 1rem;
    border-top: 1px solid var(--jet-gray-medium);
    padding-top: 1rem;
}

.aircraft-details h6 {
    color: var(--jet-accent);
    margin-bottom: 0.5rem;
}

.aircraft-details-table {
    width: 100%;
    font-size: 0.875rem;
}

.aircraft-details-table td {
    padding: 0.25rem 0;
}

.aircraft-details-table td:first-child {
    color: var(--jet-gray-light);
    width: 60%;
}

.aircraft-details-table td:last-child {
    color: var(--jet-white);
    font-weight: 500;
    text-align: right;
}

/* Section headers in details table */
.aircraft-details-table .section-header td {
    color: var(--jet-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding-top: 1rem;
    border-bottom: 1px solid var(--jet-gray-medium);
}

/* Progress bar styles */
.progress {
    background-color: var(--jet-gray-medium);
    height: 0.5rem;
    border-radius: 0;
    overflow: visible;
}

.progress-bar {
    background-color: var(--jet-primary);
    border-radius: 0;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--jet-accent);
}

/* Table styles */
.table {
    color: var(--jet-white);
    border-color: var(--jet-gray-medium);
    margin-bottom: 0;
}

.table-dark {
    background-color: var(--jet-black);
}

.table-dark th {
    background-color: var(--jet-gray-dark);
    border-color: var(--jet-gray-medium);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-dark td {
    border-color: var(--jet-gray-medium);
}

.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-danger, 
.table-danger:hover {
    background-color: rgba(var(--jet-primary-rgb), 0.2) !important;
}

/* Checkbox styles */
.aircraft-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#select-all-aircraft {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Loading indicator */
#loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--jet-primary);
}

/* Responsive table adjustments */
@media (max-width: 1200px) {
    .table-responsive {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        max-height: 50vh;
    }
}

/* Map container */
#map {
    border: 1px solid var(--jet-gray-medium);
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
    transition: all var(--animation-speed);
}

#map:hover {
    border-color: var(--jet-primary);
    box-shadow: 0 0 20px rgba(0, 168, 107, 0.2);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Glowing effect for important elements */
.glow {
    box-shadow: 0 0 10px var(--jet-primary);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--jet-primary); }
    to { box-shadow: 0 0 20px var(--jet-primary), 0 0 30px var(--jet-accent); }
}

/* Futuristic data visualization elements */
.data-line {
    height: 2px;
    background: linear-gradient(90deg, var(--jet-black) 0%, var(--jet-primary) 50%, var(--jet-black) 100%);
    width: 100%;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.data-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--jet-accent) 50%, transparent 100%);
    animation: dataFlow 3s infinite;
}

@keyframes dataFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Aircraft flying animation */
.aircraft-fly {
    position: absolute;
    top: 10%;
    left: -100px;
    width: 50px;
    height: 50px;
    background-image: url('../images/aircraft-silhouette.svg');
    background-size: contain;
    background-repeat: no-repeat;
    animation: flyAcross 30s linear infinite;
    opacity: 0.7;
    z-index: -1;
}

.aircraft-fly:nth-child(2) {
    top: 30%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.aircraft-fly:nth-child(3) {
    top: 60%;
    animation-delay: 15s;
    animation-duration: 35s;
}

@keyframes flyAcross {
    0% {
        left: -100px;
        transform: translateY(0);
    }
    20% {
        transform: translateY(20px);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .priority-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .aircraft-card .rank-badge {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Airport marker styles */
.airport-marker {
    background-color: transparent;
}

.airport-icon {
    background-color: #343a40;
    color: white;
    border: 2px solid var(--jet-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

.route-marker {
    background-color: transparent;
}

.route-icon {
    background-color: var(--jet-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

/* Route leg styles */
.route-leg {
    padding: 0.5rem;
    border-bottom: 1px solid var(--jet-gray-medium);
    transition: all var(--animation-speed);
}

.route-leg:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.remove-leg-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 50%;
}

/* Airport search results containers */
.airport-results,
#from-airport-results,
#to-airport-results,
#home-airport-results {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #212529 !important;
    border: 1px solid #495057 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: none !important;
}

/* Force show when not d-none - override Bootstrap */
.airport-results:not(.d-none),
#from-airport-results:not(.d-none),
#to-airport-results:not(.d-none),
#home-airport-results:not(.d-none) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the parent containers have relative positioning */
.input-group,
.form-group {
    position: relative !important;
}

/* Make sure these containers can handle absolute positioned children */
.col-md-6:has(#from-airport),
.col-md-6:has(#to-airport),
.form-group:has(#home-airport-search) {
    position: relative !important;
}

#from-airport-list,
#to-airport-list,
#home-airport-list {
    max-height: 200px !important;
    overflow-y: auto !important;
}

#from-airport-list .list-group-item,
#to-airport-list .list-group-item,
#home-airport-list .list-group-item {
    background-color: #212529 !important;
    color: #fff !important;
    border-color: #495057 !important;
    padding: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#from-airport-list .list-group-item:hover,
#to-airport-list .list-group-item:hover,
#home-airport-list .list-group-item:hover {
    background-color: #343a40 !important;
    color: #fff !important;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    background-color: var(--jet-gray-dark);
    color: var(--jet-white);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
    background-color: var(--jet-gray-dark);
}

.leaflet-popup-content {
    margin: 0.5rem 1rem;
    line-height: 1.4;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--jet-white);
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--jet-primary);
}

/* Custom dropdown multi-select styling */
.custom-dropdown {
    position: relative;
    height: 38px;
    cursor: pointer;
}

.custom-dropdown::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #F05545;
    font-size: 12px;
    pointer-events: none;
}

.custom-dropdown.open::after {
    content: '▲';
}

.custom-dropdown .selected-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
    padding-right: 25px; /* Make room for the dropdown arrow */
}

.custom-dropdown .selected-option {
    background-color: #F05545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.custom-dropdown .selected-option .remove-option {
    margin-left: 5px;
    cursor: pointer;
}

.custom-dropdown .options-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #212529;
    border: 1px solid #F05545;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 1001;
    transition: max-height 0.3s ease;
}

.custom-dropdown.open .options-dropdown {
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-dropdown.open {
    z-index: 1000;
}

.custom-dropdown.open .selected-options {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 0 0.25rem rgba(240, 85, 69, 0.25);
    border-color: #F05545;
}

.custom-dropdown .option-item {
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-dropdown .option-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-dropdown .option-item.selected {
    background-color: rgba(240, 85, 69, 0.2);
    border-left: 3px solid #F05545;
}

/* Badge animations - update red color references */
.badge.bg-danger {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 168, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
    }
}

.pagination-lg .page-link:hover {
    border-color: var(--jet-primary) !important;
    background-color: rgba(0, 168, 107, 0.1) !important;
    transform: translateY(-2px);
}

.pagination-lg .page-item.active .page-link {
    background-color: var(--jet-primary) !important;
    border-color: var(--jet-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--jet-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 107, 0.25) !important;
}

/* Results counter badge */
.results-counter {
    background-color: var(--jet-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Aircraft Data List Styling */
.aircraft-data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid rgba(0, 168, 107, 0.3);
    transition: all 0.3s ease;
}

.data-item:hover {
    background: rgba(0, 168, 107, 0.08);
    border-left-color: var(--jet-primary);
}

.data-item.highlight {
    background: rgba(0, 168, 107, 0.15);
    border-left-color: var(--jet-primary);
    border-left-width: 4px;
}

.data-label {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.data-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-align: right;
    margin-left: 10px;
    white-space: nowrap;
}

.data-value.score-value {
    color: var(--jet-primary);
    font-weight: 700;
    font-size: 1rem;
}

/* Responsive data list */
@media (max-width: 768px) {
    .data-item {
        padding: 4px 8px;
    }
    
    .data-label {
        font-size: 0.8rem;
    }
    
    .data-value {
        font-size: 0.85rem;
    }
}

/* Data Linkage Status Indicators */
.data-item.csv-linked {
    border-left: 3px solid #28a745; /* Green for direct CSV data */
    background: rgba(40, 167, 69, 0.05);
    position: relative;
}

.data-item.calculated-data {
    border-left: 3px solid #17a2b8; /* Blue for calculated data */
    background: rgba(23, 162, 184, 0.05);
    position: relative;
}

.data-item.not-csv-linked {
    border-left: 3px solid #dc3545; /* Red for missing/unavailable data */
    background: rgba(220, 53, 69, 0.05);
    position: relative;
    animation: pulse-warning 2s infinite;
}

/* Pulse animation for missing data */
@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Status indicators */
.data-item.csv-linked::before {
    content: "📊";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.7;
}

.data-item.calculated-data::before {
    content: "🧮";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.7;
}

.data-item.not-csv-linked::before {
    content: "⚠️";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    animation: blink 1s infinite;
}

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

/* Enhanced data item styling */
.data-item {
    padding: 8px 12px 8px 30px; /* Extra left padding for status icons */
    margin: 4px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.data-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tooltip for data source information */
.data-item[title] {
    cursor: help;
}

/* Legend for data status */
.aircraft-data-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-csv { background: #28a745; }
.legend-calculated { background: #17a2b8; }
.legend-missing { background: #dc3545; }

/* Icon styling in data values */
.data-value i {
    margin-left: 5px;
    opacity: 0.8;
    font-size: 0.8rem;
}

.data-value i.text-success { color: #28a745 !important; }
.data-value i.text-info { color: #17a2b8 !important; }
.data-value i.text-warning { color: #ffc107 !important; }
.data-value i.text-danger { color: #dc3545 !important; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .data-item {
        padding: 6px 10px 6px 25px;
        font-size: 0.9rem;
    }
    
    .data-item::before {
        left: -20px;
        font-size: 0.7rem;
    }
    
    .aircraft-data-legend {
        gap: 10px;
        font-size: 0.8rem;
    }
} 