/* Root Variables */
:root {
  --font-family: 'Outfit', sans-serif;
  
  /* Color System */
  --bg-dark: #0f0a1c;
  --bg-darker: #07040e;
  --card-bg: rgba(22, 17, 39, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --primary: #8a4fff;
  --primary-glow: rgba(138, 79, 255, 0.4);
  --secondary: #3b2866;
  --text-main: #f3f0ff;
  --text-muted: #9e95bd;
  
  --success: #00e676;
  --success-glow: rgba(0, 230, 118, 0.25);
  --danger: #ff1744;
  --danger-glow: rgba(255, 23, 68, 0.25);
  
  --glass-effect: blur(16px);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 50%, var(--bg-dark), var(--bg-darker));
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.app-container {
  width: 100%;
  height: 100vh;
  max-width: 1400px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Common Screen Settings */
.screen {
  display: none;
  width: 100%;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Loading Overlay Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 4, 14, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.spinner-container {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  margin: 0 auto 16px;
  box-shadow: 0 0 15px var(--primary-glow);
}

.small-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  margin: 16px auto;
}

.hidden {
  display: none !important;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #a073ff, var(--primary));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 79, 255, 0.6);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: #463275;
  transform: translateY(-2px);
}

.btn-text-danger {
  background: transparent;
  color: var(--danger);
  font-weight: 500;
}

.btn-text-danger:hover {
  background: rgba(255, 23, 68, 0.08);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
}

.btn-text:hover {
  color: var(--text-main);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* 1. LOGIN SCREEN */
#screen-login {
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  padding: 40px;
}

.logo-area {
  margin-bottom: 32px;
}

.logo-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #a073ff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-area h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 12px;
}

.logo-area h1 span {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.logo-area p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.login-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider span {
  padding: 0 10px;
}

/* 2. MAIN DASHBOARD SCREEN */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo i {
  font-size: 1.75rem;
  color: var(--primary);
}

.nav-logo h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.user-stats-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.xp-badge i {
  color: #ff9100;
}

.user-profile i {
  color: var(--primary);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  flex: 1;
  min-height: 0; /* Important for inner scroll lists */
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  body {
    overflow: auto;
  }
  .screen {
    height: auto;
  }
}

.dashboard-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header h3 i {
  color: var(--primary);
}

.panel-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Module Cards */
.module-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.module-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(138, 79, 255, 0.2);
  transform: translateX(4px);
}

.module-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.module-details .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta .badge-level {
  background: var(--secondary);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

.module-progress-bar-bg {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.module-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 3px;
}

/* Leaderboard Ranks */
.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.leaderboard-item.rank-1 {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.2);
}
.leaderboard-item.rank-2 {
  background: rgba(192, 192, 192, 0.06);
  border-color: rgba(192, 192, 192, 0.2);
}
.leaderboard-item.rank-3 {
  background: rgba(205, 127, 50, 0.06);
  border-color: rgba(205, 127, 50, 0.2);
}

.rank-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-number {
  font-size: 1.2rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.rank-1 .rank-number {
  background: #ffd700;
  color: #000;
}
.rank-2 .rank-number {
  background: #c0c0c0;
  color: #000;
}
.rank-3 .rank-number {
  background: #cd7f32;
  color: #000;
}

.rank-user-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
}

.rank-user-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  color: var(--success);
  font-size: 1rem;
}

.rank-score p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* History List */
.history-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.history-details h5 {
  font-size: 0.95rem;
  font-weight: 600;
}

.history-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.history-score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.history-score-value {
  text-align: right;
}

.history-score-value strong {
  font-size: 1rem;
}

.history-score-value span {
  display: block;
  font-size: 0.75rem;
  color: #ff9100;
}

/* 3. QUIZ ARENA PLAYER SCREEN */
#screen-quiz {
  justify-content: center;
}

.quiz-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
}

.quiz-progress-wrapper {
  flex: 1;
  margin: 0 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.quiz-xp-tracker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff9100;
  font-weight: 700;
}

/* Question Box */
.question-box {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.card-question-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.card-question-title span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Question Layouts */

/* A. Multiple Choice grid */
.choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .choices-grid {
    grid-template-columns: 1fr;
  }
}

.choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 24px;
  border-radius: 12px;
  font-family: var(--font-family);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.choice-btn:hover {
  background: rgba(138, 79, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(138, 79, 255, 0.2);
  transform: translateY(-2px);
}

.choice-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
}

/* B. Fill-up Blank Input action area */
.fill-action-container {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

/* C. Audio Listening Play button */
.audio-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.audio-play-button {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a073ff, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(138, 79, 255, 0.5);
}

.audio-play-button i {
  font-size: 2.5rem;
  color: #fff;
  margin-left: 6px;
}

.audio-play-button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(138, 79, 255, 0.7);
}

/* D. Matching pairs columns */
.matching-columns-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 8px;
}

.matching-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.match-item:hover {
  background: rgba(138, 79, 255, 0.08);
  border-color: rgba(138, 79, 255, 0.4);
}

.match-item.selected {
  background: rgba(138, 79, 255, 0.25);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(138, 79, 255, 0.3);
}

.match-item.matched {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--success);
  color: var(--success);
  cursor: default;
  pointer-events: none;
}

/* Correct/Wrong Overlay feedback card at the bottom */
.feedback-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 32px;
  border-radius: var(--radius);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  animation: slideUp 0.3s ease-out forwards;
}

.feedback-card.correct {
  background: rgba(7, 39, 23, 0.95);
  border: 1px solid rgba(0, 230, 118, 0.3);
  backdrop-filter: blur(12px);
}

.feedback-card.incorrect {
  background: rgba(45, 10, 22, 0.95);
  border: 1px solid rgba(255, 23, 68, 0.3);
  backdrop-filter: blur(12px);
}

.feedback-content {
  flex: 1;
}

.feedback-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.status-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.correct .status-icon {
  background: var(--success);
  color: #000;
}

.incorrect .status-icon {
  background: var(--danger);
  color: #fff;
}

.feedback-title-bar h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.correct h3 {
  color: var(--success);
}

.incorrect h3 {
  color: var(--danger);
}

.feedback-explanation {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

.feedback-actions {
  flex-shrink: 0;
}

/* 4. QUIZ SUMMARY SCREEN */
#screen-summary {
  justify-content: center;
  align-items: center;
}

.summary-card {
  width: 100%;
  max-width: 550px;
  text-align: center;
  padding: 40px;
}

.trophy-wrapper {
  margin-bottom: 24px;
}

.summary-trophy {
  font-size: 5rem;
  color: #ffd700;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.summary-card h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

#summary-module-name {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.summary-stats {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 36px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: 12px;
  flex: 1;
}

.stat-box.xp-gain-box {
  background: rgba(255, 145, 0, 0.08);
  border-color: rgba(255, 145, 0, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.xp-gain-box .stat-value {
  color: #ff9100;
}

.summary-actions {
  display: flex;
  gap: 16px;
}

.summary-actions button {
  flex: 1;
}

/* 5. QUIZ AUDIT DETAILS SCREEN */
#screen-details {
  align-items: center;
}

.details-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.details-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

#details-header-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.details-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.details-summary-strip {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 24px;
}

.details-stat {
  flex: 1;
  text-align: center;
}

.details-stat .lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.details-stat .val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.audit-questions-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
}

.audit-questions-list h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Audit List Items */
.audit-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  display: flex;
  gap: 16px;
}

.audit-item.correct {
  border-left: 4px solid var(--success);
}

.audit-item.incorrect {
  border-left: 4px solid var(--danger);
}

.audit-status-indicator {
  font-size: 1.5rem;
}

.audit-item.correct .audit-status-indicator {
  color: var(--success);
}

.audit-item.incorrect .audit-status-indicator {
  color: var(--danger);
}

.audit-info {
  flex: 1;
}

.audit-question-txt {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.audit-answers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.audit-user-ans span, .audit-correct-ans span {
  font-weight: 600;
}

.audit-user-ans.correct span {
  color: var(--success);
}

.audit-user-ans.incorrect span {
  color: var(--danger);
}

.audit-correct-ans span {
  color: var(--success);
}

/* Toast Messages */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text-main);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out forwards;
}

.toast.success {
  border-color: var(--success);
  background: rgba(0, 230, 118, 0.15);
}

.toast.error {
  border-color: var(--danger);
  background: rgba(255, 23, 68, 0.15);
}

/* KEYFRAMES & ANIMATIONS */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.animate-pulse {
  animation: pulse 1.8s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(138, 79, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(138, 79, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 79, 255, 0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
