@property --progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.dashboard-wrapper {
  grid-column: 1/-1;
  width: 100%;
}

.dashboard-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Courier New", Courier, monospace;
}

/* Neo-Brutalist Card */
.neo-card {
  background: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0 black;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.1s ease;
}

.neo-card:hover {
  box-shadow: 8px 8px 0 black;
}

/* Character Stats Card */
.character-stats-card {
  background: #fdfd96;
  /* Pastel Yellow */
  margin-bottom: 2rem;
}

.character-stats-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.character-stats-image-container {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
}

.character-image-main {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 3px solid black;
  box-shadow: 4px 4px 0 black;
}

.character-image-placeholder {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed black;
  background: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  text-align: center;
  color: #555;
}

.character-stats-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.stats-row {
  display: flex;
  align-items: center;
}

.stat-label {
  font-weight: bold;
  width: 120px;
  flex-shrink: 0;
}

.stat-value {
  flex: 1;
}

@media (max-width: 768px) {
  .character-stats-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .character-stats-image-container {
    flex: 1 1 auto;
    max-width: 350px;
    margin: 0 auto;
  }
}
/* Chapter Image */
.chapter-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: 3px solid black;
  margin-bottom: 1rem;
}

/* Chapter Text */
.chapter-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Buttons */
.neo-btn {
  display: inline-block;
  background: #FF9869;
  /* Orange */
  color: #284B99;
  /* Dark Blue */
  border: 3px solid #284B99;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 4px 4px 0 #284B99;
  margin-right: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.1s;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #284B99;
  background: #FFA57B;
  /* Lighten Orange */
  color: #284B99;
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #284B99;
}

.neo-btn.secondary {
  background: white;
}

.neo-btn.tertiary {
  background: #284B99;
  /* Dark Blue */
  color: white;
}

.neo-btn.tertiary:hover {
  color: white;
  background: #1e3a7a;
  /* Darker Blue */
}

.neo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 #284B99;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.neo-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.neo-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid black;
  border-radius: 50%;
  box-shadow: 6px 6px 0 black;
  margin-bottom: 1.5rem;
  position: relative;
  background: white;
  overflow: hidden;
}

.neo-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#FF9869 var(--progress, 0%), transparent 0deg);
  transition: --progress 0.5s ease;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.neo-spinner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid black;
  border-radius: 50%;
  z-index: 2;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  background: white;
  border: 3px solid black;
  padding: 0.5rem 1rem;
  box-shadow: 4px 4px 0 black;
}

.d-none {
  display: none !important;
}

.error-msg:not(:empty) {
  color: #d90429;
  background: #ffccd5;
  border: 2px solid #800f2f;
  padding: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Modal Styles Note: .neo-modal, .neo-modal-content, .neo-close-btn moved to common/scss/_neo-modal.scss */
/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.form-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #000;
  border-radius: 0;
  font-family: inherit;
}

.framework-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #000;
  color: #fff;
  font-weight: bold;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Review Pagination */
.review-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  border-top: 2px solid #eee;
  padding-top: 1rem;
}

/* Custom Neo-Brutalist Radio Buttons */
.rating-group {
  display: flex;
  justify-content: space-between;
  max-width: 300px;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.rating-option {
  display: block;
  margin: 0;
  cursor: pointer;
  position: relative;
  flex: 1;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.rating-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid black;
  background: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 4px 4px 0 black;
  transition: all 0.2s ease;
  user-select: none;
}

.rating-option input:checked + .rating-box {
  background: #FF9869;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 black;
}

.rating-option:hover .rating-box {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 black;
  background: #f0f0f0;
}

.rating-option:hover input:checked + .rating-box {
  background: #FF9869;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 black;
}

@media (max-width: 400px) {
  .rating-group {
    max-width: 100%;
  }
}
/* Accessibility Focus State */
.rating-option:focus-within .rating-box {
  border: 2px solid #FF9869;
  box-shadow: 6px 6px 0 black;
  background: #fff5f0;
}

/* Utilities (Missing from Global) */
.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-baseline {
  align-items: baseline;
}

.gap-2 {
  gap: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.text-end {
  text-align: right;
}

/* Quiz Styles */
.list-group {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-group-item {
  border: 2px solid black;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background: white;
  box-shadow: 2px 2px 0 black;
}

.bg-success {
  background-color: #198754 !important;
}

.text-white {
  color: white !important;
}

/* Responsive Button Group */
.button-group-responsive {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .button-group-responsive {
    flex-direction: column;
  }
}
/* Progress Bar */
.neo-progress-container {
  width: 100%;
  height: 1.5rem;
  border: 3px solid black;
  background: white;
  box-shadow: 4px 4px 0 black;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.neo-progress-bar {
  height: 100%;
  background: #FF9869;
  /* Orange */
  width: 0%;
  transition: width 0.5s ease;
  border-right: 3px solid black;
}

/* Toast Notification */
.neo-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.neo-toast {
  background: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0 black;
  padding: 1rem 1.5rem;
  min-width: 300px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease-out;
}

.neo-toast.error {
  border-color: #800f2f;
  background: #ffccd5;
  color: #800f2f;
}

.neo-toast.success {
  border-color: #0f5132;
  background: #d1e7dd;
  color: #0f5132;
}

.neo-toast.warning {
  border-color: #856404;
  background: #fff3cd;
  color: #856404;
}

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