/* SIP Calculator Styles */
.calculator-page {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 10px;
}

.page-header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .calculator-container {
    grid-template-columns: 1fr 1fr;
  }
}

.calculator-form-panel,
.calculator-results-panel {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h3 i {
  color: #2563eb;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.input-with-slider {
  position: relative;
}

.input-with-slider input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.input-with-slider input[type="number"]:focus {
  outline: none;
  border-color: #2563eb;
}

.input-with-slider input[type="range"] {
  width: 100%;
  margin-top: 10px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
}

.input-with-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.value-display {
  display: inline-block;
  margin-top: 5px;
  font-weight: 600;
  font-size: 0.9rem;

  color: #1d4ed8; /* Darker blue for better contrast */
  padding: 4px 8px;
  border-radius: 4px;
}

.help-text,
.form-group small {
  display: block;
  margin-top: 5px;
  color: #4b5563; /* Gray-600 for better contrast */
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary.btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-outline {
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background: #f8fafc;
}

.results-header {
  margin-bottom: 30px;
}

.results-header h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.summary-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.summary-item.highlight {
  background: #dbeafe;
  border: 2px solid #2563eb;
}

.summary-label {
  display: block;
  font-size: 0.875rem;
  color: #374151; /* Gray-700 for better contrast */
  margin-bottom: 8px;
  font-weight: 500;
}

.summary-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.text-success {
  color: #059669 !important;
}

.results-details {
  margin-bottom: 30px;
}

.results-details h4 {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 15px;
}

.table-container {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.results-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.results-table tbody tr:hover {
  background: #f8fafc;
}

.results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.calculator-info {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.calculator-info h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content {
  color: #374151; /* Gray-700 for better readability */
  line-height: 1.7; /* Slightly more line spacing */
}

.info-content p {
  margin-bottom: 1rem;
}

.info-content h4 {
  font-size: 1.1rem;
  color: #374151;
  margin: 20px 0 10px 0;
}

.info-content ul {
  padding-left: 20px;
  margin: 15px 0;
}

.info-content li {
  margin-bottom: 8px;
}

.disclaimer {
  margin-top: 25px;
  padding: 15px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
}

.disclaimer p {
  margin: 0;
  color: #92400e;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .calculator-form-panel,
  .calculator-results-panel {
    padding: 20px;
  }

  .results-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-actions,
  .results-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* calculators.css - Base styles for all calculators */

.calculator-container *,
.calculator-container *::before,
.calculator-container *::after {
  box-sizing: inherit;
}

/* Responsive Utilities */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.5rem;
}

.help-text {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Button Styles */
.btn-calculate,
.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
