body {
  max-width: 1200px;
  margin: auto !important;
}

main {
  background: linear-gradient(135deg, #fdfdfd 0%, #fdfdfd 100%);
}

.calculator-button {
  transition: all 0.2s ease;
}

.calculator-button:hover {
  transform: scale(1.05);
}

.calculator-button:active {
  transform: scale(0.95);
}

.display {
  transition: all 0.3s ease;
}

.history-item {
  transition: all 0.2s ease;
}

.history-item:hover {
  background-color: #f3f4f6;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-icon {
  transition: all 0.3s ease;
}

.calculator-card:hover .category-icon {
  transform: scale(1.1);
}

/* Enhanced Metadata Styles */
.metadata-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
}

.metadata-section:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.metadata-section .font-medium {
  color: #1e40af;
}

.metadata-section .text-blue-600 {
  color: #2563eb;
}

.metadata-section .text-blue-600:hover {
  color: #1d4ed8;
}

/* Enhanced Author Tooltip Styles */
.author-tooltip {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #3b82f6;
  transform: translateY(0);
  animation: tooltipAppear 0.2s ease-out;
}

@keyframes tooltipAppear {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.author-tooltip-content h4 {
  position: relative;
  padding-bottom: 8px;
}

.author-tooltip-content h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

.author-tooltip-content .font-medium {
  color: #1e40af;
}

/* Responsive adjustments for metadata */
@media (max-width: 768px) {
  .metadata-section {
    text-align: center;
  }

  .metadata-section .flex-col {
    gap: 12px;
  }

  .author-tooltip {
    width: 280px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

.shape-button {
  transition: all 0.3s ease;
}

.shape-button:hover {
  transform: scale(1.05);
}

.shape-button.active {
  background-color: #3b82f6;
  color: white;
}

.shape-visualization {
  transition: all 0.3s ease;
}

.shape-visualization:hover {
  transform: scale(1.05);
}

.calculator-tab {
  transition: all 0.3s ease;
}

.calculator-tab.active {
  background-color: #3b82f6;
  color: white;
}

.calculator-button {
  transition: all 0.2s ease;
}

.calculator-button:hover {
  transform: scale(1.05);
}

.calculator-button:active {
  transform: scale(0.95);
}

.display {
  transition: all 0.3s ease;
}

.history-item {
  transition: all 0.2s ease;
}

.history-item:hover {
  background-color: #f3f4f6;
}

.function-button {
  background-color: #fbbf24;
}

.function-button:hover {
  background-color: #f59e0b;
}

.memory-button {
  background-color: #8b5cf6;
}

.memory-button:hover {
  background-color: #7c3aed;
}

.shape-button {
  transition: all 0.3s ease;
}

.shape-button:hover {
  transform: scale(1.05);
}

.shape-button.active {
  background-color: #3b82f6;
  color: white;
}

.shape-visualization {
  transition: all 0.3s ease;
}

.shape-visualization:hover {
  transform: scale(1.05);
}

.unit-button {
  transition: all 0.3s ease;
}

.unit-button:hover {
  transform: scale(1.05);
}

.unit-button.active {
  background-color: #3b82f6;
  color: white;
}

.fuel-gauge {
  position: relative;
  width: 100%;
  height: 20px;
  background-color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.fuel-level {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 10px;
}


.unit-button {
  transition: all 0.3s ease;
}

.unit-button:hover {
  transform: scale(1.05);
}

.unit-button.active {
  background-color: #3b82f6;
  color: white;
}

.conversion-path {
  position: relative;
}

.conversion-path::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #3b82f6;
  transform: translateY(-50%);
  z-index: 1;
}

.conversion-point {
  position: relative;
  z-index: 2;
}

.unit-button {
  transition: all 0.3s ease;
}

.unit-button:hover {
  transform: scale(1.05);
}

.unit-button.active {
  background-color: #3b82f6;
  color: white;
}

.speed-gauge {
  position: relative;
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
  border-radius: 10px;
  overflow: hidden;
}

.speed-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #1f2937;
  transform: translateX(-50%);
  transform-origin: bottom center;
}

.unit-button {
  transition: all 0.3s ease;
}

.unit-button:hover {
  transform: scale(1.05);
}

.unit-button.active {
  background-color: #3b82f6;
  color: white;
}

.unit-button {
  transition: all 0.3s ease;
}

.unit-button:hover {
  transform: scale(1.05);
}

.unit-button.active {
  background-color: #3b82f6;
  color: white;
}

.time-timeline {
  position: relative;
  height: 80px;
  margin: 20px 0;
}

.time-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
  transform: translateY(-50%);
}

.time-marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background-color: #1f2937;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.time-label {
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 5px;
  font-size: 0.75rem;
}

.unit-button {
  transition: all 0.3s ease;
}

.unit-button:hover {
  transform: scale(1.05);
}

.unit-button.active {
  background-color: #3b82f6;
  color: white;
}

.weight-scale {
  position: relative;
  height: 100px;
}

.weight-scale::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
  transform: translateY(-50%);
}

.weight-marker {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 20px;
  background-color: #1f2937;
  transform: translate(-50%, -50%);
}

.swap-button {
  transition: all 0.3s ease;
}

.swap-button:hover {
  transform: rotate(180deg);
}

.discount-tab {
  transition: all 0.3s ease;
}

.discount-tab.active {
  background-color: #3b82f6;
  color: white;
}

.savings-card {
  transition: all 0.3s ease;
}

.savings-card:hover {
  transform: translateY(-5px);
}

.calculator-result {
  transition: all 0.3s ease;
}

.amortization-table {
  max-height: 400px;
  overflow-y: auto;
}

.tip-button {
  transition: all 0.3s ease;
}

.tip-button:hover {
  transform: scale(1.05);
}

.tip-button.active {
  background-color: #3b82f6;
  color: white;
}

.person-card {
  transition: all 0.3s ease;
}

.person-card:hover {
  transform: translateY(-5px);
}

.age-unit {
  transition: all 0.3s ease;
}

.age-unit:hover {
  transform: translateY(-5px);
}

.bmi-result-card {
  transition: all 0.3s ease;
}

.bmi-category {
  height: 10px;
  border-radius: 5px;
}

.bmi-indicator {
  position: absolute;
  top: -5px;
  width: 10px;
  height: 20px;
  background-color: #000;
  border-radius: 5px;
  transform: translateX(-50%);
}