/*
  OpenAI-powered physician study tools.
  This stylesheet does not alter the lecture cards or loading skeletons.
*/

.dialog-info > .ai-summary-box {
  display: none !important;
}

.physician-study-tools-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(13, 111, 184, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13, 111, 184, 0.08), rgba(52, 163, 216, 0.04)),
    #ffffff;
}

.physician-study-tools-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: 10px;
}

.physician-study-tool-button {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.physician-study-tool-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.physician-study-tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.physician-study-tool-primary {
  border: 0;
  background: linear-gradient(135deg, #0d6fb8, #34a3d8);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(13, 111, 184, 0.18);
}

.physician-study-tool-secondary {
  border: 1px solid rgba(13, 111, 184, 0.24);
  background: #ffffff;
  color: #0d6fb8;
  box-shadow: 0 8px 18px rgba(13, 111, 184, 0.08);
}

.physician-study-tools-status {
  margin-top: 12px;
  color: #5f738d;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  direction: ltr;
}

.physician-study-tools-result {
  margin-top: 14px;
  max-height: 650px;
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(13, 111, 184, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #10243e;
  font-size: 14px;
  line-height: 2.05;
  white-space: pre-wrap;
  text-align: left;
  direction: ltr;
}

.physician-study-tools-result[hidden],
.physician-study-tools-status[hidden] {
  display: none !important;
}

.physician-study-tools-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-inline-end: 8px;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  vertical-align: -3px;
  animation: physician-study-tools-spin 700ms linear infinite;
}

@keyframes physician-study-tools-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 620px) {
  .physician-study-tools-actions {
    grid-template-columns: 1fr;
  }

  .physician-study-tools-result {
    max-height: 520px;
    padding: 16px;
    font-size: 13px;
  }
}
