/* Components — split from admin.css */

/* ===== Custom Form Helpers ===== */
.form-help code,
.form-text code {
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 11px;
  color: #4CAF50;
}

/* ===== Restream Destinations ===== */
.restream-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.restream-item {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.restream-info {
  flex: 1;
  min-width: 200px;
}

.restream-name {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 5px;
}

.restream-url {
  font-size: 12px;
  color: #999;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.restream-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 10px;
}

.restream-status.enabled {
  background: #28a745;
  color: white;
}

.restream-status.disabled {
  background: #6c757d;
  color: white;
}

.restream-runtime-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}
.restream-runtime-live {
  background: #155724;
  color: #a3cfbb;
}
.restream-runtime-error {
  background: #58151c;
  color: #f1aeb5;
}
.restream-runtime-idle {
  background: #2a2a2a;
  color: #666;
}

.restream-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.restream-actions button {
  padding: 6px 12px;
  font-size: 12px;
}

/* ===== Rendition Tuning ===== */
.rendition-config-card {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 4px;
  border-left: 3px solid #666;
}

.rendition-config-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}

.rendition-config-header input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.rendition-config-title-wrap {
  flex: 1;
}

.rendition-config-title {
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 5px;
}

.rendition-config-description {
  color: #999;
  font-size: 13px;
}

.rendition-advanced-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.rendition-setting-field .form-label {
  color: #bbb;
  font-size: 12px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== View Selector Dropdown ===== */
.dropdown-menu-dark .dropdown-item {
  display: flex;
  align-items: center;
}

.dropdown-menu-dark .dropdown-item i.invisible {
  visibility: hidden;
}
