.age-calculator {
  max-width: 768px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(98, 0, 238, 0.1);
}

.calculator-title {
  color: #6200ee;
  font-weight: 700;
}

/* Tabs styling */
#calculatorTabs .nav-link {
  color: #6c757d;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

#calculatorTabs .nav-link:hover {
  color: #7c4dff;
  border-bottom-color: rgba(98, 0, 238, 0.2);
}

#calculatorTabs .nav-link.active {
  color: #6200ee;
  background-color: transparent;
  border-bottom-color: #6200ee;
}

#calculatorTabs {
  border-bottom: 1px solid #dee2e6;
}

.age-calculator input[type="date"]:focus {
  border-color: #6200ee;
  box-shadow: 0 0 0 2px rgba(98, 0, 238, 0.2);
}

/* Age Display Grid */
.age-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .age-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.age-box {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.age-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.age-box.highlight {
  background: linear-gradient(135deg, #6200ee 0%, #7c4dff 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(98, 0, 238, 0.3);
}

.age-box.highlight:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(98, 0, 238, 0.4);
}

.age-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #212529;
}

.age-box.highlight .age-value {
  color: white;
}

.age-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 500;
}

.age-box.highlight .age-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Next Birthday Section */
.next-birthday-section {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border: 1px solid #ce93d8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.next-birthday-title {
  color: #6200ee;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.next-birthday-countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #4a148c;
}

#current-age-result,
#specific-age-result {
  margin-top: 30px;
}

.invalid-date {
  border: 2px solid #b00020 !important;
}

.error-message {
  color: #b00020;
  font-size: 14px;
  display: block;
  margin-top: -15px;
  margin-bottom: 15px;
}

.special-result {
  font-style: italic;
  color: #03dac6;
}

.birthday-message {
  font-size: 20px;
  font-weight: 900;
  color: #6200ee;
  text-align: center;
  padding: 20px;
  background-color: #e8f5e9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(98, 0, 238, 0.1);
}

@media (max-width: 768px) {
  .age-calculator {
    margin: 0;
    padding: 20px;
  }
}
