/**
 * EasyMan v1 - Dashboard & Live Operations Stylesheet
 */

/* Dashboard KPI Grid */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.kpi-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin: 8px 0 4px;
  font-family: var(--font-mono);
}
.kpi-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* Dashboard Two-Column Layout */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .dash-two-col {
    grid-template-columns: 1fr;
  }
}

/* Exception Items Feed */
.dash-exception-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}
.dash-exception-item:last-child {
  border-bottom: none;
}
.dash-exception-item:hover {
  background-color: var(--bg-card-hover);
}
.ex-icon {
  font-size: 20px;
}
.ex-info {
  flex: 1;
}

/* Vendor Grid */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.vendor-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.vendor-card.border-live {
  border-left: 4px solid #38bdf8;
}
.vendor-card.border-offline {
  border-left: 4px solid #ef4444;
  background-color: rgba(239, 68, 68, 0.03);
}
.vendor-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.vendor-avatar.avatar-offline {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.vendor-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vendor-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.vendor-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.vendor-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.v-detail-item {
  display: flex;
  flex-direction: column;
}
.v-detail-item.full-width {
  grid-column: span 2;
}
.v-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.v-value {
  font-size: 12px;
  color: var(--text-main);
}
.vendor-sites-section {
  margin-bottom: 16px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.site-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge-site {
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}
.vendor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* Live Ops Tabs & OB Feed */
.live-ops-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.live-ops-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.live-ops-tab-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}
.live-ops-tab-btn.active {
  background-color: var(--primary);
  color: #fff;
}
.live-ops-tab-content {
  display: none;
}
.live-ops-tab-content.active {
  display: block;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background-color: var(--bg-main);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ob-entry-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.ob-entry-card.severity-high { border-left-color: var(--danger); }
.ob-entry-card.severity-medium { border-left-color: var(--warning); }
.ob-entry-card.severity-low { border-left-color: var(--accent); }
.ob-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ob-number {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  margin-right: 8px;
}
