/* =============================================================
   IIHR Feedback — user form, history, feedback cards
   ============================================================= */

/* ── Feedback Form intro ── */
.iihr-feedback-intro {
  background: #f0f7f1;
  border-left: 4px solid #1c6b2a;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 20px;
}

.iihr-feedback-intro p {
  margin: 0;
  font-size: 13px;
  color: #2d5c35;
}

/* ── Form fields ── */
.iihr-feedback-field {
  border-radius: 4px !important;
  border-color: #ccc !important;
  font-size: 13px !important;
}

.iihr-feedback-field:focus {
  border-color: #1c6b2a !important;
  box-shadow: 0 0 0 2px rgba(28, 107, 42, 0.12) !important;
  outline: none !important;
}

/* ── Feedback card list ── */
.iihr-feedback-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.iihr-feedback-card {
  background: #fff;
  border: 1px solid #d6ead9;
  border-radius: 6px;
  padding: 16px 18px;
  transition: box-shadow 0.18s;
}

.iihr-feedback-card:hover {
  box-shadow: 0 3px 12px rgba(28, 107, 42, 0.10);
}

/* Unread feedback highlight */
.iihr-feedback-unread {
  border-left: 4px solid #c9a227;
  background: #fffdf0;
}

/* ── Card Header ── */
.iihr-fcard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.iihr-fcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.iihr-fcard-name {
  font-weight: 700;
  font-size: 14px;
  color: #145d01;
  display: flex;
  align-items: center;
  gap: 5px;
}

.iihr-fcard-name .fa {
  color: #1c6b2a;
}

.iihr-fcard-email {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.iihr-fcard-email:hover {
  color: #1c6b2a;
  text-decoration: underline;
}

.iihr-fcard-date {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Card Status & Actions ── */
.iihr-fcard-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.iihr-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.iihr-status-new,
.iihr-status-pending {
  background: #c9a227;
  color: #fff;
}

.iihr-status-read,
.iihr-status-verified {
  background: #1c6b2a;
  color: #fff;
}

.iihr-status-rejected {
  background: #b94a48;
  color: #fff;
}

.iihr-status-read {
  background: #e0e0e0;
  color: #666;
}

/* ── Subject & Message ── */
.iihr-fcard-subject {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.iihr-fcard-message {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ── History items (inline in feedback form) ── */
.iihr-feedback-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.iihr-fhist-item {
  border-left: 3px solid #c9a227;
  padding: 8px 12px;
  background: #fffdf0;
  border-radius: 0 4px 4px 0;
}

.iihr-fhist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.iihr-fhist-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.iihr-fhist-subject {
  font-size: 13px;
  color: #145d01;
  margin-bottom: 4px;
}

.iihr-fhist-message {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

/* ── Link ── */
.iihr-link {
  color: #1c6b2a;
  text-decoration: underline;
}

.iihr-link:hover {
  color: #145d01;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .iihr-fcard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .iihr-fcard-status {
    margin-top: 6px;
  }
}

/* Success popup after feedback submission */
.iihr-feedback-success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iihr-feedback-success-inner {
  background: #fff;
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.iihr-feedback-success-inner .fa-check-circle {
  font-size: 48px;
  color: #115100;
  display: block;
  margin-bottom: 12px;
}

.iihr-feedback-success-inner h3 {
  color: #115100;
  font-size: 20px;
  margin: 0 0 8px;
}

.iihr-feedback-success-inner p {
  color: #555;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.iihr-feedback-popup-close {
  background: #115100;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.iihr-feedback-popup-close:hover {
  background: #1c6b2a;
}

/* Dashboard actions row */
.iihr-dash-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Delete All button */
.iihr-delete-all-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.iihr-delete-all-btn:hover { background: #a93226; }

/* Single delete button */
.btn-delete-single {
  background: #c0392b !important;
  color: #fff !important;
  border: none !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}
.btn-delete-single:hover { background: #a93226 !important; }

/* Confirmation popup */
.iihr-confirm-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iihr-confirm-inner {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.iihr-confirm-icon {
  font-size: 44px;
  color: #c0392b;
  display: block;
  margin-bottom: 12px;
}

.iihr-confirm-inner h3 {
  color: #c0392b;
  font-size: 20px;
  margin: 0 0 8px;
}

.iihr-confirm-inner p {
  color: #555;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.iihr-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.iihr-confirm-ok {
  background: #c0392b;
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s;
}
.iihr-confirm-ok:hover { background: #a93226; }

.iihr-confirm-cancel {
  background: #eee;
  color: #333;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.iihr-confirm-cancel:hover { background: #ddd; }