/* === VARIABLES === */
:root {
  --primary: #c020c0;
  --primary-dark: #3c093e;
  --secondary: #9459f3;
  --border: rgba(192, 32, 192, 0.35);
  --muted: #adb5bd;
  --card-bg: #1a0f1f;
  --bg-dark: #0d0712;
}

/* === BANNER === */
.banner {
  height: 250px;
  background-image: url(https://i.pinimg.com/1200x/03/a0/6f/03a06fc163ae2eab7cee95bd77ff1119.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #3c093e 0%, rgb(148, 89, 243) 100%);
  color: white;
  padding: 5rem 0 4rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero p.lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* === FEATURE ICONS === */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* === CARD HOVER === */
.card-hover {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(192, 32, 192, 0.2);
}

/* === LOGO === */
.logo {
  max-width: 10%;
  border-radius: 30px;
}

/* === HEADER === */
header {
  background-color: #3c093e;
  box-shadow: 0px 8px 24px #62185e;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* === NAV LINKS === */
li {
  color: white;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #ff80ff !important;
}
.navbar-brand {
  color: white !important;
  font-weight: 700;
  letter-spacing: 1px;
}

/* === FOOTER === */
footer {
  background-color: #3c093e;
  color: #adb5bd;
  padding: 1.5rem 0;
}
footer small {
  font-size: 0.85rem;
}

/* === INDEX CARD === */
#card {
  border: 2px solid #ff00ff !important;
}

/* === PAGE HEADER (quiz pages) === */
.page-header {
  background: linear-gradient(135deg, #3c093e 0%, #6b21a8 100%);
  color: white;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(192, 32, 192, 0.3);
}
.page-header h1 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.page-header p {
  opacity: 0.85;
  margin: 0;
}

/* === BREADCRUMB QUIZ === */
.breadcrumb-quiz {
  font-size: 0.85rem;
  opacity: 0.75;
}
.breadcrumb-quiz a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.breadcrumb-quiz a:hover {
  color: #ff80ff;
}

/* === FORM CARD === */
.form-card {
  background: #1a0f1f;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

/* === QUIZ CARD (list) === */
.quiz-card {
  border: 1.5px solid var(--border) !important;
  border-radius: 16px !important;
  background: #1a0f1f !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  overflow: hidden;
}
.quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(192, 32, 192, 0.25);
}
.quiz-card .card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.quiz-card .card-body {
  padding: 1.25rem;
}

/* === CARD-QUIZ === */
.card-quiz {
  background: #1a0f1f;
  border: 1.5px solid var(--border) !important;
  border-radius: 16px !important;
}

/* === BUTTONS QUIZ === */
.btn-primary-quiz {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.btn-primary-quiz:hover {
  opacity: 0.9;
  color: white;
  transform: translateY(-1px);
}
.btn-outline-quiz {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline-quiz:hover {
  background: var(--primary);
  color: white;
}

/* === QUESTION CARD (quiz play) === */
.question-card {
  background: #1a0f1f;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.question-card legend {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

/* === ANSWER OPTION (radio) === */
.answer-option {
  display: block;
  background: #120b17;
  border: 1.5px solid #3d1a50;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  color: #d1b8e0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.answer-option:hover {
  border-color: var(--primary);
  background: #2a1040;
  color: white;
}
.answer-option input[type="radio"] {
  accent-color: var(--primary);
  margin-right: 0.6rem;
}

/* === SCORE BANNER === */
.score-banner {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}
.score-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
}
.score-banner.score-mid {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}
.score-banner.score-low {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* === STAT CARD === */
.stat-card {
  background: #1a0f1f;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* === ANSWER ITEM (edit view) === */
.answer-item {
  display: flex;
  align-items: center;
  background: #120b17;
  border: 1.5px solid #3d1a50;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.answer-item.correct-answer {
  border-color: #059669;
  background: #0a1f15;
}
.correct-badge {
  background: #059669;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-left: 0.5rem;
}

/* === ALERT QUIZ === */
.alert-quiz {
  border-radius: 12px;
  border: 1.5px solid var(--border);
}

/* === FORM CONTROLS DARK === */
.form-control,
.form-select {
  background-color: #120b17 !important;
  border-color: #3d1a50 !important;
  color: #e2d4f0 !important;
}
.form-control::placeholder {
  color: #6b5280 !important;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(192, 32, 192, 0.25) !important;
}
.form-label {
  color: #c8b0d8;
  font-weight: 500;
}

/* === TABLES DARK === */
.table {
  color: #d1b8e0;
}
.table thead th {
  color: var(--muted) !important;
  background: #120b17 !important;
  border-bottom: 1.5px solid var(--border);
}
.table tbody tr {
  border-color: #2a1040;
}
.table tbody tr:hover {
  background: rgba(192, 32, 192, 0.07);
}

/* === CARDS DARK === */
.card {
  background-color: #1a0f1f !important;
  border-color: #3d1a50 !important;
  color: #e2d4f0 !important;
}

/* === BADGES === */
.badge {
  font-weight: 600;
}

/* === GENERAL DARK BG === */
html,
body {
  height: 100%;
}
body {
  background-color: #0d0712;
  color: #e2d4f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body footer {
  flex-shrink: 0;
  margin-top: auto;
}
.text-muted {
  color: #9b7dbd !important;
}
.text-secondary {
  color: #9b7dbd !important;
}

/* === BTN PRIMARY override for rose === */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  ) !important;
  border-color: transparent !important;
  font-weight: 600;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-outline-primary {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.btn-outline-primary:hover {
  background: var(--secondary) !important;
  color: white !important;
}
.btn-light {
  background: white !important;
  color: var(--primary-dark) !important;
  font-weight: 700;
}

/* === HR === */
hr {
  border-color: #3d1a50;
  opacity: 0.6;
}

/* === NAVBAR TOGGLER === */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
