#summaryPanel {
position: absolute;
top: 10px;
right: 10px;
width: 450px;
background-color: #1c1c1c;
border: 1px solid #444;
border-radius: 8px;
z-index: 15;
overflow-y: auto;
max-height: calc(100vh - 55px);
color: #e0e0e0;
padding: 15px;
box-sizing: border-box;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#summaryPanel.temporarily-hidden {
display: none !important;
}

#summaryPanel h2 {
text-align: center;
margin-top: 0;
margin-bottom: 20px;
font-size: 22px;
}

.summary-section {
    margin-bottom: 25px;
}

#summaryPanel .summary-section:last-child {
margin-bottom: 0;
}

.summary-section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

#summary-stats-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}

.summary-stat {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.summary-stat .stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.summary-stat .stat-label {
    font-size: 12px;
    color: #aaa;
}

#summary-chart {
width: 100%;
height: 120px;
margin-bottom: 10px;
}

#summary-chart .chart-wrapper {
position: relative;
width: 100%;
height: 100%;
}

#summary-chart .y-axis-svg {
position: absolute;
left: 0;
top: 0;
height: 100%;
pointer-events: none;
}

#summary-chart .scroll-container {
overflow-x: auto;
overflow-y: hidden;
height: 100%;
margin-left: 50px;
}

#summary-chart .tick line {
stroke: #444;
}

#summary-chart .tick text {
fill: #aaa;
font-size: 10px;
}

#summary-chart .chart-line {
fill: none;
stroke-width: 2px;
stroke: #66bb6a;
}

#summary-chart .chart-point {
stroke-width: 1px;
stroke: #1c1c1c;
fill: #66bb6a;
}

#trend-rank-controls {
display: flex;
justify-content: center;
gap: 10px;
margin-bottom: 10px;
}

.trend-toggle-btn {
    background-color: #333;
    border: 1px solid #555;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s, color 0.2s;
}

.trend-toggle-btn.active,
.trend-toggle-btn:hover {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

#trend-rank-table-container {
max-height: 300px;
overflow-y: auto;
border: 1px solid #444;
border-radius: 6px;
}

#trend-rank-table-container table {
width: 100%;
border-collapse: collapse;
}

#trend-rank-table-container th,
#trend-rank-table-container td {
padding: 8px;
text-align: left;
font-size: 13px;
border-bottom: 1px solid #333;
}

#trend-rank-table-container th {
background-color: #333;
position: sticky;
top: 0;
}

#trend-rank-table-container th:first-child,
#trend-rank-table-container td:first-child {
width: 35px;
text-align: center;
}

#trend-rank-table-container td:first-child {
color: #888;
}

#trend-rank-table-container th:last-child,
#trend-rank-table-container td:last-child {
width: 70px;
text-align: center;
}

#trend-rank-table-container td:last-child {
font-weight: bold;
}


#trend-rank-table-container .server-name {
cursor: pointer;
font-weight: 500;
}

#trend-rank-table-container .server-name:hover {
text-decoration: underline;
}

#trend-rank-table-container .trend-value.positive {
color: #4CAF50;
}

#trend-rank-table-container .trend-value.negative {
color: #f44336;
}
