/* Network Profiler Dashboard Styles */

body { 
    font-family: Arial, sans-serif; 
    margin: 20px; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* File List Styles */
.file-list { 
    margin-bottom: 20px; 
}

.file-item { 
    padding: 10px; 
    border: 1px solid #ddd; 
    margin: 5px 0; 
    cursor: pointer;
    border-radius: 4px;
}

.file-item:hover { 
    background: #f0f0f0; 
}

.file-item.loading { 
    background: #fff3cd; 
    border-color: #ffeaa7; 
}

.file-item.complete { 
    background: #d4edda; 
    border-color: #c3e6cb; 
}

.file-item.error { 
    background: #f8d7da; 
    border-color: #f5c6cb; 
}

/* Progress Bar Styles */
.progress-container { 
    margin: 10px 0; 
}

.progress-bar { 
    width: 100%; 
    height: 20px; 
    background: #f0f0f0; 
    border-radius: 10px; 
    overflow: hidden;
}

.progress-fill { 
    height: 100%; 
    background: #007bff; 
    transition: width 0.3s ease;
}

.progress-text { 
    font-size: 12px; 
    color: #666; 
    margin-top: 5px;
}

/* Chart Styles */
.chart-section { 
    margin-top: 20px; 
    display: none;
}

.chart-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.chart-controls h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #495057;
}

.chart-controls label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}

.chart-controls input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.chart-container { 
    height: 400px;
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Burst Analysis Styles */
.burst-container {
    margin-top: 20px;
    display: none;
    clear: both;
}

.burst-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.burst-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 15px 0;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.burst-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    font-weight: bold;
    font-size: 1.1em;
}

.burst-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.burst-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.burst-section h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.contribution-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9em;
}

.contribution-item:last-child {
    border-bottom: none;
}

.contribution-item span:first-child {
    flex: 1;
    padding-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contribution-item span:last-child {
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* Overall Analysis Styles */
.overall-container {
    margin-top: 20px;
    display: none;
    clear: both;
}

/* IP Analysis Styles */
.ip-analysis-container {
    margin-top: 20px;
    display: none;
    clear: both;
}

.table-container {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-container h3 {
    margin-top: 0;
    color: #495057;
}

.sortable-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sortable-table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sortable-table th:hover {
    background: #e9ecef;
}

.sortable-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #dee2e6;
}

.sortable-table tbody tr:hover {
    background: #f8f9fa;
}

.sortable-table tr.highlight {
    background: #fff3cd;
}

.number-cell {
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Stats Grid */
.stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 10px; 
    margin: 10px 0;
}

.stat-item { 
    padding: 8px; 
    background: #f8f9fa; 
    border-radius: 4px; 
    text-align: center;
}

/* Cache Info */
.cache-info { 
    margin: 20px 0; 
    padding: 10px; 
    background: #e9ecef; 
    border-radius: 4px;
}
