/* ----------------------------------------------------------------
   SECTION: Display Problems Base
   ---------------------------------------------------------------- */
.insert-problem {
  position: relative;
  display: inline-block;
  padding: 10px 0px;
}

.problem-name-and-xp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.edu-problem-name-and-num {
  color: #737373;
  font-size: var(--text-base);
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-problem-num {
  background: var(--light-gray);
  padding: 4px 6px;
  border-radius: 3px;
  line-height: 100%;
  font-size: var(--text-small);
}

.edu-problem-name {
  line-height: 100%;
  transform: translateY(1px);
}

.problem-xp.statement {
  display: flex;
  gap: 0.2rem;
  background: var(--light-purple);
  border-radius: 6px;
  padding: 2px 6px;
  align-items: center;
}

.problem-xp span {
  color: var(--purple);
  font-size: var(--text-small);
}

.problem-xp img {
  width: 24px;
}

.edu-problem {
  min-width: auto !important;
  font-size: var(--text-base);
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

/* ----------------------------------------------------------------
   SECTION: Loading container
   ---------------------------------------------------------------- */

.loading-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 20px;
}

.loading-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top: 3px solid var(--primary-color);
  animation: problemsSpinner 0.6s linear infinite;
}

.skeleton {
  display: absolute;
}

/* ----------------------------------------------------------------
   SECTION: Submit button
   ---------------------------------------------------------------- */

.sbmt-button {
  cursor: pointer;
  width: 32px;
  padding: 2px 4px;
  border-radius: 8px;
  pointer-events: auto !important;
}

.sbmt-button:hover {
  background-color: var(--bluish-gray);
  transform: scale(1.1);
  transition: all 0.25s ease-out;
}

.sbmt-button.disabled-submit:hover {
  /* Disable hover effect when problem is after competition */
  background-color: inherit;
  transform: none;
  transition: none;
}

.problem-skeleton-text {
  height: 16px;
}

.insert-problem {
  background-color: #e0e0e0;
  color: transparent;
  animation: skeleton-loading 1.5s infinite ease-in-out;
  margin-bottom: 10px;
  width: 100%;
  border-radius: 4px;
  /* height: 16px; */
}

.insert-problem.edu-problem {
  color: transparent !important;
}

.insert-problem.loaded {
  background-color: white !important;
  animation: none !important;
  margin-bottom: 0px;
  min-height: fit-content !important;
}

.insert-problem p {
  color: #000 !important;
}

/* Skeleton animation */
@keyframes skeleton-loading {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #e0e0e0;
  }
}

/* ----------------------------------------------------------------
   SECTION: Loading spinner animations
   ---------------------------------------------------------------- */
@keyframes problemsSpinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.custom-tooltip {
  position: absolute;
  background: black;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  z-index: 9999;
  white-space: normal;
  max-width: 270px;
  word-wrap: break-word;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-tooltip.show {
  opacity: 1;
}