/* General Styling */
.mrc-wrapper {
  font-family: Arial, sans-serif;
  max-width: 100%;
  margin: 18px auto;
  padding: 18px;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.mrc-header h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
}

.mrc-sub {
  font-size: 14px;
  color: #666;
}

/* Input Fields and Labels */
.mrc-row {
  margin: 10px 0;
}

.mrc-row.two {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mrc-row.two > div {
  flex: 1;
  min-width: 200px; /* Prevents inputs from being too narrow on small screens */
}

.mrc-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.mrc-row input[type="number"], .mrc-row input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Buttons */
.mrc-btn {
  margin-right: 8px;
  padding: 8px 12px;
  border: 1px solid #0b74de;
  background: #fff;
  color: #0b74de;
  border-radius: 6px;
  cursor: pointer;
}

.mrc-btn.primary {
  background: #0b74de;
  color: #fff;
  border-color: #0b74de;
}

/* Results Section */
.mrc-result {
  margin-top: 12px;
}

.mrc-table th, .mrc-table td {
  padding: 8px 6px;
  border: 1px solid #eee;
  text-align: right;
}

.mrc-table th {
  background: #f9f9f9;
  text-align: left;
}

/* Dark Mode */
.mrc-dark {
  background: #111;
  color: #eee;
}

.mrc-dark .mrc-btn {
  background: #222;
  color: #eee;
  border-color: #444;
}

/* Scrollable Tables */
.mrc-scroll {
  overflow: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mrc-header h1 {
    font-size: 18px;
  }

  .mrc-sub {
    font-size: 12px;
  }

  .mrc-row label {
    font-size: 14px;
  }

  .mrc-btn {
    padding: 6px 10px;
  }

  .mrc-row.two {
    display: block; /* Stack inputs vertically on small screens */
  }

  .mrc-row.two > div {
    min-width: 100%; /* Ensure full width on smaller screens */
  }

  .mrc-table th, .mrc-table td {
    font-size: 12px; /* Make table text smaller */
  }

  .mrc-result {
    font-size: 14px;
  }

  .mrc-scroll {
    margin-top: 10px;
    overflow-x: auto; /* Enable horizontal scrolling on mobile */
  }
  
  /* Make the table text align properly on smaller screens */
  .mrc-table th {
    text-align: center; /* Center-align headers on small screens */
  }
}