/* Custom Chessboard & UI Styles - Chess Mentor OS v4.0 Ultimate */

/* Chess Square Colors */
.square-light {
  background-color: #eeeed2;
}

.square-dark {
  background-color: #769656;
}

/* Selected Square Highlight */
.square-selected {
  background-color: #f7ec59 !important;
}

/* Blunder Square Highlight */
.square-blunder {
  background-color: rgba(239, 68, 68, 0.45) !important;
}

/* Best Move Highlight */
.square-best-move {
  background-color: rgba(16, 185, 129, 0.45) !important;
}

/* Threat / Loose Piece Glow */
.square-threat {
  box-shadow: inset 0 0 0 3px #ef4444;
}

/* Legal Move Dot */
.move-dest-dot {
  position: absolute;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.22);
  top: 37%;
  left: 37%;
  pointer-events: none;
  z-index: 5;
}

/* Legal Move Capture Ring */
.move-dest-ring {
  position: absolute;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.25);
  top: 8%;
  left: 8%;
  pointer-events: none;
  z-index: 5;
}

/* Last move highlight */
.square-last-move {
  background-color: rgba(247, 236, 89, 0.55) !important;
}

/* Piece dragging & rendering */
.chess-piece {
  width: 100%;
  height: 100%;
  background-size: 85% 85%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: grab;
  user-select: none;
  transition: transform 0.1s ease;
  z-index: 10;
}

.chess-piece:active {
  cursor: grabbing;
}

/* Square Coordinates */
.square-coord {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
  line-height: 1;
}

.square-coord-file {
  bottom: 2px;
  right: 3px;
}

.square-coord-rank {
  top: 2px;
  left: 3px;
}

.square-light .square-coord {
  color: #769656;
}

.square-dark .square-coord {
  color: #eeeed2;
}

/* SVG Arrows Overlay Layer */
.board-arrows-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* Dynamic Vertical Evaluation Bar */
.eval-bar-container {
  width: 24px;
  height: 100%;
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.eval-bar-white {
  background-color: #f8fafc;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.eval-bar-black {
  background-color: #090d16;
  flex: 1;
  width: 100%;
}

.eval-bar-label {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 9px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  z-index: 5;
  pointer-events: none;
}

.eval-label-top {
  top: 4px;
  color: #f8fafc;
}

.eval-label-bottom {
  bottom: 4px;
  color: #0f172a;
}

/* WintrChess Move Classification Badges */
.badge-brilliant {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-best {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-good {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-inaccuracy {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-mistake {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-blunder {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth Tab Animations */
.tab-pane {
  animation: fadeIn 0.2s ease-out;
}

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