/* Allocation Modal Validation Panel Styles */

.validation-panel {
  min-height: 500px;
  max-height: 600px;
  overflow-y: auto;
}

.validation-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.validation-check {
  background-color: #ffffff;
  padding: 0 !important;
}

.validation-check [data-bs-toggle="collapse"] {
  transition: background-color 0.2s ease;
}

.validation-check [data-bs-toggle="collapse"]:hover {
  background-color: #f8f9fa;
}

.validation-check [data-bs-toggle="collapse"] .bi-chevron-down {
  transition: transform 0.2s ease;
}

.validation-check [data-bs-toggle="collapse"]:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.validation-check .border-success {
  border-width: 2px !important;
  border-left-width: 4px !important;
}

.validation-check .border-danger {
  border-width: 2px !important;
  border-left-width: 4px !important;
}

.validation-check .border-warning {
  border-width: 2px !important;
  border-left-width: 4px !important;
}

.validation-check .border-secondary {
  border-width: 2px !important;
  border-left-width: 4px !important;
}

.validation-summary {
  border: 1px solid #dee2e6;
  transition: background-color 0.3s ease;
}

/* Recurring details visibility */
.recurring-details {
  display: none;
}

.recurring-details.show,
#recurring-checkbox:checked ~ .recurring-details,
input[type="checkbox"]:checked ~ .recurring-details {
  display: block !important;
}

/* Smooth transitions for validation states */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.validation-check {
  animation: fadeIn 0.2s ease-out;
}

/* Status badge styling */
.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Spinner for loading state */
.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2rem;
}

/* Make modal body scrollable if needed */
.modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Ensure validation panel scrolls independently */
.validation-panel::-webkit-scrollbar {
  width: 8px;
}

.validation-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.validation-panel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.validation-panel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Professional alert styling */
.alert {
  border-left-width: 4px;
}

/* Form focus states */
.form-control:focus,
.form-select:focus,
.form-range:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button states */
.btn-success:disabled,
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Compact spacing for modal form */
.modal-body .col-12,
.modal-body .col-md-6,
.modal-body .col-lg-4 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Info icons styling */
.bi-info-circle {
  color: #0dcaf0;
}

.bi-check-circle-fill {
  color: #198754;
}

.bi-x-circle-fill,
.bi-exclamation-triangle-fill {
  color: #dc3545;
}

.bi-clock {
  color: #6c757d;
}
