.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000 !important;
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modal Content */
.modal-content {
  padding: 10px 20px;
}

/* Modal Title */
.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0;
  text-align: left;
}

/* Stage Selector Container */
.stage-selector-container {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.stage-selector-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
  margin-bottom: 40px;
}

/* Stage Select Dropdowns */
.stage-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.stage-select:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Reason Section */
.reason-section {
  margin-bottom: 24px;
}

.reason-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 640px) {
  .modal-container {
    width: 95%;
    margin: 20px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .stage-selector-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .arrow-container {
    transform: rotate(90deg);
    padding: 0;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
  }
  
}