/* FB Warm Auto-Reply admin tab */

.fw-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  color: #1f2937;
}

.fw-title {
  font-size: 22px;
  margin: 0 0 16px;
  color: #1f2937;
}

.fw-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.fw-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fw-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fw-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.fw-field {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #6b7280;
  gap: 4px;
}

.fw-field input,
.fw-field select {
  padding: 7px 9px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 14px;
  color: #111827;
}

.fw-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  grid-column: 1 / -1;
}

.fw-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fw-btn {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
}

.fw-btn:hover {
  background: #f3f4f6;
}

.fw-btn-primary {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}

.fw-btn-primary:hover {
  background: #5b21b6;
}

.fw-btn-success {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.fw-btn-success:hover {
  background: #15803d;
}

.fw-btn-danger {
  background: #fff;
  border-color: #fca5a5;
  color: #dc2626;
}

.fw-btn-danger:hover {
  background: #fef2f2;
}

.fw-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fw-stat {
  flex: 1;
  min-width: 110px;
  text-align: center;
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
}

.fw-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #6d28d9;
}

.fw-stat-lbl {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.fw-night {
  font-size: 12px;
  color: #4338ca;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 20px;
}

.fw-pending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fw-pending-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fcfcfd;
}

.fw-pi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.fw-pi-date {
  font-size: 12px;
  color: #9ca3af;
}

.fw-pi-comment {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 8px;
  background: #f3f4f6;
  border-radius: 7px;
  padding: 8px 10px;
}

.fw-pi-reply {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.fw-pi-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fw-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

textarea.fw-input {
  min-height: 60px;
  resize: vertical;
}

.fw-test-out {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 15px;
  color: #166534;
}

.fw-test-skip {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #6b7280;
}

.fw-badge {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.fw-log-filter {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
}

.fw-log-wrap {
  overflow-x: auto;
}

.fw-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #1f2937;
}

.fw-log-table th,
.fw-log-table td {
  text-align: left;
  padding: 7px 9px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  color: #1f2937;
}

.fw-log-table th {
  color: #6b7280;
  font-weight: 600;
}

.fw-log-comment {
  max-width: 240px;
  color: #4b5563;
}

.fw-log-reply {
  max-width: 240px;
  color: #111827;
  font-weight: 600;
}

.fw-log-cls {
  color: #9ca3af;
  font-size: 12px;
}

.fw-empty {
  text-align: center;
  color: #9ca3af;
  padding: 16px;
  font-size: 14px;
}

.fw-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  margin: 16px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fw-hint {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}

.fw-card-skipped {
  border-left: 4px solid #9ca3af;
}

.fw-skipped-item {
  background: #fafafa;
}

.fw-skipped-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
