.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start; /* Add this to align boxes at top */
}

.input-section,
.result-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 500px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Amount Input Field Styling */
#amount {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#amount:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

#amount:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#amount::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* GST Rate Select Styling */
#gstRate {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

#gstRate:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

#gstRate:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Custom Rate Input */
#customRate {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  background: #f8fafc;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#customRate:hover {
  border-color: #6366f1;
  background: #ffffff;
}

#customRate:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #ffffff;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Radio Button Styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.radio-label:hover {
  border-color: #6366f1;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  width: 20px;
  height: 20px;

  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-label:hover .radio-custom {
  border-color: #6366f1;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #4f46e5;
  background: white;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #4f46e5;
  border-radius: 50%;
}
.radio-label input[type="radio"]:checked {
  background: #f0f7ff;
  border-color: #4f46e5;
  color: #4f46e5;
}

/* Dark Mode Radio Button Styling */
[data-theme="dark"] .radio-label {
  background: #1e1e1e;
  border-color: #555;
  color: var(--text-color);
}

[data-theme="dark"] .radio-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
}

[data-theme="dark"] .radio-custom {
  border-color: var(--border-color);
  background: var(--card-bg);
}

[data-theme="dark"] .radio-label:hover .radio-custom {
  border-color: var(--primary-color);
}

[data-theme="dark"] .radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--primary-color);
  background: var(--card-bg);
}

[data-theme="dark"]
  .radio-label
  input[type="radio"]:checked
  + .radio-custom::after {
  background: var(--primary-color);
}

[data-theme="dark"] .radio-label input[type="radio"]:checked {
  background: rgba(var(--primary-color-rgb), 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Calculate Button Enhanced */
.calculate-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  margin-top: 24px;
}

.calculate-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.calculate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.calculate-btn i {
  margin-right: 8px;
}

/* Result Section Enhancements */
.result-section {
  height: 500px;
  display: none;
  padding: 1px 20px 20px;
}

.result-section.show {
  display: block;
}

.result-section h2 {
  /* margin: 0 0 15px 0; */
  /* padding-top: 0; */

  top: 10px;
  left: 20px;
  line-height: 1.2;
  color: var(--primary-color);
}

.result-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--input-bg);
  border-left: 4px solid var(--border-color);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  border-radius: 8px;
  padding: 12px 16px;
}

.result-item.total {
  border: 2px solid #05466c;
  box-shadow: 0 0 15px rgba(98, 174, 224, 0.646);
  background: rgba(var(--primary-color-rgb), 0.1);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 75px;
}

.result-item.total:hover {
  border-color: #05466c;
  box-shadow: 0 0 20px rgba(98, 174, 224, 0.646);
}

.result-item:hover {
  border-color: #c3c4c5;
  box-shadow: 0 0 10px rgba(198, 198, 198, 0.2);
}

.result-label {
  color: var(--text-color);
}

.result-value {
  font-weight: 600;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .radio-group {
    gap: 10px;
  }

  .radio-label {
    padding: 10px 12px;
    font-size: 14px;
  }

  #amount,
  #gstRate {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Animation for result appearance */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-section {
  animation: slideInUp 0.5s ease-out;
}
