/* Allgemeine Styling-Verbesserungen */
.tour-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.tour-description {
    max-width: 600px;
    color: #000000;
    background: rgba(255,255,255,0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-shadow: none;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.1);
}

.tour-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
}

/* Zurück-Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f0f5ff;
    margin-bottom: 1rem;
}

.btn-back:hover {
    background: #e0e7ff;
    transform: translateX(-3px);
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* Section Title - Enhanced */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #1abc9c, #9b59b6);
    border-radius: 2px;
}

.section-title .fas {
    color: #3498db;
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

/* Leg Cards - Enhanced modern design */
.leg-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
}

.leg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #1abc9c, #9b59b6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 6px 20px rgba(0,0,0,0.08);
}

.leg-card:hover::before {
    opacity: 1;
}

.leg-number {
    position: absolute;
    left: -22px;
    top: -22px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3c72, #2c5282);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.4), 0 2px 6px rgba(30, 60, 114, 0.2);
    border: 3px solid rgba(255, 255, 255, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.leg-card:hover .leg-number {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.5), 0 4px 12px rgba(30, 60, 114, 0.3), 0 0 20px rgba(30, 60, 114, 0.3);
    background: linear-gradient(135deg, #2c5282, #1e3c72);
}

/* Ensure leg numbers are always visible */
.leg-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: -1;
}

.leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.leg-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leg-header .fas.fa-arrow-right {
    color: #3498db;
    font-size: 1rem;
}

.leg-distance {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.leg-card:hover .leg-distance {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.leg-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.detail-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.scenery-rating .fas {
    color: #f39c12;
}

.scenery-rating .fa-star-o {
    color: #ddd;
}

/* Leg Actions */
.leg-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.leg-actions .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern Button Styles - Updated to match dashboard styling */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-outline-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 0.25rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #1a3a5f 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.btn-outline-info {
    background: linear-gradient(135deg, #5bc0de 0%, #31b0d5 100%);
    color: white;
    border: none;
}

.btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover, .btn-outline-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #31b0d5 0%, #5bc0de 100%);
    color: white;
}

.btn-primary i, .btn-secondary i, .btn-success i, .btn-danger i, .btn-warning i, .btn-info i, .btn-outline-info i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i, .btn-secondary:hover i, .btn-success:hover i, .btn-danger:hover i, .btn-warning:hover i, .btn-info:hover i, .btn-outline-info:hover i {
    transform: translateX(3px);
}

/* Kartencontainer - NUR EINMAL! */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    background-color: #0080ff; /* Hintergrund falls Karte nicht lädt */
}

/* Responsive für mobile Geräte - Enhanced */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .leg-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .leg-number {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        left: -18px;
        top: -18px;
        border-width: 2px;
    }

    .leg-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .leg-header h3 {
        font-size: 1.2rem;
    }

    .leg-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .leg-sights, .leg-route, .leg-comments {
        padding: 1rem;
    }

    .weather-card {
        padding: 0.75rem;
    }

    .leg-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .leg-actions .btn {
        width: 100%;
        padding: 0.5rem 1rem;
    }

    .comment-item {
        padding: 0.75rem;
    }
}

/* Popup-Styling für Leaflet */
.leaflet-popup-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 12px;
    font-size: 14px;
    min-width: 150px;
}

.leaflet-popup-content b {
    color: #1e3c72;
}

.leaflet-popup-content i {
    margin-right: 5px;
    color: #3498db;
}

/* Schwierigkeitsstufen */
.difficulty-easy .detail-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.difficulty-medium .detail-icon {
    background: #fff3e0;
    color: #ff9800;
}

.difficulty-hard .detail-icon {
    background: #ffebee;
    color: #f44336;
}

/* Hover-Effekt für Karten-Button */
.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Leg sights and route sections - Enhanced modern design */
.leg-sights, .leg-route {
    border-left: 4px solid #3498db;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.9), rgba(230, 240, 255, 0.8));
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leg-sights::before, .leg-route::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    opacity: 0.6;
}

.leg-sights:hover, .leg-route:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.leg-sights h5, .leg-route h5 {
    color: #1e3c72;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leg-sights h5 .fas, .leg-route h5 .fas {
    color: #3498db;
    font-size: 0.9rem;
}

.leg-sights p, .leg-route p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Weather card styling */
.weather-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.weather-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Comments section styling */
.leg-comments {
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.9), rgba(230, 240, 255, 0.8));
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.leg-comments:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.comment-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #374151;
    line-height: 1.5;
}
/* Ensure flight routes are perfectly centered */
.leg-list-container {
    width: 100%;
    max-width: 800px; /* Limit width similar to hero section */
    margin: 0 auto;
    padding: 0 1rem; /* Add some padding for smaller screens */
}

.leg-list-container .leg-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure proper centering on all screen sizes */
@media (max-width: 991px) {
    .leg-list-container {
        width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem; /* Reduce padding on smaller screens */
    }
    
    .leg-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== REJECTION STATUS COMPONENT ===== */
.rejection-status-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(252, 231, 231, 0.9));
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.rejection-status-card:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
}

.rejection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rejection-header .rejection-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.rejection-title {
    flex-grow: 1;
}

.rejection-title h6 {
    margin: 0;
    color: #991b1b;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.rejection-timestamp {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.rejection-content {
    margin-bottom: 1rem;
}

.rejection-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid #dc2626;
}

.rejection-reason i {
    color: #dc2626;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.reason-text {
    color: #374151;
    line-height: 1.5;
    font-size: 0.9rem;
}

.reason-text strong {
    color: #991b1b;
    font-weight: 600;
}

.rejection-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-retry {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: white;
}

.btn-retry:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rejection-status-card {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .rejection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rejection-header .rejection-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .rejection-reason {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rejection-reason i {
        margin-top: 0;
    }
    
    .rejection-actions {
        justify-content: center;
    }
    
    .btn-retry {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for new rejection status */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rejection-status-card {
    animation: slideInFromTop 0.4s ease-out;
}

/* Dark mode support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .rejection-status-card {
        background: linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(153, 27, 27, 0.15));
        border-color: rgba(220, 38, 38, 0.3);
    }

    .rejection-reason {
        background: rgba(0, 0, 0, 0.2);
    }

    .reason-text {
        color: #d1d5db;
    }
}

/* ===== DRAG AND DROP UPLOAD ZONE ===== */
.drop-zone {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.8), rgba(230, 240, 255, 0.6));
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 1rem;
}

.drop-zone::before {
    content: '\f030'; /* camera icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #3498db;
    display: block;
    margin-bottom: 1rem;
}

.drop-zone::after {
    content: 'Drag & drop your image here or click to browse';
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.drop-zone.dragover {
    border-color: #2980b9;
    background: linear-gradient(135deg, rgba(220, 240, 255, 0.9), rgba(200, 230, 255, 0.8));
    transform: scale(1.02);
}

.drop-zone.dragover::before {
    color: #2980b9;
    transform: scale(1.1);
}

.drop-zone.dragover::after {
    content: 'Drop your image here!';
    color: #2980b9;
    font-weight: 600;
}

.drop-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-zone.has-file::after {
    content: 'File selected: ' attr(data-file-name);
    color: #27ae60;
    font-weight: 600;
}

.drop-zone.has-file::before {
    content: '\f058'; /* check-circle icon */
    color: #27ae60;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .drop-zone {
        padding: 1.5rem 1rem;
    }

    .drop-zone::before {
        font-size: 2.5rem;
    }

    .drop-zone::after {
        font-size: 0.9rem;
    }
}


/* ===== CLICKABLE IMAGES ===== */
.clickable-image {
    transition: all 0.3s ease;
    position: relative;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.clickable-image::after {
    content: '\f00e'; /* search-plus icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.clickable-image:hover::after {
    opacity: 1;
}

.image-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Image modal enhancements */
#imageModal .modal-body img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#imageModal .modal-body p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

#imageModal .text-muted {
    font-size: 0.9rem;
}

/* ===== COMMUNITY PROGRESS TABLE ===== */
/* Simple, clean table styling using Bootstrap defaults */
.table-responsive .table {
    width: 100%;
    table-layout: auto;
}

.table th, .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User column styling */
.user-column {
    min-width: 150px;
    text-align: left !important;
    padding-left: 1rem !important;
}

.user-cell {
    text-align: left !important;
    padding-left: 1rem !important;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info strong {
    color: #1e3c72;
    font-weight: 600;
}

/* Leg column styling */
.leg-column {
    min-width: 100px;
    width: 120px;
}

.leg-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.leg-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.leg-route {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    cursor: help;
}

.status-badge.completed {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.status-badge.submitted {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.status-badge.started {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.status-badge.rejected {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.status-badge.not-started {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.status-badge:hover {
    transform: scale(1.1);
}

/* Progress column styling */
.progress-column {
    min-width: 120px;
}

.progress-cell {
    text-align: left !important;
    padding-left: 1rem !important;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #1abc9c, #9b59b6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Highlight current user row */
.progress-row[data-current-user="true"] {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
}

.progress-row[data-current-user="true"] .user-info strong {
    color: #3498db;
}

/* Responsive design for progress grid */
@media (max-width: 1200px) {
    .progress-grid {
        font-size: 0.8rem;
    }

    .progress-grid th,
    .progress-grid td {
        padding: 0.5rem 0.25rem;
    }

    .leg-route {
        font-size: 0.9rem;
    }

    .status-badge {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .leg-column {
        min-width: 100px;
        width: 100px;
    }
}

@media (max-width: 768px) {
    .progress-grid-container {
        margin: 1rem 0;
        border-radius: 8px;
    }

    .progress-grid-wrapper {
        padding: 0.5rem;
    }

    .progress-grid {
        font-size: 0.8rem;
    }

    .progress-grid th,
    .progress-grid td {
        padding: 0.4rem 0.2rem;
    }

    .leg-header {
        gap: 0.1rem;
    }

    .leg-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .leg-route {
        font-size: 0.8rem;
    }

    .status-badge {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .progress-text {
        font-size: 0.7rem;
    }

    .leg-column {
        min-width: 80px;
        width: 80px;
    }
}

@media (max-width: 576px) {
    .progress-grid-container {
        margin: 0.5rem 0;
    }

    .progress-grid-wrapper {
        padding: 0.25rem;
    }

    .progress-grid {
        font-size: 0.75rem;
    }

    .progress-grid th,
    .progress-grid td {
        padding: 0.3rem 0.15rem;
    }

    .leg-number {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    .leg-route {
        font-size: 0.75rem;
    }

    .status-badge {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }

    .progress-text {
        font-size: 0.65rem;
    }

    .leg-column {
        min-width: 70px;
        width: 70px;
    }
}

/* Animation for progress grid */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-grid-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Dark mode support for progress grid */
@media (prefers-color-scheme: dark) {
    .progress-grid-container {
        background: rgba(30, 60, 114, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .progress-grid {
        background: rgba(30, 60, 114, 0.05);
        color: #e2e8f0;
    }

    .progress-grid th {
        background: linear-gradient(135deg, #1e3c72, #2c5282);
    }

    .progress-grid tbody tr {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .progress-grid tbody tr:hover {
        background: rgba(52, 152, 219, 0.1);
    }

    .progress-grid td {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .user-info strong {
        color: #e2e8f0;
    }

    .progress-text {
        color: #a0aec0;
    }

    .status-badge.not-started {
        background: #374151;
        border-color: #4b5563;
        color: #9ca3af;
    }
}

/* ===== QUICK FIX: Make Community Progress table horizontally scrollable =====
   Added to ensure tours with many legs remain visible (prevents clipping of columns).
*/
.community-progress-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
    width: 100%;
}

/* Let the table grow to its natural width so columns are not forced to wrap/clip */
.community-progress-wrapper table {
    min-width: max-content;
    table-layout: auto; /* allow columns to size based on content */
}

/* Improve keyboard accessibility when the table is focused */
.community-progress-wrapper:focus {
    outline: 3px solid rgba(52,152,219,0.25);
    outline-offset: 4px;
}

/* ===== COMMUNITY PROGRESS - VISUAL UPDATE (sticky pilot, compact layout) =====
   Implements the appearance requested in the screenshot: compact rows, sticky left Pilot column,
   sticky header, green completed cells, thin borders, subtle zebra rows, small monospace font.
   Works together with the existing JS pagination / horizontal-scroll wrapper.
   Files changed:
     - [`templates/tour_detail.html`](templates/tour_detail.html:414) (table markup already updated)
     - [`static/css/tour_detail.css`](static/css/tour_detail.css:1) (this block)
*/

/* Compact table baseline */
.compact-progress-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Roboto Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: #1f2937; /* slate-800 */
}

/* Thin borders and compact padding */
.compact-progress-table th,
.compact-progress-table td {
    padding: 4px 6px;
    border: 1px solid #e5e7eb; /* light gray */
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

/* Sticky header */
.compact-progress-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    z-index: 30;
    font-weight: 700;
    font-size: 0.82rem;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
}

/* Compact stacked leg header */
.leg-header-compact {
    display: block;
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.05;
    color: #0f172a;
}

/* Pilot column - sticky left */
.compact-progress-table th.pilot-column,
.compact-progress-table td.pilot-cell {
    position: sticky;
    left: 0;
    z-index: 40;
    background: #ffffff;
    text-align: left;
    padding-left: 12px;
    min-width: 180px; /* wide enough for "rank + name - callsign" */
    border-right: 1px solid #e6edf3;
}

/* Complete column */
.compact-progress-table th.complete-column,
.compact-progress-table td.complete-column {
    background: #ffffff;
    min-width: 120px;
    font-weight: 600;
}

/* Completed cell visual */
.compact-progress-table td.completed-cell {
    background: #9AE6B4; /* soft green */
    color: #064e3b; /* dark green text if needed */
}

/* Status icon sizing and centering */
.compact-progress-table td i {
    display: inline-block;
    font-size: 0.95rem;
}

/* Subtle zebra rows */
.compact-progress-table tbody tr:nth-child(even) {
    background: #fbfdfe;
}

/* Hover highlight for rows */
.compact-progress-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.04);
}

/* Reduce header cell height slightly for compactness */
.compact-progress-table thead th { padding: 6px 4px; }

/* Make small text readable on narrow columns */
@media (max-width: 1200px) {
    .compact-progress-table th,
    .compact-progress-table td { padding: 5px 6px; font-size: 0.78rem; }
    .compact-progress-table th.pilot-column,
    .compact-progress-table td.pilot-cell { min-width: 200px; }
}

/* Ensure the scroll wrapper still works (keeps previous rules) */
.community-progress-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Accessibility focus outline for keyboard users */
.community-progress-wrapper:focus {
    outline: 3px solid rgba(59,130,246,0.18);
    outline-offset: 3px;
}

/* Tighten table appearance when printing or large exports */
@media print {
    .compact-progress-table { font-size: 10pt; }
    .compact-progress-table th, .compact-progress-table td { padding: 4px; }
}

/* ===== MODERN PROGRESS TABLE ENHANCEMENTS =====
   Makes the community progress table look modern and future-proof:
   - Rounded corners and subtle shadow
   - Gradient header background
   - Smooth hover animations
   - Better color coding for status
   - Improved typography and spacing
   - Responsive design
*/

/* Modern table container */
.modern-progress-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

/* Enhanced header */
.modern-progress-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 12px 8px;
    border: none;
    position: relative;
}

/* Header text shadows for depth */
.modern-progress-table thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    z-index: -1;
}

/* Body rows with subtle alternating */
.modern-progress-table tbody tr:nth-child(even) {
    background: rgba(102, 126, 234, 0.02);
}

.modern-progress-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.8);
}

/* Smooth hover effect */
.modern-progress-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.modern-progress-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced completed cells */
.modern-progress-table .completed-cell {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-progress-table .completed-cell::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

/* Better status icons */
.modern-progress-table .leg-column i {
    transition: transform 0.2s ease;
}

.modern-progress-table tbody tr:hover .leg-column i {
    transform: scale(1.1);
}

/* Pilot column link styling */
.modern-progress-table .pilot-cell a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modern-progress-table .pilot-cell a:hover {
    color: #2b6cb0;
}

/* Progress column styling */
.modern-progress-table .complete-column {
    font-weight: 700;
    color: #2d3748;
}

/* Sorting buttons */
.sort-btn {
    transition: all 0.2s ease;
    border-radius: 6px;
}

.sort-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.sort-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-progress-table {
        border-radius: 8px;
        font-size: 0.7rem;
    }

    .modern-progress-table thead th {
        padding: 8px 4px;
        font-size: 0.65rem;
    }

    .modern-progress-table th,
    .modern-progress-table td {
        padding: 6px 4px;
    }

    .sort-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Accessibility improvements */
.modern-progress-table [data-bs-toggle="tooltip"] {
    cursor: help;
}

.modern-progress-table [data-bs-toggle="tooltip"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .modern-progress-table {
        box-shadow: none;
        border: 1px solid #000;
    }

    .modern-progress-table thead th {
        background: #000 !important;
        color: #fff !important;
    }

    .modern-progress-table .completed-cell {
        background: #000 !important;
        color: #fff !important;
    }
}

/* ===== FUTURE-LOOKING COMMUNITY PROGRESS =====
   Complete redesign with modern aesthetics, animations, and enhanced UX
*/

.future-community-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.future-community-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.future-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    animation: future-pulse 2s infinite;
    margin: 0 auto 1rem;
}

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

.future-icon {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.future-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.future-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

.future-control-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-future {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-future:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-future-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-future-outline:hover {
    background: #667eea;
    color: white;
}

.future-stats {
    color: #64748b;
    font-weight: 500;
}

.future-table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.future-progress-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.future-table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4c51bf 100%);
    color: white;
    position: relative;
}

.future-table-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
}

.future-pilot-header {
    position: sticky;
    left: 0;
    z-index: 50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 1rem;
    text-align: left;
    min-width: 250px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.future-leg-header {
    padding: 1rem 0.5rem;
    text-align: center;
    min-width: 100px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.future-leg-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.future-leg-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.future-leg-route {
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 600;
}

.future-departure, .future-arrival {
    display: block;
}

.future-leg-distance {
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 500;
}

.future-progress-header {
    padding: 1.5rem 1rem;
    text-align: center;
    min-width: 150px;
    position: sticky;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Table Body */
.future-progress-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.future-progress-row:nth-child(even) {
    background: rgba(102, 126, 234, 0.02);
}

.future-progress-row:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.future-current-user-row {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.08) 0%, rgba(26, 58, 95, 0.04) 100%);
    border-left: 4px solid #3498db;
    box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.1);
}

.future-current-user-row .future-pilot-cell {
    background: linear-gradient(135deg, #3498db 0%, #1a3a5f 100%) !important;
    position: relative;
    z-index: 45;
    overflow: hidden;
}

.future-current-user-row .future-progress-cell {
    background: linear-gradient(135deg, #3498db 0%, #1a3a5f 100%);
    position: sticky !important;
    right: 0 !important;
    z-index: 45;
    overflow: hidden;
}

.future-current-user-row .future-status-cell {
    background: rgba(102, 126, 234, 0.03);
    position: relative;
    z-index: 40;
    overflow: hidden;
}

/* Pilot Cell */
.future-pilot-cell {
    position: sticky;
    left: 0;
    z-index: 40;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.future-current-user-row .future-pilot-cell {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(168, 85, 247, 0.05));
    position: sticky !important;
    left: 0 !important;
    z-index: 45;
    overflow: hidden;
}

.future-pilot-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.future-pilot-link:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.future-pilot-avatar {
    flex-shrink: 0;
}

.future-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.future-pilot-link:hover .future-avatar-img {
    border-color: #667eea;
    transform: scale(1.1);
}

.future-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.future-pilot-link:hover .future-avatar-placeholder {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.future-pilot-info {
    flex-grow: 1;
    min-width: 0;
}

.future-pilot-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.future-pilot-link:hover .future-pilot-name {
    color: #667eea;
}

.future-you-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.future-pilot-joined {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Status Cells */
.future-status-cell {
    text-align: center;
    padding: 1rem 0.5rem;
    position: relative;
}

.future-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.future-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
    overflow: hidden;
}

.future-status-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    opacity: 0.3;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.future-status-icon:hover::before {
    transform: scale(1.2);
}

.future-completed {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    animation: future-completed-pulse 2s infinite;
}

@keyframes future-completed-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.future-submitted {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: white;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
}

.future-started {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 179, 237, 0.3);
}

.future-rejected {
    background: linear-gradient(135deg, #fc8181, #e53e3e);
    color: white;
    box-shadow: 0 4px 12px rgba(252, 129, 129, 0.3);
}

.future-not-started {
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.future-status-completed {
    background: rgba(72, 187, 120, 0.1);
}

/* Progress Cell */
.future-progress-cell {
    position: sticky;
    right: 0;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    min-width: 150px;
}

.future-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.future-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.future-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #4c51bf 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.future-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: future-shimmer 2s infinite;
}

@keyframes future-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.future-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.future-percentage {
    font-weight: 700;
    color: #1e293b;
}

.future-fraction {
    color: #64748b;
    font-weight: 500;
}

/* Footer Stats */
.future-stats-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #64748b;
}

.future-stats-card i {
    color: #48bb78;
    font-size: 1.1rem;
}

.future-stats-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.future-separator {
    color: #cbd5e1;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .future-leg-header {
        min-width: 90px;
        padding: 0.75rem 0.25rem;
    }

    .future-leg-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .future-leg-route {
        font-size: 0.7rem;
    }

    .future-leg-distance {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .future-title {
        font-size: 2rem;
    }

    .future-control-panel {
        padding: 1rem;
    }

    .btn-future {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .future-pilot-header,
    .future-progress-header {
        padding: 1rem 0.5rem;
        min-width: 120px;
    }

    .future-pilot-link {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .future-avatar-img,
    .future-avatar-placeholder {
        width: 40px;
        height: 40px;
    }

    .future-pilot-name {
        font-size: 0.9rem;
    }

    .future-status-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .future-progress-cell {
        padding: 0.75rem 0.5rem;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .future-community-bg {
        padding: 2rem 0;
    }

    .future-icon-container {
        width: 60px;
        height: 60px;
    }

    .future-icon {
        font-size: 1.5rem;
    }

    .future-title {
        font-size: 1.75rem;
    }

    .future-control-panel {
        padding: 0.75rem;
    }

    .future-leg-header {
        min-width: 70px;
        padding: 0.5rem 0.25rem;
    }

    .future-leg-info {
        gap: 0.1rem;
    }

    .future-leg-number {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .future-leg-route {
        font-size: 0.65rem;
    }

    .future-leg-distance {
        display: none;
    }

    .future-pilot-cell {
        min-width: 200px;
    }

    .future-pilot-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .future-avatar-img,
    .future-avatar-placeholder {
        width: 36px;
        height: 36px;
    }

    .future-pilot-name {
        font-size: 0.85rem;
    }

    .future-status-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Accessibility */
.future-progress-table [data-bs-toggle="tooltip"] {
    cursor: help;
}

.future-progress-table [data-bs-toggle="tooltip"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Compact View Mode */
.future-progress-table.compact-view .future-leg-header {
    padding: 0.5rem 0.25rem;
    min-width: 60px;
}

.future-progress-table.compact-view .future-leg-number {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
}

.future-progress-table.compact-view .future-leg-route {
    font-size: 0.65rem;
}

.future-progress-table.compact-view .future-leg-distance {
    display: none;
}

.future-progress-table.compact-view .future-status-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.future-progress-table.compact-view .future-pilot-link {
    padding: 0.5rem;
}

.future-progress-table.compact-view .future-avatar-img,
.future-progress-table.compact-view .future-avatar-placeholder {
    width: 32px;
    height: 32px;
}

.future-progress-table.compact-view .future-pilot-name {
    font-size: 0.85rem;
}

.future-progress-table.compact-view .future-progress-cell {
    padding: 0.5rem;
    min-width: 120px;
}

/* Print Styles */
@media print {
    .future-community-bg {
        background: white !important;
    }

    .future-table-container {
        box-shadow: none;
        border: 1px solid #000;
    }

    .future-table-header {
        background: #000 !important;
        color: #fff !important;
    }

    .future-completed {
        background: #000 !important;
        color: #fff !important;
    }

    .future-progress-fill {
        background: #000 !important;
    }
}
