/* Admin Mediation Details Redesign */
.admin-mediation-details-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  background-color: #f8fafc;
}

/* Header */
.page-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #102a4d;
}

.page-header h1 {
  font-size: 2rem;
  color: #102a4d;
  margin: 0;
  font-weight: 700;
}

/* Grid Layout */
.details-grid {
  display: grid;
  grid-template-columns: 380px 1fr; /* Left fixed, Right flexible */
  gap: 2rem;
  align-items: start;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Cards */
.info-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #102a4d;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.card-header h2 i {
  color: #3b82f6;
}

.card-body {
  padding: 1.5rem;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.info-row .value {
  color: #0f172a;
  font-weight: 500;
}

/* Screening Section */
.screening-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.screening-section h3 {
  font-size: 0.95rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

.screening-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.screening-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.screening-item.full-width {
  grid-column: 1 / -1;
}

.q-label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.q-value {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.q-detail {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.warning-box {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #fecaca;
  display: flex;
  gap: 0.5rem;
  align-items: start;
}

.warning-box i {
  margin-top: 0.2rem;
}

.no-data {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

/* Mediator Card Specifics - Only for admin mediation detail pages */
.admin-mediation-details-container .mediator-card {
  position: sticky;
  top: 2rem;
  /* Reset styles from dashboard.css that cause layout issues */
  display: block;
  padding: 0;
  align-items: unset;
  justify-content: unset;
}

.current-mediator {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.current-mediator .label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mediator-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-info { color: #3b82f6; }

/* Forms & Actions */
.action-section h3 {
  font-size: 1rem;
  color: #102a4d;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.select-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  font-size: 0.95rem;
  color: #0f172a;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-wrapper i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-outline-danger {
  background: transparent;
  border: 2px solid #ef4444;
  color: #ef4444;
}

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

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider span {
  padding: 0 1rem;
}

.help-text {
  font-size: 0.85rem;
  color: #64748b;
  margin: -0.5rem 0 1rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .mediator-card {
    position: static;
  }
  
  /* Natural stacking order: Left Column (Landlord/Mediator) then Right Column (Tenant) */
}

@media (max-width: 640px) {
  .admin-mediation-details-container {
    padding: 1rem;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .screening-grid {
    grid-template-columns: 1fr;
  }
}
