/* Operations Center Admin Dashboard */

.ops-center {
  padding: 20px;
}

/* Header */
.ops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ops-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.ops-last-update {
  font-size: 0.8rem;
  color: #8b95a5;
}

/* Status Strip */
.ops-status-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
}

.ops-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.ops-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ops-status-up .ops-status-dot {
  background: #22c55e;
}

.ops-status-down .ops-status-dot {
  background: #ef4444;
}

.ops-status-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  min-width: 30px;
}

.ops-status-up .ops-status-label {
  color: #22c55e;
}

.ops-status-down .ops-status-label {
  color: #ef4444;
}

.ops-status-value {
  font-weight: 600;
  color: #3b82f6;
  margin-left: auto;
}

/* Cards Grid */
.ops-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.ops-card {
  background: var(--color-bg-elevated);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.ops-card[data-link],
.ops-card-clickable {
  cursor: pointer;
}

.ops-card[data-link]:hover,
.ops-card-clickable:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.ops-card-title {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ops-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

/* Watchdog Alert Card */
.ops-card-alert {
  border-color: #f59e0b;
  background: #fffbeb;
  animation: ops-pulse 2s ease-in-out infinite;
}

[data-theme="dark"] .ops-card-alert {
  border-color: #f59e0b;
  background: #451a03;
}

@keyframes ops-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
}

/* Metrics Grid */
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.ops-metric {
  background: #f0f7ff;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ops-metric-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.ops-metric-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Actions Section */
.ops-actions {
  margin-top: 20px;
}

.ops-actions h3 {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ops-action-btn {
  padding: 8px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}

.ops-action-btn:hover {
  background: #2563eb;
}

.ops-action-btn:active {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ops-cards,
  .ops-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .ops-status-strip {
    flex-wrap: wrap;
  }

  .ops-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Dark Mode */
[data-theme="dark"] .ops-center {
  background: #0f172a;
}

[data-theme="dark"] .ops-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .ops-last-update {
  color: #94a3b8;
}

[data-theme="dark"] .ops-status-strip {
  background: #1e293b;
}

[data-theme="dark"] .ops-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .ops-card-value {
  color: #f1f5f9;
}

[data-theme="dark"] .ops-card-title {
  color: #94a3b8;
}

[data-theme="dark"] .ops-metric {
  background: #1e293b;
}

[data-theme="dark"] .ops-metric-value {
  color: #f1f5f9;
}

[data-theme="dark"] .ops-metric-label {
  color: #94a3b8;
}

[data-theme="dark"] .ops-status-value {
  color: #60a5fa;
}

[data-theme="dark"] .ops-actions h3 {
  color: #94a3b8;
}
