/**
 * BFM Shortcode: live_tracking - Tracking Live
 * 
 * @package BalloonFlightManager
 */

.bfm-live-tracking {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   Section Title
   ========================================================================== */
.bfm-section-title {
    color: #FF5722;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bfm-title-icon {
    font-size: 1.2em;
}

/* ==========================================================================
   Control Panel
   ========================================================================== */
.bfm-control-panel {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bfm-filters-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.bfm-filter-group {
    flex: 1;
    min-width: 180px;
}

.bfm-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.bfm-select,
.bfm-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.bfm-select:focus,
.bfm-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.bfm-filter-radius {
    min-width: 220px;
}

.bfm-radius-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bfm-radius-controls .bfm-input {
    width: 100px;
}

.bfm-radius-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Buttons */
.bfm-button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bfm-button-primary {
    background: #2196F3;
    color: #fff;
}

.bfm-button-primary:hover {
    background: #1976D2;
}

.bfm-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.bfm-button-secondary:hover {
    background: #e0e0e0;
}

/* Options Row */
.bfm-options-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.bfm-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

.bfm-toggle input {
    cursor: pointer;
}

.bfm-spacer {
    flex: 1;
}

.bfm-action-buttons {
    display: flex;
    gap: 10px;
}

/* Active Filters Info */
.bfm-active-filters {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    font-size: 14px;
}

/* ==========================================================================
   Map
   ========================================================================== */
.bfm-map-wrapper {
    position: relative;
}

.bfm-live-map {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bfm-map-instruction {
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: center;
    border-left: 4px solid #ffc107;
}

/* ==========================================================================
   Flights List
   ========================================================================== */
.bfm-active-flights {
    margin-top: 20px;
}

.bfm-active-flights h3 {
    margin-bottom: 15px;
    color: #333;
}

.bfm-flights-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Empty State */
.bfm-empty-state {
    background: #f5f5f5;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.bfm-empty-state p {
    margin: 0;
    color: #666;
}

/* Flight Card in List */
.bfm-live-flight-card {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bfm-live-flight-card:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bfm-live-flight-card.selected {
    background: #FFF3E0;
    border-color: #FF5722;
}

.bfm-live-flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.bfm-live-flight-card h4 {
    color: #FF5722;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.bfm-live-flight-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.bfm-live-flight-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Action Buttons */
.bfm-follow-btn,
.bfm-unfollow-btn,
.bfm-center-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.bfm-follow-btn {
    background: #2196F3;
    color: #fff;
}

.bfm-follow-btn:hover {
    background: #1976D2;
}

.bfm-unfollow-btn {
    background: #f44336;
    color: #fff;
}

.bfm-unfollow-btn:hover {
    background: #d32f2f;
}

.bfm-center-btn {
    background: #4CAF50;
    color: #fff;
}

.bfm-center-btn:hover {
    background: #388E3C;
}

/* ==========================================================================
   Popup Styles
   ========================================================================== */
.bfm-live-popup h3 {
    margin: 0 0 10px 0;
    color: #FF5722;
    font-size: 16px;
}

.bfm-live-popup p {
    margin: 5px 0;
    font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .bfm-filters-row {
        flex-direction: column;
    }
    
    .bfm-filter-group {
        width: 100%;
    }
    
    .bfm-options-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bfm-action-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .bfm-live-flight-card-header {
        flex-direction: column;
    }
    
    .bfm-live-flight-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 10px;
    }
    
    .bfm-live-flight-actions button {
        flex: 1;
    }
}
