/* Status Page Styles */
.status-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.status-intro {
    color: #888;
    margin-bottom: 30px;
}

.status-banner {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.status-banner.loading {
    background: #2a3f4d;
    color: #888;
}

.status-banner.healthy {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    color: #4ade80;
    border: 1px solid #22c55e;
}

.status-banner.degraded {
    background: linear-gradient(135deg, #4a3f1a 0%, #5a4a2d 100%);
    color: #facc15;
    border: 1px solid #eab308;
}

.status-banner.unhealthy {
    background: linear-gradient(135deg, #4a1a1a 0%, #5a2d2d 100%);
    color: #f87171;
    border: 1px solid #ef4444;
}

.status-section {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-section h2 {
    margin-top: 0;
    color: #FDFBDE;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.section-desc {
    color: #888;
    margin-bottom: 15px;
}

/* Connection Test Panel */
.connection-test-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.connection-test-panel select {
    flex: 1;
    background: #1a2a35;
    color: #FDFBDE;
    border: 1px solid #333;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    height: auto;
    min-height: 44px;
}

.connection-test-panel select option {
    padding: 10px;
    line-height: 1.4;
}

.connection-result {
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.connection-result.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
}

.connection-result.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* Health Grid */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.health-card {
    background: #1a2a35;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.health-card .metric-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4ade80;
}

.health-card .metric-label {
    color: #888;
    font-size: 0.9em;
}

/* Pools Grid */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.pool-status-card {
    background: #1a2a35;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.pool-status-card.healthy {
    border-color: #22c55e;
}

.pool-status-card.unhealthy {
    border-color: #ef4444;
}

.pool-status-card .pool-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pool-status-card .pool-header-row img {
    width: 32px;
    height: 32px;
}

.pool-status-card .pool-name {
    font-weight: bold;
    flex: 1;
}

.pool-status-card .pool-symbol {
    color: #888;
    font-size: 0.9em;
}

.pool-status-card .pool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.pool-status-card .stat {
    text-align: center;
}

.pool-status-card .stat .label {
    display: block;
    color: #666;
    font-size: 0.8em;
}

.pool-status-card .stat .value {
    display: block;
    font-weight: bold;
}

.pool-status-indicator {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.pool-status-indicator.loading {
    background: #2a3f4d;
    color: #888;
}

.pool-status-indicator.healthy {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.pool-status-indicator.unhealthy {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.agent-card {
    background: #1a2a35;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
}

.agent-card .agent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.agent-card .region-flag {
    font-size: 1.5em;
}

.agent-card .region-name {
    font-weight: bold;
    flex: 1;
}

.agent-card .agent-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.agent-card .agent-status.online {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.agent-card .agent-status.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.agent-card .pool-checks {
    margin-top: 10px;
}

.agent-card .pool-check {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.agent-card .pool-check:last-child {
    border-bottom: none;
}

.agent-card .latency {
    color: #4ade80;
}

.agent-card .latency.slow {
    color: #facc15;
}

.agent-card .latency.error {
    color: #f87171;
}

/* Troubleshooting */
.troubleshooting .trouble-item {
    background: #1a2a35;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.troubleshooting .trouble-item h4 {
    margin-top: 0;
    color: #facc15;
}

.troubleshooting .trouble-item ul {
    margin-bottom: 0;
    color: #ccc;
}

.troubleshooting .trouble-item code {
    background: #0a1520;
    padding: 2px 6px;
    border-radius: 3px;
    color: #4ade80;
}

/* Debug Output */
.debug-output {
    background: #0a1520;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    max-height: 400px;
    overflow: auto;
    font-size: 12px;
    color: #4ade80;
}

/* Buttons */
.status-page .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.status-page .btn-primary {
    background: #dc2626;
    color: white;
}

.status-page .btn-primary:hover {
    background: #b91c1c;
}

.status-page .btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
}

.status-page .btn-secondary {
    background: #333;
    color: #FDFBDE;
}

.status-page .btn-secondary:hover {
    background: #444;
}

.loading {
    opacity: 0.7;
}
