/* ============================================================================
   Homer - CP Styles
   ============================================================================ */

/* Modal */
.homer-modal {
  max-width: 520px;
}

.homer-modal .body {
  padding: 24px;
}

.homer-modal-header {
  margin-bottom: 12px;
}

.homer-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.homer-modal-message {
  margin: 0 0 8px;
  color: #444;
}

.homer-modal-summary {
  font-size: 14px;
}

.homer-usage-list li {
  margin-bottom: 2px;
  font-size: 13px;
  color: #555;
}

.homer-typed-confirm {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.homer-confirm-input.error {
  border-color: #e74c3c;
}

.homer-recommendation {
  font-size: 13px;
}

/* Sidebar badge */
.homer-sidebar-badge {
  font-size: 13px;
  line-height: 1.4;
}

.homer-sidebar-badge a {
  display: inline-block;
  margin-top: 6px;
}

/* Risk badges (used in tables and lists) */
.homer-risk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.homer-risk-badge--safe {
  background-color: #27ae60;
  color: #fff;
}

.homer-risk-badge--low {
  background-color: #f39c12;
  color: #fff;
}

.homer-risk-badge--high {
  background-color: #e67e22;
  color: #fff;
}

.homer-risk-badge--critical {
  background-color: #e74c3c;
  color: #fff;
}

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

.homer-stat-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.homer-stat-card__value {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 6px;
}

.homer-stat-card__label {
  font-size: 13px;
  color: #666;
}

/* Audit log table */
.homer-audit-table {
  width: 100%;
  border-collapse: collapse;
}

.homer-audit-table th,
.homer-audit-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.homer-audit-table th {
  font-weight: bold;
  color: #333;
  background: #fafafa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.homer-audit-table tr:hover td {
  background: #f8f8f8;
}

/* Usage report */
.homer-usage-group {
  margin-bottom: 24px;
}

.homer-usage-group__title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e0e0e0;
}

.homer-usage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.homer-usage-item__title {
  flex: 1;
  font-weight: 500;
}

.homer-usage-item__field {
  color: #888;
  font-size: 12px;
}

.homer-usage-item__status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.homer-usage-item__status--live {
  background: #27ae60;
}

.homer-usage-item__status--disabled {
  background: #e74c3c;
}

.homer-usage-item__status--pending {
  background: #f39c12;
}

/* Impact report */
.homer-impact-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.homer-impact-header__info {
  flex: 1;
}

.homer-impact-header__title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 4px;
}

.homer-impact-header__meta {
  font-size: 13px;
  color: #666;
}

/* Filters */
.homer-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.homer-filters select {
  min-width: 160px;
}

/* Empty state */
.homer-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
}

.homer-empty-state p {
  font-size: 15px;
  margin: 0;
}
