/* Drag & Drop Upload */
.file-upload-error {
  white-space: pre-line;
}

.drag-drop-zone {
  --bs-border-color: #036ac5;
  cursor: pointer;
  transition: background 0.15s ease;
}

.drag-drop-zone--dragging {
  --bs-border-style: dashed;
  background: rgba(3, 106, 197, 0.08);
}

.drag-drop-zone--rejected {
  --bs-border-color: #ff6b6b;
  cursor: not-allowed;
  background: rgba(255, 107, 107, 0.05);
}

.drag-drop-message {
  color: #2f5496;
  white-space: pre-line;
}

.drag-drop-browse {
  text-underline-offset: 3px;
  color: #2f5496;
  cursor: pointer;
}

.drag-drop-browse:hover {
  color: #036ac5;
}

.drag-drop-status {
  color: #62666d;
  white-space: pre-line;
}

/* File List */
.file-list-item {
  --bs-border-color: #036ac5;
}

.file-list-title,
.file-list-info .truncated-text {
  color: #2f5496;
}

.file-list-info {
  min-width: 0;
}

.file-list-size {
  color: #62666d;
}

.file-list-remove {
  cursor: pointer;
  line-height: 0;
}

.file-list-remove:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Info Card */
.info-card {
  --bs-border-color: #2f5496;
  background: #ceebff;
}

.info-card-item {
  --bs-border-color: #2f5496;
  gap: 20px;
  padding: 12px 16px;
}

.info-card-item:last-child {
  border-bottom: none !important;
}

.info-card-icon {
  width: 22px;
  height: 22px;
}

.info-card-title {
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.5px;
  color: #2f5496;
}

.info-card-description {
  font-size: 14px;
  line-height: 21px;
  color: #2f5496;
}

.info-card-description li {
  gap: 8px;
}

/* Truncated Text */
.truncated-text {
  min-width: 0;
}

.truncated-text-after {
  white-space: nowrap;
}

/* Choose File Component */
.choose-file {
  display: flex;
  align-items: stretch;
}

.choose-file-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  height: 46px;
  border: 1px solid var(--blue-5);
  border-radius: 8px 0 0 8px;
  background: var(--neutral-white);
  cursor: pointer;
}

.choose-file-btn:hover {
  background: rgba(47, 84, 150, 0.05);
}

.choose-file-btn-text {
  color: var(--blue-5);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.choose-file-status {
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding: 0 15px;
  height: 46px;
  border: 1px solid var(--blue-5);
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: var(--neutral-white);
  min-width: 0;
}

.choose-file-status-text {
  color: var(--neutral-gray-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

.choose-file-status-text.has-file {
  color: var(--blue-5);
}

.choose-file-remove {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  margin-left: auto;
  border-radius: 50%;
  display: flex;
}

.choose-file-remove:hover {
  background: rgba(0, 0, 0, 0.05);
}

.choose-file-remove svg {
  width: 20px;
  height: 20px;
  color: var(--neutral-gray-1);
}

/* Choose File Dense Variant */
.choose-file--dense .choose-file-btn {
  height: 37px;
  border-radius: 10px 0 0 10px;
}

.choose-file--dense .choose-file-btn-text {
  font-size: 16px;
  line-height: 24px;
}

.choose-file--dense .choose-file-status {
  height: 37px;
  border-radius: 0 10px 10px 0;
}
/* Inline Select Component */
.custom-dropdown {
  width: 100%;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 2px;
  background: #ffffff;
  border: none;
  border-bottom: 1.5px solid #b0babf;
  border-radius: 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: 0.02em;
  color: #002643;
  text-align: left;
  position: relative;
}

.custom-dropdown-trigger:hover,
.custom-dropdown-trigger:focus {
  background: #ffffff;
  border-color: transparent;
  border-bottom: 1.5px solid var(--blue-2);
  box-shadow: none;
  outline: none;
}

.custom-dropdown-trigger::after {
  border: none;
  content: url("images/icon-chevron-down.svg");
  position: absolute;
  right: 18px;
  vertical-align: middle;
}

.custom-dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 36px;
}

.custom-dropdown-menu {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 0;
  list-style: none;
  border: 1px solid #a5a5a5;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.custom-dropdown-menu .custom-dropdown-option {
  padding: 5px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #62666d;
  border-radius: 8px;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.custom-dropdown-menu .custom-dropdown-option:hover,
.custom-dropdown-menu .custom-dropdown-option:focus {
  background: #acddfe;
  color: #62666d;
}

/* Inline Select - Outlined Variant */
.custom-dropdown-outlined .custom-dropdown-trigger {
  padding: 10px 15px;
  border: 1px solid #2f5496;
  border-radius: 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #2f5496;
}
.custom-dropdown-outlined .custom-dropdown-trigger:hover,
.custom-dropdown-outlined .custom-dropdown-trigger:focus {
  border: 1px solid #2f5496;
  border-bottom: 1px solid #2f5496;
}
.custom-dropdown-outlined .custom-dropdown-trigger::after {
  content: url("images/icon-chevron-down.svg");
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
}
.custom-dropdown-outlined .custom-dropdown-menu {
  border-color: #2f5496;
}
.custom-dropdown-outlined .custom-dropdown-option {
  color: #2f5496;
}
.custom-dropdown-outlined .custom-dropdown-option:hover,
.custom-dropdown-outlined .custom-dropdown-option:focus {
  background: rgba(47, 84, 150, 0.1);
  color: #2f5496;
}

/* Alert Banner */
.alert-wrapper {
  position: sticky;
  top: 0;
  height: 0;
  overflow: visible;
  z-index: 1030;
  pointer-events: none;
}

.alert-container {
  position: relative;
}

.alert-banner {
  min-height: 75px;
  padding: 20px 60px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
}

.alert-banner--danger {
  background: var(--gradient-alert-danger);
}

.alert-banner--success {
  background: var(--gradient-alert-success);
}

.alert-banner--warning {
  background: var(--gradient-alert-warning);
}

.alert-banner--info {
  background: var(--gradient-alert-info);
}

.alert-banner__content {
  width: 100%;
  max-width: 600px;
}

.alert-banner__icon {
  width: 32px;
  height: 32px;
}

.alert-banner__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
}

.alert-banner__message {
  font-size: 1rem;
  line-height: 1.5;
}

.alert-banner__actions {
  top: 20px;
  right: 20px;
  pointer-events: auto;
}

.alert-banner__close {
  width: 28px;
  height: 28px;
  transition: background-color 0.15s ease;
}

.alert-banner__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.alert-banner__close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.alert-banner__report {
  position: relative;
  padding: 8px 16px;
  min-height: 37px;
  background: #ffffff !important;
  border: 1.25px solid #ba1f40 !important;
  border-radius: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.15s ease;
}

.alert-banner__report:hover {
  background: #f8f8f8 !important;
}

.alert-banner__report:focus,
.alert-banner__report:active,
.alert-banner__report:focus-visible {
  background: #ffffff !important;
  border-color: #ba1f40 !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 0.2rem rgba(186, 31, 64, 0.25) !important;
  transform: none !important;
}

.alert-banner__report:disabled {
  opacity: 1 !important;
  background: #f5f5f5 !important;
  border-color: #ccc !important;
  cursor: not-allowed;
}

.alert-banner__report:disabled svg,
.alert-banner__report:disabled .alert-banner__spinner {
  color: #999;
}

.alert-banner__report:disabled .alert-banner__report-text {
  color: #999;
}

.alert-banner__report svg,
.alert-banner__spinner {
  width: 19px;
  height: 19px;
  color: #ba1f40;
}

.alert-banner__report-text {
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: #ba1f40;
}

.alert-banner__report-status {
  font-size: 14px;
}

/* Checkbox */
.checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--neutral-white);
  border: 1px solid var(--neutral-gray-2);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.checkbox-input:checked {
  background: var(--blue-2);
}

.checkbox-input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--neutral-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-input:disabled {
  background: var(--neutral-gray-3);
  cursor: not-allowed;
}

.checkbox-input:disabled:checked {
  background: var(--blue-2);
}

/* FormControlLabel */
.form-control-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: fit-content;
  user-select: none;
}

.form-control-label--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control-label-text {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--neutral-gray-1);
  user-select: none;
}

/* Release Notes */
.release-notes-card {
  border-radius: 6px;
  border: 1px solid #e0e0e0 !important;
  background: #fff;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
  position: relative;
  padding: 6px 72px;
}

.release-notes-card h1,
.release-notes-card h2,
.release-notes-card h3,
.release-notes-card h4,
.release-notes-card h5,
.release-notes-card h6 {
  font-size: revert;
  font-weight: revert;
  margin-top: revert;
  margin-bottom: revert;
}

.release-notes-card p {
  margin-bottom: revert;
}

.release-notes-card ul,
.release-notes-card ol {
  margin-top: revert;
  margin-bottom: revert;
  padding-left: revert;
}

.release-notes-card h1:first-of-type {
  text-align: center;
}
