* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}
.container {
    max-width: 900px;
    margin: 0 auto;
}
.header {
    text-align: center;
    margin-bottom: 30px;
}
.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.header .update-time {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.header .refresh-btn {
    padding: 10px 25px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}
.icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon-robot {
    width: 1.2em;
    height: 1.2em;
    fill: url(#gradient);
}
.icon-refresh {
    width: 1.1em;
    height: 1.1em;
}
.icon-check,
.icon-cross {
    width: 0.9em;
    height: 0.9em;
    margin-right: 4px;
}
.status-text.ok .icon-check {
    fill: #00ff88;
}
.status-text.error .icon-cross {
    fill: #ff4757;
}
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}
.stat-item {
    text-align: center;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item .number {
    font-size: 1.8rem;
    font-weight: bold;
}
.stat-item .label {
    color: #888;
    font-size: 0.8rem;
    margin-top: 3px;
}
.stat-item.ok .number { color: #00ff88; }
.stat-item.error .number { color: #ff4757; }
.status-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.status-header {
    display: grid;
    grid-template-columns: 40px 1fr 100px 100px 1fr;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}
.status-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 100px 1fr;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.2s;
}
.status-row:hover {
    background: rgba(255, 255, 255, 0.03);
}
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.status-indicator.ok {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}
.status-indicator.error {
    background: #ff4757;
    box-shadow: 0 0 8px #ff4757;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.model-name {
    font-weight: 500;
}
.status-text {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}
.status-text.ok { color: #00ff88; }
.status-text.error { color: #ff4757; }
.response-time {
    font-size: 0.85rem;
    font-weight: 600;
}
.response-time.fast { color: #00ff88; }
.response-time.medium { color: #ffa502; }
.response-time.slow { color: #ff4757; }
.detail-text {
    font-size: 0.8rem;
    color: #888;
}
.cache-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
    color: #00d4ff;
    margin-left: 8px;
}
@media (max-width: 700px) {
    .header h1 { font-size: 1.5rem; }
    .stats { flex-direction: column; gap: 10px; }
    .stat-item { padding: 10px 20px; }
    .status-header, .status-row {
        grid-template-columns: 30px 1fr 80px;
    }
    .status-header > *:nth-child(4),
    .status-header > *:nth-child(5),
    .status-row > *:nth-child(4),
    .status-row > *:nth-child(5) {
        display: none;
    }
}
