/**
 * andW Server Speed Monitor - フロントエンド用CSS
 */

/* テーブル表示用 */
.andw-ssm-sc-wrap {
    margin: 2em 0;
}

.andw-ssm-sc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.andw-ssm-sc-table thead th {
    background: #f7f7f7;
    border-bottom: 2px solid #ddd;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
}

.andw-ssm-sc-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.andw-ssm-sc-table tbody tr:hover {
    background: #f9f9f9;
}

.andw-ssm-sc-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
}

.andw-ssm-sc-empty {
    padding: 2em;
    text-align: center;
    background: #f7f7f7;
    border-radius: 4px;
    color: #666;
}

/* グラフ表示用 */
.andw-ssm-sc-chart-wrap {
    margin: 2em 0;
    padding: 1.5em;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.andw-ssm-sc-chart-wrap h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #333;
}

/* グラフコンテナ - 高さを確保 */
.andw-ssm-chart-container {
    position: relative;
    width: 100%;
    height: 500px; /* PC用の高さ */
    min-height: 400px; /* 最低限の高さ */
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .andw-ssm-chart-container {
        height: 450px; /* スマホでも十分な高さを確保 */
        min-height: 400px;
    }
}

/* 小さいスマホ対応 */
@media screen and (max-width: 480px) {
    .andw-ssm-chart-container {
        height: 400px;
        min-height: 350px;
    }
}

.andw-ssm-sc-chart-wrap canvas {
    max-width: 100%;
    height: auto;
}
