/* Features Page Styles */

.features-main {
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0066cc, #00a8e8);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Polar Diagram Widget Styles */
.polar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.polar-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.polar-controls .control-group {
    flex: 1;
    min-width: 200px;
}

.polar-controls label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
}

.polar-chart-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.polar-chart-container canvas {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.polar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vmg-display {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.vmg-display h6 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.vmg-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.vmg-upwind, .vmg-downwind {
    text-align: center;
}

.vmg-upwind strong, .vmg-downwind strong {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.vmg-upwind div, .vmg-downwind div {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2196F3;
}

.polar-legend {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

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

/* Route Playback Controls */
.route-playback-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 400px;
}

.playback-panel {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.playback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.playback-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.playback-header button {
    padding: 2px 8px;
    font-size: 1.2rem;
    line-height: 1;
}

.playback-timeline {
    margin-bottom: 15px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.playback-timeline input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.progress-percentage {
    text-align: right;
    font-size: 0.85rem;
    color: #999;
}

.playback-controls-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.playback-controls-row button {
    flex-shrink: 0;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.speed-control label {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.speed-control select {
    width: 100px;
}

.playback-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.info-row strong {
    color: #555;
}

.info-row span {
    color: #2196F3;
    font-weight: 500;
}

.playback-footer {
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.playback-footer label {
    margin: 0;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Feature Buttons */
.feature-btn {
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.feature-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .route-playback-controls {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .playback-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .speed-control {
        margin-left: 0;
        width: 100%;
    }

    .speed-control select {
        flex: 1;
    }
}

/* Header Navigation */
.header-nav {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Feature Sections */
.feature-section {
    padding: 3rem 2rem;
    background: var(--dark-bg);
}

.dark-section {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 1rem auto 0 auto;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, var(--card-bg), #1a1a2e);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--secondary-color);
}

/* Compatibility Grid */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.compat-card {
    background: linear-gradient(135deg, var(--card-bg), #16213e);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.compat-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Installation Steps */
.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

.step-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer Info */
.footer-info {
    text-align: left;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border-radius: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-info h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
}

.footer-tagline {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-info > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-features-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.footer-feature-category {
    background: rgba(0, 168, 232, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.footer-feature-category h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.footer-feature-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-feature-category li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-feature-category li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.feature-highlights-summary {
    text-align: center;
    font-size: 1rem !important;
    margin-top: 2rem !important;
    padding: 1.5rem;
    background: rgba(0, 168, 232, 0.1);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.tech-stack {
    font-size: 0.95rem !important;
    margin-top: 2rem !important;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tech-stack strong {
    color: var(--secondary-color);
}

.feature-count {
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
    padding: 1rem;
    background: rgba(0, 168, 232, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-count strong {
    color: var(--secondary-color);
}

.footer-links {
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .header-nav {
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-section {
        padding: 2rem 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .compatibility-grid {
        grid-template-columns: 1fr;
    }

    .install-steps {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .footer-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ========== Weather Routing Styles ========== */

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.1), rgba(81, 207, 102, 0.1));
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 8px;
}

.featured {
    border: 2px solid #00aaff;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.05), rgba(81, 207, 102, 0.05));
}

.feature-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #00aaff, #51cf66);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.feature-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #00aaff;
}

.feature-highlight h3 {
    color: #00aaff;
    margin-bottom: 1rem;
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.demo-stat {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    text-align: center;
}

.demo-stat strong {
    color: #00aaff;
}

.demo-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.tech-details-list {
    list-style: decimal;
    padding-left: 2rem;
    margin: 1rem 0;
    color: var(--text-primary);
}

.tech-details-list li {
    padding: 0.6rem 0;
    line-height: 1.6;
}

.tech-details-list li strong {
    color: var(--secondary-color);
}

/* Weather Routing Modal */
.weather-routing-modal-content {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
}

.weather-routing-body {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1rem;
    height: 100%;
    padding: 1rem;
}

/* Control Panel */
.routing-control-panel {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 100%;
}

.control-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-section label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
}

.control-section input,
.control-section select {
    padding: 0.6rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    background: white;
}

.control-section input:disabled {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

.control-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00aaff, #51cf66);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f1f1f1;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Interactive Map Controls - Phase 2.1 */
.btn-toggle {
    padding: 0.7rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.btn-toggle:hover {
    background: #f8f9fa;
    border-color: #00aaff;
}

.btn-toggle.active {
    background: linear-gradient(135deg, #00aaff, #51cf66);
    color: white;
    border-color: #00aaff;
    box-shadow: 0 2px 8px rgba(0, 170, 255, 0.3);
}

.btn-toggle.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
}

/* Via-Points Section */
.via-points-section {
    margin-top: 0.5rem;
}

.via-point-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.via-point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.via-point-item:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: translateX(2px);
}

.via-point-item button {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.via-point-item button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.route-status {
    padding: 0.8rem;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 5px;
    font-size: 0.85rem;
    text-align: center;
    color: #666;
    border-left: 3px solid #00aaff;
}

/* Map Container */
.routing-map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#weather-routing-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Stats Panel */
.routing-stats-panel {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-y: auto;
}

.routing-stats-panel h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

#route-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #00aaff;
}

.stat-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
}

.stat-value {
    color: #00aaff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animation Controls */
.animation-controls-panel {
    background: rgba(0, 170, 255, 0.3) !important;
    padding: 1rem;
    border-radius: 8px;
    border: 3px solid #00aaff !important;
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    overflow: visible;
    min-height: 200px;
}

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

.progress-section label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #00aaff, #51cf66);
    border-radius: 12px;
    transition: width 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.progress-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.animation-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.speed-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.speed-controls label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    margin-right: 0.3rem;
}

.btn-speed {
    padding: 0.4rem 0.8rem;
    background: white;
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.btn-speed:hover {
    background: rgba(0, 170, 255, 0.1);
    border-color: #00aaff;
}

.btn-speed.active {
    background: linear-gradient(135deg, #00aaff, #51cf66);
    border-color: #00aaff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 170, 255, 0.3);
}

.speed-display {
    font-weight: 700;
    font-size: 0.9rem;
    color: #00aaff;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    min-width: 50px;
    text-align: center;
}

/* Route Comparison */
.route-comparison-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 170, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.route-comparison-section h4 {
    margin: 0 0 1rem 0;
    color: #00aaff;
    font-size: 1.1rem;
}

.route-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.route-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.route-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.route-toggle input[type="checkbox"] {
    cursor: pointer;
}

.route-toggle-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.route-toggle-label {
    color: #fff;
    font-size: 0.9rem;
}

.comparison-table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.comparison-table th {
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    font-weight: 600;
}

.comparison-table td {
    color: #e0e0e0;
}

.comparison-table tr:hover {
    background: rgba(0, 170, 255, 0.05);
}

.comparison-route-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-route-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.time-saved-positive {
    color: #4CAF50;
    font-weight: 600;
}

.time-saved-negative {
    color: #F44336;
}

/* Responsive */
@media (max-width: 1200px) {
    .weather-routing-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .routing-control-panel,
    .routing-stats-panel {
        max-height: none;
    }

    #weather-routing-map {
        min-height: 400px;
    }
}

/* Map Controls Overlay */
.map-controls-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.map-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-control-group label {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

.map-control-group select {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.map-control-group select:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Time Slider */
.time-slider-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    min-width: 400px;
}

.time-slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

#time-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00aaff;
    cursor: pointer;
}

#time-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00aaff;
    cursor: pointer;
    border: none;
}

#time-slider-label {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    min-width: 120px;
}

/* Wind Arrow Styles */
.wind-arrow {
    width: 30px;
    height: 30px;
    position: relative;
}

.wind-arrow-line {
    stroke-width: 2;
    stroke-linecap: round;
}

.wind-arrow-head {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Route Playback Panel */
.route-playback-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.route-playback-panel h4 {
    color: #ffeb3b;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 16px;
}

.playback-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-playback-speed {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-playback-speed.active {
    background: #ffeb3b;
    color: black;
    border-color: #ffeb3b;
}

.btn-playback-speed:hover {
    background: rgba(255, 235, 59, 0.3);
}

.playback-info {
    margin-top: 0.5rem;
}

/* Boat Marker Animation */
.boat-marker {
    animation: boat-pulse 2s ease-in-out infinite;
}

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