/* Pet XP Calculator Styles - Uniform Sizing */
.pet-xp-calculator {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  border-radius: 12px;
  border: 1px solid #444;
}

.pet-xp-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.pet-xp-header h3 {
  color: #ece21c;
  font-size: 20px;
  margin: 0;
}

.input-card {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  margin-bottom: 15px;
}

.input-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group label {
  color: #ece21c;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  min-width: 180px;
}

.section-label {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}

/* Uniform sizing for all inputs and buttons */
.input-group input,
.pet-source-btn,
.pet-source-item input,
.calculate-btn {
  height: 36px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #555;
  transition: all 0.3s ease;
}

.input-group input {
  width: 100px;
  padding: 0 8px;
  text-align: center;
  background: #1e1e1e;
  color: #e0e0e0;
}

.input-group input:focus {
  border-color: #ece21c;
  outline: none;
}

.owl-container {
  flex: 2;
  min-width: 250px;
}

.owl-inputs-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.owl-hint {
  color: #888;
  font-style: italic;
  font-size: 12px;
}

.pet-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.pet-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #1e1e1e;
  border-radius: 6px;
  border: 1px solid #555;
}

.pet-source-btn {
  width: 120px;
  padding: 0 10px;
  background: #3a3a3a;
  color: #e0e0e0;
  cursor: pointer;
  white-space: nowrap;
}

.pet-source-btn:hover {
  background: #4a4a4a;
  border-color: #ece21c;
}

.pet-source-btn.active {
  background: #ece21c;
  color: #1e1e1e;
  border-color: #ece21c;
  box-shadow: 0 0 15px 3px #ece21c;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 15px 3px #ece21c;
  }
  50% {
    box-shadow: 0 0 25px 5px #ece21c;
  }
  100% {
    box-shadow: 0 0 15px 3px #ece21c;
  }
}

.pet-source-item input {
  width: 70px;
  padding: 0 8px;
  text-align: center;
  background: #2e2e2e;
  color: #e0e0e0;
}

.xp-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  min-width: 50px;
}

.calculate-btn {
  width: 100%;
  padding: 0 20px;
  background: linear-gradient(45deg, #ece21c, #f0e447);
  color: #1e1e1e;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 15px;
}

.calculate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(236, 226, 28, 0.3);
}

.pet-growth-result {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #444;
  color: #ece21c;
  font-size: 18px;
  text-align: center;
  min-height: 60px;
  display: block; /* Remove flex display */
}

.pet-growth-result div {
  display: block;
  margin-bottom: 5px;
  line-height: 1.4;
}

.pet-growth-result div:last-child {
  margin-bottom: 0;
}

/* Remove spinner arrows from all number inputs in Pet XP calculator */
.pet-xp-calculator input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

.pet-xp-calculator input[type="number"]::-webkit-outer-spin-button,
.pet-xp-calculator input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  margin: 0;
}

/* Also remove from dynamically generated owl inputs */
#owlXpInputs input[type="number"] {
  -moz-appearance: textfield;
}

#owlXpInputs input[type="number"]::-webkit-outer-spin-button,
#owlXpInputs input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}



/* Mobile Responsive */
@media (max-width: 900px) {
  .pet-xp-calculator {
    max-width: 100%;
    padding: 15px;
  }
  
  /* Keep age inputs and additional XP inputs in one line on mobile */
  .input-row:nth-child(1),  /* Age inputs row */
  .input-row:nth-child(1) .input-group:nth-child(4) { /* Additional XP row */
    flex-direction: row !important;
    gap: 10px;
  }
  
  /* Other input rows stack vertically */
  .input-card:nth-child(3) .input-row, /* Owls section */
  .input-card:nth-child(4) .input-row:first-child { /* Pets label row */
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  /* Smaller inputs for mobile single-line layout */
  .input-row .input-group {
    min-width: auto;
    flex: 1;
  }
  
  .input-row .input-group label {
    font-size: 12px;
    min-width: 80px;
  }
  
  .input-row .input-group input {
    width: 60px;
    font-size: 12px;
    height: 32px;
  }
  
  /* Owls section mobile layout */
  .owl-container {
    min-width: auto;
    margin-top: 10px;
  }
  
  .owl-inputs-inline {
    justify-content: flex-start;
    margin-top: 5px;
  }
  
  /* Pet sources mobile layout */
  .pet-sources-grid {
    grid-template-columns: 1fr;
  }
  
  .pet-source-item {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .pet-source-btn {
    width: 100px;
    font-size: 12px;
    height: 32px;
  }
  
  .pet-source-item input {
    width: 50px;
    font-size: 12px;
    height: 32px;
  }
  
  .xp-label {
    font-size: 10px;
  }
  
  .calculate-btn {
    height: 40px;
    font-size: 14px;
  }
  
/* Pet growth result mobile formatting */
.pet-growth-result {
  font-size: 18px !important;
  padding: 12px !important;
  min-height: 50px !important;
}

.pet-growth-result div {
  margin-bottom: 4px !important;
}

}  