#vfm-dashboard {
    font-family: sans-serif;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.vfm-filters-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.vfm-section-title {
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
    border: none;
    padding: 0;
}

.vfm-filters {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    min-height: auto;
    overflow: visible;
    padding: 0;
    background: none;
    border: none;
    margin: 0;
}

.vfm-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 12px;
    min-width: 180px;
    flex-shrink: 0;
    white-space: nowrap;
}

.vfm-filter-item label {
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}

.vfm-filter-item input,
.vfm-filter-item select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 120px;
    max-width: 200px;
    box-sizing: border-box;
}

#vfm-refresh-data {
    background-color: #003B63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.vfm-section {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.vfm-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}



#vfm-track-container {
    height: 600px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

#vfm-track-map {
    width: 100%;
    height: 100%;
    position: relative;
}

/* TimeDimension控件样式优化 */
.leaflet-control-container .leaflet-timeline-control {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leaflet-control-container .leaflet-timeline-control .timeline-date-display {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* 地图标记样式 */
.leaflet-marker-icon {
    border-radius: 50%;
}

.leaflet-popup-content {
    font-size: 14px;
    line-height: 1.4;
}

.vfm-loading-failed {
    color: #666;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 15px;
    display: inline-block;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

#vfm-stats-table {
    width: 100%;
    border-collapse: collapse;
}

#vfm-stats-table th,
#vfm-stats-table td {
    padding: 12px;
    text-align: left;
}

#vfm-stats-table thead {
    background-color: #003366;
    color: white;
}

#vfm-stats-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 响应式设计 */
@media (max-width: 1000px) {
    .vfm-filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .vfm-section-title {
        text-align: center;
    }
    
    .vfm-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .vfm-filter-item {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .vfm-filter-item input,
    .vfm-filter-item select {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .vfm-filters-container {
        padding: 15px;
        gap: 12px;
    }
    
    .vfm-filters {
        gap: 12px;
    }
    
    .vfm-filter-item {
        margin: 0;
    }
    
    .vfm-filter-item input,
    .vfm-filter-item select {
        padding: 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #vfm-dashboard {
        padding: 10px;
    }
    
    .vfm-filters {
        padding: 15px;
    }
    
    .vfm-section {
        padding: 15px;
    }
}