/* Main Container */
.mfc-calculator-container {
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Shares Grid Layout */
.mfc-shares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

/* Share Box Styling */
.mfc-share-box {
  padding: 15px;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #6964c2;
  position: relative;
}

.mfc-share-1 {
  border-top-color: #4CAF50;
}

.mfc-share-2 {
  border-top-color: #6964c2;
}

.mfc-share-box:nth-child(odd):not(.mfc-share-1):not(.mfc-share-2) {
  border-top-color: #FF9800;
}

.mfc-share-box:nth-child(even):not(.mfc-share-1):not(.mfc-share-2) {
  border-top-color: #9C27B0;
}

.mfc-share-title {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #444;
  font-weight: 500;
}

/* Input Layout - Desktop/Tablet */
.mfc-input-row {
  display: flex;
  gap: 10px;
}

.mfc-input-group {
  flex: 1;
}

.mfc-input-label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #666;
}

.mfc-price-input {
  position: relative;
}

.mfc-price-input .mfc-currency-symbol {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #333;
}

.mfc-price-input input {
  padding-left: 28px !important;
}

.mfc-input-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Mobile Responsive Layout */
@media (max-width: 600px) {
   .mfc-shares-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  } 
  
  .mfc-input-row {
    flex-direction: column;
  }
  
  .mfc-share-box {
    padding: 12px;
  }
}

/* Add Share Button */
.mfc-add-share-btn {
  background: none;
  border: 1px dashed #ccc;
  padding: 10px 15px;
  width: auto;
  margin: 7px 0 7px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  color: #6964c2;
  transition: all 0.2s;
}

.mfc-add-share-btn:hover {
  border-color: #6964c2;
  background: rgba(105, 100, 194, 0.05);
}

/* Delete Button */
.mfc-share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mfc-delete-share {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

.mfc-share-box:not(.mfc-share-1):not(.mfc-share-2) .mfc-delete-share {
  display: block;
}

/* Results Box */
.mfc-results-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin: 10px 0;
  border: 1px solid #e0e0e0;
}

.mfc-result-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.mfc-result-line:last-child {
  margin-bottom: 0;
}

.mfc-result-label {
  color: #555;
}

.mfc-result-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: #333;
}

.mfc-currency-symbol {
  color: #6964c2;
}

.mfc-total-amount {
  color: #4CAF50;
}

.mfc-average-price {
  color: #6964c2;
}

/* Buttons */
/* .mfc-button-group {
  display: flex;
  gap: 12px;
} */

.mfc-button-group button {
  /* flex: 1; */
  padding: 5px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.mfc-calculate-btn {
  background: #6964c2;
  color: white;
}

.mfc-calculate-btn:hover {
  background: #5a55b0;
}

.mfc-reset-btn {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e0e0e0;
}

.mfc-reset-btn:hover {
  background: #e9e9e9;
}

/* Font Awesome base (if CDN fails) */
.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* Calculators Grid */
.mfc-calculators-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
}

.mfc-calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.mfc-calculator-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  border: 1px solid #e0e0e0;
}

.mfc-calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #6964c2;
}

.mfc-calculator-icon {
  font-size: 2.5rem;
  color: #6964c2;
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mfc-calculators-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}