/* ==========================================
   Support Messages — dark card style
   ========================================== */

/* ---- New page ---- */
#support-message-new-page {
  max-width: 580px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.support-form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid #3a3a3c;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.feedback-form-header {
  margin-bottom: 1.25rem;
}

.feedback-form-header h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #f0f0f0;
}

.feedback-form-header p {
  font-size: 14px;
  color: #888;
}

.feedback-errors {
  background: rgba(185, 28, 28, 0.12);
  border: 0.5px solid rgba(252, 165, 165, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #fca5a5;
}

.feedback-errors ul {
  margin: 0.4rem 0 0 1.2rem;
}

.support-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.support-form .form-group:last-of-type {
  margin-bottom: 0;
}

.support-form label {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 5px;
  color: #888;
}

.support-form .form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid #545153;
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.support-form .form-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.support-form textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.support-form .form-input--short {
  max-width: 320px;
}

.support-form .form-hint {
  font-size: 12px;
  color: #666;
  margin: 0 0 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.btn-cancel {
  font-size: 14px;
  color: #888;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.btn-cancel:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.06);
}

.btn-submit {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #0d1321;
  background: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.btn-submit:hover {
  opacity: 0.85;
}

/* ---- Index page ---- */
.sm-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.sm-header {
  margin-bottom: 1.5rem;
}

.sm-header h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.sm-table-card {
  background: #1a1a1b;
  border: 0.5px solid #3a3a3c;
  border-radius: 12px;
  overflow: hidden;
}

.sm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sm-table th {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 0.5px solid #2a2a2c;
  background: #141415;
}

.sm-table td {
  padding: 12px 16px;
  color: #ccc;
  border-bottom: 0.5px solid #2a2a2c;
}

.sm-table tr:last-child td {
  border-bottom: none;
}

.sm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.sm-table .sm-link {
  color: #8ab4f8;
  text-decoration: none;
  font-weight: 500;
}

.sm-table .sm-link:hover {
  text-decoration: underline;
}

.sm-table .sm-status {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
}

.sm-status-open {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.sm-status-closed {
  background: rgba(255, 255, 255, 0.06);
  color: #888;
}

/* ---- Show page ---- */
.sm-show {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.sm-show .sm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.15s;
}

.sm-show .sm-back-link:hover {
  color: white;
}

.sm-show .card {
  background: #1a1a1b;
  border: 0.5px solid #3a3a3c;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 12px;
}

.sm-show .card h2 {
  font-size: 18px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 8px;
}

.sm-show .card .sm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 0.5px solid #2a2a2c;
}

.sm-show .card .sm-item:last-of-type {
  border-bottom: none;
}

.sm-show .card .sm-label {
  font-size: 13px;
  color: #888;
  min-width: 90px;
}

.sm-show .card .sm-val {
  font-size: 14px;
  color: #ddd;
}

.sm-show .card .sm-body {
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
  padding-top: 8px;
}

.sm-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sm-actions button,
.sm-actions .btn-submit {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: 0.5px solid #3a3a3c;
  background: #222224;
  color: #ccc;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.sm-actions button:hover {
  background: #2a2a2c;
  color: white;
}

@media (max-width: 480px) {
  #support-message-new-page,
  .sm-index,
  .sm-show {
    padding: 1rem 0.5rem;
  }

  .sm-table th,
  .sm-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
}
