/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

button[disabled],
input[type='submit'][disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transition: opacity 0.2s, filter 0.2s;
}

/* Prompt selection cards */
.prompt-select-btn {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

.prompt-select-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prompt-select-btn.selected {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.prompt-select-btn.selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.dot {
  animation: blink 1.2s infinite steps(1, end);
  opacity: 0.5;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.markdown-body {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
}
.markdown-body pre,
.markdown-body code {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-size: 0.95em;
}
.markdown-body pre {
  padding: 0.8em;
  overflow-x: auto;
}
.markdown-body ul,
.markdown-body ol {
  margin-left: 1.5em;
}
.markdown-body blockquote {
  border-left: 4px solid #ccc;
  color: #555;
  margin: 1em 0;
  padding: 0.5em 1em;
  background: #fafafa;
}
.markdown-body a {
  color: #2563eb;
  text-decoration: underline;
}
.markdown-body table {
  border-collapse: collapse;
  border: 1px solid #d1d5db;
}
.markdown-body th,
.markdown-body td {
  border: 1px solid #d1d5db;
  padding: 0.25rem 0.5rem;
}

/* Curriculum Sortable Styles */
.sortable-ghost {
  opacity: 0.4;
}

.sortable-chosen {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sortable-drag {
  transform: rotate(5deg);
}

/* Week Card Styles */
.week-card {
  transition: all 0.2s ease;
}

.week-card:hover {
  transform: translateY(-2px);
}

/* Save Status Animation */
#save-status {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
