/* Admin Personals */

.admin-personals-container {
  padding: 2rem;
}

.admin-personals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-personals-header h1 {
  margin: 0;
}

.admin-personals-actions {
  display: flex;
  gap: 1rem;
}

/* Settings */
.admin-personals-settings {
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  background: #f9fafb;
  border: 0.1rem solid #e5e7eb;
  border-radius: 0.4rem;
}

.inline-settings-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
}

.inline-settings-form label {
  font-weight: 600;
  white-space: nowrap;
}

.inline-input {
  width: 7rem;
  padding: 0.4rem 0.6rem;
  border: 0.1rem solid #d1d5db;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  text-align: center;
}

.settings-hint {
  color: #6b7280;
}

/* Search */
.admin-search-bar {
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  max-width: 40rem;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 0.1rem solid #e5e7eb;
}

.admin-table th {
  font-weight: 600;
  color: #6b7280;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table code {
  font-size: 1.2rem;
  background: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  word-break: break-all;
}

.inactive-row {
  opacity: 0.5;
}

.actions-cell {
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
}

/* Queue cards */
.queue-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.queue-card {
  background: #fff;
  border: 0.1rem solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 2rem;
}

.queue-card-flagged {
  border-left: 0.4rem solid #f59e0b;
}

.queue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.queue-card-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.queue-submitted {
  color: #6b7280;
  font-size: 1.2rem;
}

.queue-card-body {
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #374151;
}

.queue-card-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.contact-badge {
  font-size: 1.3rem;
  background: #f3f4f6;
  padding: 0.4rem 1rem;
  border-radius: 0.3rem;
}

.queue-card-flags {
  background: #fffbeb;
  border: 0.1rem solid #fde68a;
  border-radius: 0.4rem;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.queue-card-flags ul {
  margin: 0.5rem 0 0;
  padding-left: 2rem;
}

.queue-card-similar {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.queue-card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-expired { background: #e5e7eb; color: #374151; }
.status-flagged { background: #fef3c7; color: #92400e; }

/* Action badges */
.action-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 0.3rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.action-reject { background: #fee2e2; color: #991b1b; }
.action-flag { background: #fef3c7; color: #92400e; }

/* Ad detail */
.ad-detail-card {
  background: #fff;
  border: 0.1rem solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 2rem;
}

.ad-detail-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ad-detail-body {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.1rem solid #e5e7eb;
}

.ad-detail-section {
  margin-bottom: 2rem;
}

.ad-detail-section h3 {
  font-size: 1.4rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.ad-detail-list {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 0.5rem 2rem;
  font-size: 1.4rem;
}

.ad-detail-list dt {
  font-weight: 600;
  color: #6b7280;
}

.flag-reasons-list {
  padding-left: 2rem;
  font-size: 1.4rem;
}

.ad-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.1rem solid #e5e7eb;
}

/* Inline edit form */
.ad-edit-field {
  margin-bottom: 1.5rem;
}

.ad-edit-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.ad-edit-field .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0.1rem solid #d1d5db;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  box-sizing: border-box;
}

.ad-edit-field textarea.form-control {
  resize: vertical;
  font-family: inherit;
}

.ad-edit-contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  align-items: center;
}

.ad-edit-contact-row select.form-control {
  width: auto;
}

.ad-edit-contact-row input.form-control {
  flex: 1;
}

.ad-edit-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.1rem solid #e5e7eb;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-success {
  background: #059669;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1.4rem;
}

.btn-success:hover { background: #047857; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1.4rem;
}

.btn-danger:hover { background: #b91c1c; }

.btn-danger-outline {
  background: #fff;
  color: #dc2626;
  border: 0.1rem solid #dc2626;
  padding: 0.8rem 1.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1.4rem;
}

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

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
}

/* Admin form */
.admin-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.admin-form .form-control {
  width: 100%;
  max-width: 50rem;
  padding: 0.8rem 1rem;
  border: 0.1rem solid #d1d5db;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  box-sizing: border-box;
}

.admin-form .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
  font-size: 1.5rem;
}

/* Mobile */
@media (max-width: 820px) {
  .admin-personals-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .search-form {
    flex-direction: column;
  }

  .admin-table {
    font-size: 1.2rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.8rem;
  }

  .ad-detail-list {
    grid-template-columns: 1fr;
  }
}
