/* Wealth Calculator Styles - Facebook Theme */

body {
  background-color: #f0f2f5;
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  color: #1c1e21;
}

/* Card Styles - Facebook Style */
.calculator-card,
.results-card,
.chart-card,
.comparison-card,
.educational-card,
.tips-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #e4e6eb;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.calculator-card:hover,
.results-card:hover,
.chart-card:hover,
.comparison-card:hover,
.educational-card:hover,
.tips-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Facebook Blue Headers */
.bg-gradient-primary {
  background: #1877f2 !important;
  color: #ffffff;
}

.bg-gradient-success {
  background: #42b72a !important;
  color: #ffffff;
}

.bg-gradient-info {
  background: #1877f2 !important;
  color: #ffffff;
}

.bg-gradient-warning {
  background: #f7b928 !important;
  color: #1c1e21;
}

.bg-gradient-danger {
  background: #e41e3f !important;
  color: #ffffff;
}

/* Currency Icon Styling - Facebook Style */
.rupee-symbol {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05em;
  color: #1877f2;
  margin-right: 3px;
  display: inline-block;
  vertical-align: baseline;
}

.input-group-text .rupee-symbol {
  font-size: 1.15em;
  font-weight: 600;
  color: #65676b;
  line-height: 1;
}

.result-value .rupee-symbol,
.stat-value .rupee-symbol {
  font-size: 0.9em;
  vertical-align: text-top;
  margin-right: 2px;
  color: #1c1e21;
}

/* Results Display - Facebook Style */
.result-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e4e6eb;
  border-left: 4px solid #1877f2;
}

.result-label {
  font-size: 0.8125rem;
  color: #65676b;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.result-value {
  font-size: 2rem;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: 'Courier New', monospace;
  line-height: 1.2;
  min-width: 0;
}

.result-box {
  overflow-x: auto;
}

.result-value.highlight {
  color: #1877f2;
  font-size: 2.5rem;
}

.result-value.total {
  color: #1877f2;
  font-size: 2.75rem;
  font-weight: 700;
}

.stat-card {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid #e4e6eb;
  transition: all 0.2s ease;
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  background: #e4e6eb;
  border-color: #ccd0d5;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1877f2;
  margin: 8px 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: 'Courier New', monospace;
  line-height: 1.2;
  min-width: 0;
}

.stat-card {
  overflow-x: auto;
}

.stat-label {
  font-size: 0.875rem;
  color: #65676b;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* Tip Items - Facebook Style */
.tip-item {
  text-align: center;
  padding: 28px 20px;
  background: #ffffff;
  border-radius: 12px;
  height: 100%;
  min-height: 200px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid #e4e6eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.tip-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1877f2, #42b72a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tip-item:hover {
  background: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.15);
  transform: translateY(-4px);
}

.tip-item:hover::before {
  transform: scaleX(1);
}

.tip-icon-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-item-primary .tip-icon-container {
  background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%);
}

.tip-item-success .tip-icon-container {
  background: linear-gradient(135deg, #42b72a 0%, #1877f2 100%);
}

.tip-item-info .tip-icon-container {
  background: linear-gradient(135deg, #1877f2 0%, #764ba2 100%);
}

.tip-item-warning .tip-icon-container {
  background: linear-gradient(135deg, #f7b928 0%, #e41e3f 100%);
}

.tip-icon-container i {
  font-size: 1.75rem;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.tip-item:hover .tip-icon-container {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tip-item:hover .tip-icon-container i {
  transform: scale(1.1);
}

.tip-item h5 {
  margin: 0 0 12px 0;
  color: #1c1e21;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: Helvetica, Arial, sans-serif;
  transition: color 0.3s ease;
}

.tip-item:hover h5 {
  color: #1877f2;
}

.tip-item p {
  color: #65676b;
  margin: 0;
  line-height: 1.6;
  font-size: 0.9375rem;
  font-family: Helvetica, Arial, sans-serif;
  max-width: 100%;
}

/* Table Styles - Facebook Style */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f0f2f5;
  color: #1c1e21;
  border: none;
  border-bottom: 2px solid #e4e6eb;
  font-weight: 600;
  padding: 8px 6px;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.table tbody td {
  padding: 8px 6px;
  vertical-align: middle;
  border-top: 1px solid #e4e6eb;
  font-size: 0.9375rem;
}

/* Prevent number wrapping in table */
.table tbody td:nth-child(2),
.table tbody td:nth-child(3),
.table tbody td:nth-child(4),
.table tbody td:nth-child(5) {
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  text-align: left;
}

.table thead th:nth-child(2),
.table thead th:nth-child(3),
.table thead th:nth-child(4),
.table thead th:nth-child(5) {
  text-align: left;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f0f2f5;
}

/* Modern Input Styles */
.modern-form-group {
  margin-bottom: 24px;
}

.modern-label {
  font-weight: 600;
  color: #1c1e21;
  font-size: 0.9375rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.modern-label i {
  color: #1877f2;
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.modern-input-group {
  position: relative;
  margin-bottom: 6px;
}

.modern-input {
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid #e4e6eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1c1e21;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 52px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.modern-input:hover {
  border-color: #ccd0d5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-input:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.1), 0 4px 12px rgba(24, 119, 242, 0.15);
  outline: none;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

.modern-input::placeholder {
  color: #b0b3b8;
  font-weight: 400;
}

.modern-input-prepend,
.modern-input-append {
  font-weight: 600;
  background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
  border: 2px solid #e4e6eb;
  border-radius: 8px;
  color: #1877f2;
  font-size: 1rem;
  padding: 14px 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modern-input-prepend {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.modern-input-append {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.modern-input-group:focus-within .modern-input-prepend,
.modern-input-group:focus-within .modern-input-append {
  border-color: #1877f2;
  background: linear-gradient(135deg, #e7f3ff 0%, #d0e7ff 100%);
  color: #1877f2;
  z-index: 1;
  position: relative;
}

/* Input group border connections - seamless borders */
.modern-input-group.has-prepend .modern-input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.modern-input-group.has-append .modern-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.modern-input-group:focus-within.has-prepend .modern-input {
  border-left: none !important;
}

.modern-input-group:focus-within.has-append .modern-input {
  border-right: none !important;
}

.modern-input-group:focus-within.has-prepend .modern-input-prepend {
  border-right: 2px solid #1877f2 !important;
}

.modern-input-group:focus-within.has-append .modern-input-append {
  border-left: 2px solid #1877f2 !important;
}

.modern-help-text {
  color: #65676b;
  font-size: 0.8125rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.modern-help-text i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.modern-submit-btn {
  background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff !important;
  font-family: Helvetica, Arial, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
  position: relative;
  overflow: hidden;
}

.modern-submit-btn,
.modern-submit-btn * {
  color: white !important;
}

.modern-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.modern-submit-btn:hover {
  background: linear-gradient(135deg, #166fe5 0%, #3aa31e 100%);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
  transform: translateY(-2px);
}

.modern-submit-btn:hover::before {
  left: 100%;
}

.modern-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.modern-submit-btn i {
  margin-right: 8px;
  color: white !important;
  opacity: 1 !important;
}

/* Legacy Input Styles - Facebook Style (for compatibility) */
.form-group {
  margin-bottom: 16px;
}

.form-control {
  font-size: 0.9375rem;
  padding: 10px 12px;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1c1e21;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 42px;
}

.form-control:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
  outline: none;
}

.form-control-lg {
  font-size: 1rem;
  padding: 12px 14px;
  min-height: 48px;
  line-height: 1.5;
}

.input-group-text {
  font-weight: 600;
  background-color: #f0f2f5;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  color: #65676b;
  font-size: 0.9375rem;
  padding: 10px 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group-lg > .input-group-text {
  padding: 12px 14px;
  min-height: 48px;
  font-size: 1rem;
}

.input-group-text .rupee-symbol {
  font-size: 1.2em;
  font-weight: 600;
  color: #65676b;
}

/* Input group alignment */
.input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group-prepend,
.input-group-append {
  display: flex;
}

.input-group-prepend .input-group-text,
.input-group-append .input-group-text {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 42px;
  border-radius: 6px;
}

.input-group-lg .input-group-prepend .input-group-text,
.input-group-lg .input-group-append .input-group-text {
  padding: 12px 14px;
  min-height: 48px;
}

.input-group > .form-control,
.input-group > .form-control-plaintext {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group > .form-control:not(:first-child),
.input-group > .form-control-plaintext:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child),
.input-group > .form-control-plaintext:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-primary {
  background: #1877f2;
  border: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
}

.btn-primary:hover {
  background: #166fe5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: #1565d8;
  transform: translateY(0);
}

/* Progress Bar Animation */
.progress {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e4e6eb;
}

.progress-bar {
  transition: width 1s ease-in-out;
  background: #1877f2;
}

/* Card Headers - Facebook Style */
.card-header {
  padding: 16px;
  border-bottom: 1px solid #e4e6eb;
  background-color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #1c1e21;
}

.card-body {
  padding: 16px;
  background-color: #ffffff;
}

/* Labels */
label {
  font-weight: 600;
  color: #1c1e21;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

small.form-text {
  color: #65676b;
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* Comparison Highlight - Facebook Style */
.comparison-highlight {
  background-color: #e7f3ff !important;
  border-left: 3px solid #1877f2;
}

/* Milestone Styles - Full Width Layout */
.milestones-section {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  display: block;
}

/* Vertical Milestones Section - One below another */
.milestones-section-vertical {
  width: 100%;
  margin-top: 0;
}

.milestones-header-vertical {
  background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%) !important;
}

.milestones-content-vertical {
  background: #f0f2f5;
}

.milestone-item-card {
  cursor: pointer;
}

.milestone-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.milestone-category-section {
  margin-bottom: 24px;
}

.milestone-category-section:last-child {
  margin-bottom: 0 !important;
}

.milestone-category-header {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.milestone-category-header i,
.card-header i {
  color: white !important;
  opacity: 1 !important;
}

.milestone-category-items-grid {
  padding-left: 0;
}

/* Responsive grid for milestone cards and results cards */
@media (max-width: 768px) {
  .milestone-category-items-grid,
  #resultsContainer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .milestone-category-items-grid,
  #resultsContainer [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 992px) {
  .milestone-category-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
  
  #resultsContainer [style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
}

/* Ensure result cards wrap properly and handle long numbers */
#resultsContainer .milestone-item-card {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.milestones-full-width-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.milestones-header {
  background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%) !important;
  padding: 16px !important;
  border-radius: 8px 8px 0 0 !important;
  margin-bottom: 0 !important;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.milestone-category {
  margin-bottom: 16px;
}

.milestone-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.milestone-item {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #1877f2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.milestone-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.milestone-badge {
  display: inline-block;
  margin-top: 4px;
  white-space: nowrap;
}

/* Responsive milestone layout - Full width on laptops */
@media (min-width: 992px) {
  /* Use more columns to fill space better within the column */
  .milestone-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 100%;
    gap: 14px;
    width: 100%;
  }
  
  .milestones-section {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .milestone-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .milestone-item {
    padding: 14px;
  }
}

@media (max-width: 991px) {
  .milestone-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .milestone-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .milestones-header {
    padding: 12px !important;
  }
  
  .milestones-header h5 {
    font-size: 1.125rem !important;
  }
}

@media (max-width: 576px) {
  .milestone-list {
    gap: 8px;
  }
  
  .milestone-item {
    padding: 10px;
  }
  
  .milestones-header h5 {
    font-size: 1rem !important;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .result-value.total {
    font-size: 2.5rem;
  }
  
  .result-value.highlight {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .result-value {
    font-size: 1.75rem;
  }

  .result-value.highlight {
    font-size: 2rem;
  }

  .result-value.total {
    font-size: 2.25rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }
  
  .card-header h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  body {
    background-color: #f0f2f5;
    padding: 0;
  }

  .container {
    padding: 4px 2px;
    max-width: 100%;
  }

  .calculator-card,
  .results-card,
  .chart-card,
  .comparison-card,
  .educational-card,
  .tips-card {
    margin-bottom: 12px;
  }
  
  .card-body {
    padding: 12px 8px;
  }

  .result-value {
    font-size: 1.5rem;
  }

  .result-value.highlight {
    font-size: 1.75rem;
  }

  .result-value.total {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 1.375rem;
  }

  .stat-card {
    margin-bottom: 12px;
    min-height: 110px;
    padding: 12px 8px;
  }

  .form-control-lg {
    font-size: 0.9375rem;
    padding: 10px 12px;
    min-height: 44px;
  }

  .input-group-lg > .input-group-text {
    padding: 10px 12px;
    min-height: 44px;
  }

  /* Modern input responsive */
  .modern-input {
    font-size: 0.9375rem;
    padding: 12px 14px;
    min-height: 48px;
  }

  .modern-input-prepend,
  .modern-input-append {
    padding: 12px 14px;
    min-height: 48px;
    font-size: 0.9375rem;
  }

  .modern-submit-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .card-header {
    padding: 10px 8px;
  }

  .card-header h3 {
    font-size: 1.0625rem;
  }

  .result-box {
    padding: 14px 10px;
  }

  .tip-item {
    min-height: 160px;
    padding: 16px 12px;
    margin-bottom: 12px;
  }

  .table {
    font-size: 0.875rem;
  }

  .table thead th,
  .table tbody td {
    padding: 8px 6px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 4px 2px;
    max-width: 100%;
  }

  .result-value {
    font-size: 1.375rem;
  }

  .result-value.highlight {
    font-size: 1.5rem;
  }

  .result-value.total {
    font-size: 1.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-card {
    min-height: 100px;
    padding: 10px;
  }

  .input-group-text {
    padding: 6px 10px;
  }

  .input-group-text .rupee-symbol {
    font-size: 1.1em;
  }

  .form-control-lg {
    font-size: 0.875rem;
    padding: 10px 12px;
    min-height: 42px;
  }
  
  .input-group-lg > .input-group-text {
    padding: 10px 12px;
    min-height: 42px;
  }

  /* Modern input responsive - small screens */
  .modern-input {
    font-size: 0.875rem;
    padding: 12px 14px;
    min-height: 46px;
  }

  .modern-input-prepend,
  .modern-input-append {
    padding: 12px 14px;
    min-height: 46px;
    font-size: 0.875rem;
  }

  .modern-label {
    font-size: 0.875rem;
  }

  .modern-help-text {
    font-size: 0.75rem;
  }

  .modern-submit-btn {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .table {
    font-size: 0.8125rem;
  }

  .table thead th,
  .table tbody td {
    padding: 6px 4px;
  }

  .tip-item h5 {
    font-size: 1rem;
  }

  .tip-item p {
    font-size: 0.875rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Ensure consistent spacing */
.row.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.row.mx-0 > [class*='col-'] {
  padding-left: 4px;
  padding-right: 4px;
}

@media (min-width: 768px) {
  .row.mx-0 > [class*='col-'] {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Chart container */
.chart-container {
  width: 100%;
  position: relative;
}

#growthChart {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .chart-container {
    height: 400px !important;
    min-height: 350px !important;
  }
  
  .chart-card .card-body {
    padding: 8px 4px !important;
  }
}

@media (max-width: 576px) {
  .chart-container {
    height: 450px !important;
    min-height: 400px !important;
  }
  
  .chart-card .card-body {
    padding: 6px 2px !important;
  }
}

/* Educational cards responsive */
.educational-card .card-body {
  padding: 16px;
}

@media (max-width: 768px) {
  .educational-card .card-body {
    padding: 12px;
  }
}

/* Header styling */
h1.display-4 {
  color: #1c1e21;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.lead {
  color: #65676b;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
}

/* Alert styling - Facebook style */
.alert {
  border-radius: 8px;
  border: 1px solid #e4e6eb;
  padding: 12px 16px;
  font-size: 0.9375rem;
}

.alert-info {
  background-color: #e7f3ff;
  border-color: #1877f2;
  color: #1c1e21;
}

/* Icon colors */
.fa-chart-line,
.fa-calculator,
.fa-trophy,
.fa-chart-area,
.fa-table,
.fa-lightbulb {
  color: #1877f2;
}

.fa-rocket {
  color: #1877f2;
}

.modern-submit-btn .fa-rocket {
  color: white !important;
}

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

.text-primary {
  color: #1877f2 !important;
}

.text-info {
  color: #1877f2 !important;
}

.text-warning {
  color: #f7b928 !important;
}

.text-danger {
  color: #e41e3f !important;
}
