/* Theory Execution Page Styles */

/* Share Card */
.share-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.share-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.share-card__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.share-card__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.share-card__title {
  font-size: 1rem;
  line-height: 1.3;
}

.share-card__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-card__lead {
  font-weight: 600;
  line-height: 1.5;
}

.share-card__bullets {
  margin: 0;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 0.4rem;
  list-style-position: outside;
  list-style-type: disc;
}

.share-card__bullets li {
  padding-left: 0.25rem;
}

.share-card__note {
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-style: italic;
  color: #666;
  line-height: 1.5;
  font-size: 0.85rem;
}

.share-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.share-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.share-card__hint {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.5;
}

/* Custom Toggle Switch */
.custom-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: all .3s ease;
  border-radius: 24px;
}

.custom-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all .3s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.custom-switch input:checked+.custom-switch-slider {
  background-color: #e74c3c;
}

.custom-switch input:not(:checked)+.custom-switch-slider {
  background-color: #3498db;
}

.custom-switch input:checked+.custom-switch-slider:before {
  transform: translateX(24px);
}

.custom-switch:hover .custom-switch-slider {
  box-shadow: 0 0 8px rgba(100, 200, 20, 0.4);
}

/* Tooltip */
.tooltip-container {
  pointer-events: none;
}

.tooltip-content {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 300px;
  max-width: 500px;
}

.tooltip-content .table {
  font-size: 0.85rem;
}

.tooltip-content .table th,
.tooltip-content .table td {
  padding: 4px 8px;
}

/* Theory Execute Button */
.theory-execute-button {
  margin-top: 15px;
}

/* Theory Execution Progress */
.theory-execution-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

.theory-execution-progress__spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: theory-spin 0.8s linear infinite;
}

.theory-execution-progress__text {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

@keyframes theory-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Theory Component wrapper */
.theory-component {
  margin: 0 auto;
}
