body { font-family: sans-serif; margin: 20px; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }
button { padding: 5px 10px; cursor: pointer; }
.status { margin-top: 10px; padding: 10px; border: 1px solid #ccc; display: none; }
.summary-box { margin-top: 20px; padding: 15px; border: 1px solid #aaa; background-color: #f9f9f9; }
pre { background-color: #eee; padding: 10px; overflow-x: auto; font-size: 12px; }
.diff-container { display: flex; gap: 10px; }
.diff-pane pre {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 10px;
    font-size: 0.85em;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.diff-added {
    background-color: #e6ffed !important;
    text-decoration: none;
}

.diff-removed {
    background-color: #ffeef0 !important;
    text-decoration: line-through;
}
.config-header { font-weight: bold; margin-bottom: 5px; display: block; }

/* Tabs */
.tabs { margin-top: 20px; }
.tab-buttons { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 20px; }
.tab-btn { background: #f8f8f8; border: 1px solid #ddd; border-bottom: none; padding: 10px 20px; margin-right: 5px; border-top-left-radius: 4px; border-top-right-radius: 4px; }
.tab-btn:hover { background: #eee; }
.tab-btn.active { background: white; border-bottom: 2px solid #2196F3; font-weight: bold; }
.tab-content { display: none; padding: 10px; }
.tab-content.active { display: block; }

.device-selection {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 4px;
    border: 1px solid #d0e0f0;
}
.device-selection label {
    font-weight: bold;
    margin-right: 10px;
}
.device-selection select {
    padding: 5px;
    min-width: 250px;
}

/* Guide & Overview styles */
.guide-steps li {
    margin-bottom: 15px;
    line-height: 1.5;
}
.guide-steps strong {
    color: #2196F3;
    font-size: 1.1em;
}
.info-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.prerequisite-box {
    background-color: #fffde7;
    border-left: 4px solid #fff176;
}
.safety-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    margin-top: 20px;
}
.info-box a {
    color: #0d47a1;
    font-weight: bold;
    text-decoration: underline;
}
.info-box a:hover {
    text-decoration: none;
}

.btn-danger {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
}
.btn-danger:hover {
    background-color: #d32f2f;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}
.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stats-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stats-list li:last-child {
    border-bottom: none;
}
.category-self { background-color: #e3f2fd; color: #0d47a1; }
.category-upstream { background-color: #f3e5f5; color: #7b1fa2; }
.category-mirror { background-color: #fff3e0; color: #e65100; }
.status-success { background-color: #e8f5e9; color: #2e7d32; }
.status-error { background-color: #ffebee; color: #c62828; }

.info-toggle {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background-color: #607D8B;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
    font-style: normal;
    user-select: none;
}
.info-toggle:hover {
    background-color: #455A64;
}
.info-details {
    display: none;
    background-color: #f0f7ff;
    border: 1px solid #d0e0f0;
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #333;
    line-height: 1.4;
    max-width: 400px;
}
.info-details code {
    background-color: #e3f2fd;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.logo {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
    margin-top: -5px;
}
