/* Custom App Styles for Money Bow */
:root {
  --color-bg: #F7FBFF;
  --color-blue: #0077B6;
  --color-orange: #FF8A5B;
  --color-navy: #03045E;
}

body {
  background-color: var(--color-bg);
  color: var(--color-navy);
}

/* Smooth view transitions */
.view-section {
  animation: fadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Active Nav Tab Styling */
.tab-btn.active-tab {
  background-color: #0077B6;
  color: #F7FBFF;
  box-shadow: 0 4px 0 #03045E;
  transform: translateY(-2px);
}

.tab-btn:not(.active-tab) {
  color: #03045E;
}

.tab-btn:not(.active-tab):hover {
  background-color: rgba(0, 119, 182, 0.1);
}

/* Quiz Category Active Pill */
.quiz-cat-pill.active-cat {
  background-color: #0077B6;
  color: #F7FBFF;
  border-color: #03045E;
  box-shadow: 0 3px 0 #03045E;
}

.quiz-cat-pill:not(.active-cat) {
  background-color: #F7FBFF;
  color: #03045E;
  border-color: rgba(3, 4, 94, 0.2);
}

.quiz-cat-pill:not(.active-cat):hover {
  background-color: rgba(255, 138, 91, 0.15);
}

/* Tactile Pop Option Card */
.pop-option-card {
  border: 2.5px solid rgba(3, 4, 94, 0.15);
  border-bottom-width: 5px;
  border-bottom-color: #03045E;
  transition: all 0.15s ease-out;
  color: #03045E;
  background-color: #F7FBFF;
}

.pop-option-card:hover {
  border-color: #0077B6;
  border-bottom-color: #03045E;
  transform: translateY(-2px);
}

.pop-option-card:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.pop-option-card.correct-opt {
  background-color: rgba(0, 119, 182, 0.15) !important;
  border-color: #0077B6 !important;
  border-bottom-color: #03045E !important;
  color: #03045E !important;
}

.pop-option-card.wrong-opt {
  background-color: rgba(255, 138, 91, 0.2) !important;
  border-color: #FF8A5B !important;
  border-bottom-color: #03045E !important;
  color: #03045E !important;
}

/* Match Game Card Items */
.match-item {
  border: 2px solid rgba(3, 4, 94, 0.15);
  border-bottom-width: 4px;
  border-bottom-color: #03045E;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  background-color: #F7FBFF;
  color: #03045E;
}

.match-item:hover {
  transform: scale(1.02);
}

.match-item.selected-item {
  border-color: #FF8A5B !important;
  border-bottom-color: #03045E !important;
  background-color: rgba(255, 138, 91, 0.15) !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.3);
}

.match-item.matched-item {
  background-color: rgba(0, 119, 182, 0.15) !important;
  border-color: #0077B6 !important;
  border-bottom-color: #03045E !important;
  color: #03045E !important;
  opacity: 0.9;
  pointer-events: none;
}

/* Letter Tile Styling for Word Maze */
.maze-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  background-color: #F7FBFF;
  color: #03045E;
  border: 2px solid rgba(3, 4, 94, 0.15);
  border-bottom: 4px solid #03045E;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.maze-tile:hover {
  border-color: #0077B6;
  transform: translateY(-2px);
}

.maze-tile:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.maze-tile.tile-selected {
  background-color: #FF8A5B;
  color: #03045E;
  border-color: #03045E;
  border-bottom-color: #03045E;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 138, 91, 0.3);
}

.maze-tile.tile-found {
  background-color: #0077B6;
  color: #F7FBFF;
  border-color: #03045E;
  border-bottom-color: #03045E;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F7FBFF;
}

::-webkit-scrollbar-thumb {
  background: #0077B6;
  border-radius: 999px;
}