/* Existing Request Modal Styles */

.existing-request-modal {
  max-width: 650px;
  padding: var(--space-6);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Request Status Banner */
.request-status-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 2px solid #C7D2FE;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.status-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  }
}

.status-icon-wrapper i,
.status-icon-wrapper svg {
  color: var(--color-primary-600);
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.request-status-banner strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.request-status-banner p {
  font-size: 15px;
  color: var(--color-gray-700);
  margin: 0;
  line-height: 1.6;
}

/* Request Details Section */
.request-details-section {
  margin-bottom: var(--space-6);
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 2px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.request-details-section .section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.request-details-section .section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--color-primary-500), var(--color-primary-600));
  border-radius: 2px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-gray-100);
  transition: background-color 0.2s ease;
}

.detail-row:hover {
  background-color: var(--color-gray-50);
  margin: 0 calc(-1 * var(--space-3));
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  border-radius: var(--radius-md);
}

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

.detail-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-label i,
.detail-label svg {
  color: var(--color-primary-500);
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.detail-value {
  font-size: 15px;
  color: var(--color-gray-900);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

/* Full-width row for message */
.detail-row-full {
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.detail-value-full {
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-size: 15px;
  color: var(--color-gray-900);
  font-weight: 500;
}

.detail-value-full.message-text {
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--color-gray-50);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary-400);
}

/* Reminder Section */
.reminder-section {
  padding: var(--space-6);
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #FCD34D;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.reminder-info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.reminder-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.reminder-icon-wrapper i,
.reminder-icon-wrapper svg {
  color: var(--color-warning-600);
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.reminder-info strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.reminder-info p {
  font-size: 14px;
  color: var(--color-gray-700);
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
  .existing-request-modal {
    max-width: 95%;
    margin: var(--space-4);
  }
  
  .detail-row {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .detail-value {
    text-align: left;
    max-width: 100%;
  }
  
  .detail-value.message-text {
    text-align: left;
  }
}
