/* Custom styles for Vue app components */

/* Custom checkbox style adjustment for consistent SVG coloring */
:root {
  --checkbox-tick-svg: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23102316' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

/* Form input styles */
.form-input {
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
}

/* Prompt box animations */
.prompt-box.correct {
  animation: flashGreen 0.2s;
}

@keyframes flashGreen {
  0%, 100% {
    background: #183422;
  }
  50% {
    background: #0df259;
  }
}

.prompt-box.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}

.prompt-box.timeout {
  animation: stumble 1s;
}

@keyframes stumble {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

/* Countdown animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Player progress animations */
.player-progress-bar {
  transition: width 0.3s ease;
}

/* Color dialer styles */
.color-dialer-container {
  margin: 20px 0;
}

.color-dialer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.color-dialer-button {
  transition: all 0.2s;
  cursor: pointer;
  min-height: 60px;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid;
}

.color-dialer-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-dialer-button:active {
  transform: scale(0.95);
}

.color-prompt-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid;
  transition: all 0.2s;
  font-weight: bold;
}

.selected-colors-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 80px;
  align-items: center;
}

.selected-color-item {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: bold;
  min-width: 80px;
  text-align: center;
  transition: all 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .layout-content-container {
    padding: 1rem;
  }
  
  .color-dialer-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  
  .color-prompt-item {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }
}
