/* ==========================================================================
   NEET PG FLASHCARDS DESIGN SYSTEM (Obsidian Cyber-Clinical Console)
   ========================================================================== */

:root {
  /* Color Palettes */
  --bg-obsidian: #080c14;
  --bg-console: #0c1220;
  --bg-card: rgba(18, 26, 47, 0.65);
  --bg-card-hover: rgba(26, 38, 68, 0.8);
  --bg-input: #111a2e;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(0, 242, 254, 0.2);
  --border-focus: #00f2fe;

  /* Accents & Glows */
  --accent-cyan: #00f2fe;
  --accent-teal: #4facfe;
  --accent-emerald: #05ffc4;
  --accent-purple: #bd00ff;
  --accent-rose: #ff007f;
  --accent-gold: #ffd700;
  
  /* Text */
  --text-primary: #f0f3f8;
  --text-secondary: #90a0c7;
  --text-muted: #62729a;
  
  /* Shadows & Blurs */
  --glass-blur: blur(14px);
  --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.25);
  --glow-emerald: 0 0 15px rgba(5, 255, 196, 0.25);
  --glow-rose: 0 0 15px rgba(255, 0, 127, 0.25);
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Base Reset & Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) var(--bg-obsidian);
}

body {
  background-color: var(--bg-obsidian);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(189, 0, 255, 0.05) 0%, transparent 40%);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 24px;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* App Container Layout */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header Design */
.app-header {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-main);
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-stats {
  display: flex;
  gap: 16px;
}

.header-stat-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.header-stat-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.fire-icon {
  color: var(--accent-rose);
  filter: drop-shadow(0 0 4px var(--accent-rose));
  animation: pulse-fire 2s infinite ease-in-out;
}

.accuracy-badge .badge-icon {
  color: var(--accent-emerald);
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.badge-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

/* Workspace Layout */
.app-workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

/* Sidebar Layout */
.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-main);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 8px;
}

/* Progress bar inside sidebar */
.progress-container {
  margin-bottom: 16px;
}

.progress-bar-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  height: 8px;
  width: 100%;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease-out;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* Queue counts indicators */
.queue-indicators {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-indicator {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  font-size: 13px;
  transition: background 0.2s ease;
}

.queue-indicator:hover {
  background: rgba(255, 255, 255, 0.03);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
}

.new .indicator-dot { background-color: var(--accent-teal); box-shadow: 0 0 6px var(--accent-teal); }
.learning .indicator-dot { background-color: var(--accent-rose); box-shadow: 0 0 6px var(--accent-rose); }
.review .indicator-dot { background-color: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }

.indicator-label {
  color: var(--text-secondary);
}

.indicator-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

/* Filters UI */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.styled-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  padding: 10px;
  font-size: 13px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.styled-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

/* Styled checkbox */
.styled-checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-secondary);
  gap: 10px;
}

.styled-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.styled-checkbox-container:hover input ~ .custom-checkbox {
  border-color: var(--text-muted);
}

.styled-checkbox-container input:checked ~ .custom-checkbox {
  background-color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.custom-checkbox:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--text-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.styled-checkbox-container input:checked ~ .custom-checkbox:after {
  display: block;
}

/* Button UI styling */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
  color: #000;
  border: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

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

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-muted);
}

.text-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.text-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Workspace Main Study Area */
.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Flashcard Container and Viewport */
.flashcard-viewport {
  flex: 1;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-icon-wrapper {
  background: rgba(255, 255, 255, 0.02);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.empty-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 3D Flashcard Flipping Core */
.card-box {
  width: 100%;
  max-width: 780px;
  height: 460px;
  perspective: 1200px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Class added via JS on click/space */
.card-box.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

/* Card Faces */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  padding: 30px;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-face:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.card-front:after {
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
}

.card-back {
  transform: rotateY(180deg);
}

.card-back:after {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

/* Card Header Meta Badge row */
.card-header-meta {
  display: flex;
  gap: 8px;
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subject-badge {
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.year-badge {
  background: rgba(189, 0, 255, 0.08);
  color: #d15cff;
  border: 1px solid rgba(189, 0, 255, 0.2);
}

.volatile-badge {
  background: rgba(255, 0, 127, 0.08);
  color: var(--accent-rose);
  border: 1px solid rgba(255, 0, 127, 0.2);
}

.active-recall-badge {
  background: rgba(5, 255, 196, 0.08);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 255, 196, 0.2);
  margin-left: auto;
}

/* Card Body Scrollable Area */
.card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  margin: 16px 0;
  padding-right: 4px;
}

.question-container, .answer-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.question-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: center;
}

/* Image/Drawing area inside flashcard front */
.card-image-area {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 180px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  padding: 12px;
}

.card-image-area svg {
  max-height: 100%;
  max-width: 100%;
}

.answer-main {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-emerald);
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(5, 255, 196, 0.25));
}

.explanation-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.explanation-box h4 {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--accent-cyan);
}

.clinical-pearl-box {
  background: rgba(189, 0, 255, 0.03);
  border: 1px solid rgba(189, 0, 255, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pearl-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #d15cff;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pearl-icon {
  width: 14px;
  height: 14px;
}

/* Card Footer Actions */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.card-tip {
  font-size: 11px;
  color: var(--text-muted);
}

.card-tip kbd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 10px;
}

.reveal-btn {
  width: auto;
  min-width: 140px;
}

/* Ratings Footer structure */
.score-footer {
  flex-direction: column;
  gap: 12px;
}

.rating-instructions {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.rating-instructions kbd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 9px;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.rate-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rate-emoji {
  font-size: 16px;
}

.rate-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.rate-interval {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Ratings hover and states */
.rate-again:hover {
  background: rgba(255, 0, 127, 0.08);
  border-color: rgba(255, 0, 127, 0.4);
  box-shadow: var(--glow-rose);
}
.rate-again:hover .rate-interval { color: var(--accent-rose); }

.rate-hard:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}
.rate-hard:hover .rate-interval { color: var(--accent-gold); }

.rate-good:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: var(--glow-cyan);
}
.rate-good:hover .rate-interval { color: var(--accent-cyan); }

.rate-easy:hover {
  background: rgba(5, 255, 196, 0.08);
  border-color: rgba(5, 255, 196, 0.4);
  box-shadow: var(--glow-emerald);
}
.rate-easy:hover .rate-interval { color: var(--accent-emerald); }

/* Heatmap revision widget */
.workspace-heatmap-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-main);
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.heatmap-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.subtext {
  font-size: 11px;
  color: var(--text-muted);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 6px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.01);
  position: relative;
  transition: transform 0.1s ease;
  cursor: pointer;
}

.heatmap-cell:hover {
  transform: scale(1.2);
  z-index: 2;
  border-color: var(--text-muted);
}

/* Level styling for heatmap */
.lvl-0 { background-color: rgba(255, 255, 255, 0.02); }
.lvl-1 { background-color: rgba(0, 242, 254, 0.15); border-color: rgba(0, 242, 254, 0.1); }
.lvl-2 { background-color: rgba(0, 242, 254, 0.4); border-color: rgba(0, 242, 254, 0.2); }
.lvl-3 { background-color: var(--accent-emerald); border-color: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }

/* Heatmap Tooltip */
.heatmap-cell::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-main);
  z-index: 100;
}

.heatmap-cell:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: var(--bg-console);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.close-btn:hover {
  color: var(--accent-rose);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  padding: 12px;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.modal-footer .action-btn {
  width: auto;
  min-width: 120px;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Toast alert notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(5, 255, 196, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-main);
  font-weight: 600;
  font-size: 13.5px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(0);
  transition: all 0.3s ease;
  animation: slide-up-fade 0.3s ease;
}

/* Keyframes Animations */
@keyframes pulse-fire {
  0%, 100% {
    filter: drop-shadow(0 0 2px var(--accent-rose));
  }
  50% {
    filter: drop-shadow(0 0 8px var(--accent-rose));
    transform: scale(1.05);
  }
}

@keyframes slide-up-fade {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media Queries (Responsive Styling) */
@media (max-width: 1024px) {
  .app-workspace {
    grid-template-columns: 1fr;
  }
  .workspace-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .actions-card {
    grid-column: span 2;
  }
  .card-box {
    height: 480px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  .app-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    align-items: flex-start;
  }
  .header-stats {
    width: 100%;
    justify-content: space-between;
  }
  .workspace-sidebar {
    grid-template-columns: 1fr;
  }
  .actions-card {
    grid-column: span 1;
  }
  .rating-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-box {
    height: 520px;
  }
  .heatmap-grid {
    grid-template-columns: repeat(11, 1fr);
  }
}

@media (max-width: 480px) {
  .header-stats {
    flex-direction: column;
    gap: 10px;
  }
  .card-box {
    height: 580px;
  }
  .card-face {
    padding: 16px;
  }
  .rating-buttons {
    grid-template-columns: 1fr;
  }
}
