/* Fleet Overview - Force all 3 cards to match Windows .72 layout */

/* Target all service cards in Fleet Overview */
[class*="service-card"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  align-items: center !important;
  padding: 20px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  min-height: 200px !important;
}

/* Pie chart container on left */
[class*="service-card"] > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* Metrics on right */
[class*="service-card"] > div:nth-child(2),
[class*="service-card"] > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  justify-content: space-between !important;
}

/* Resource bars styling */
[class*="resource-usage"] {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%) !important;
  height: 8px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3) !important;
}

[class*="resource-usage"] > div {
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%) !important;
  height: 100% !important;
  border-radius: 4px !important;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
  transition: width 0.5s ease !important;
}

/* CPU/RAM percentage display */
[class*="information-widget-resource"] {
  min-width: 120px !important;
}

[class*="information-widget-resource"] .text-right {
  text-align: right !important;
  font-size: 24px !important;
  font-weight: bold !important;
  color: #fff !important;
  margin-top: 4px !important;
}

/* IP address display */
.subtitle,
[class*="description"] {
  font-size: 12px !important;
  color: #9ca3af !important;
  text-align: center !important;
}

/* Ensure card title visibility */
[class*="service-title-text"] {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #e5e7eb !important;
}

/* Make left side pie chart area */
[class*="service-card"] .flex-col:first-of-type {
  width: 50% !important;
}

/* Make right side metrics area */
[class*="service-card"] .flex-col:last-of-type {
  width: 50% !important;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  [class*="service-card"] {
    grid-template-columns: 1fr !important;
  }
}
