body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#tileCalculatorForm h2 {
  grid-column: 1 / -1; /* Make headings span full width */
  margin-top: 5px;
  margin-bottom: 0px;
  font-size: 20px;
}

.image-container-cal {
  text-align: center;
  margin: 20px 0;
}

.image-container-cal img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.calculator form {
  display: grid;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
  font-size: 14px;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
}

/* === Combined Input and Select === */
.input-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.input-select-group input {
  flex: 2;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-select-group select {
  flex: 1;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* === Result Box Styling === */
.result-show {
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  text-align: left;
  margin-top: 30px;
}

.result-show h2 {
  text-align: left;
  font-size: 20px;
  margin-bottom: 15px;
}

.result-show strong {
  font-size: 18px;
  color: #000;
}

/* === Buttons === */
.calculator .btn-five {
  color: rgb(139, 111, 78);
  background-color: transparent;
  display: inline-block;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid rgb(139, 111, 78);
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 0px;
  margin-bottom:10px;
}

.calculator .btn-five:hover {
  background-color: rgb(139, 111, 78) !important;
  color: rgb(255, 255, 255) !important;
 }

/* === Responsive Adjustments === */
@media (max-width: 992px) {
  .calculator form {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .result-show {
    padding: 20px;
  }

  .btn-four {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .calculator form {
    padding: 20px 15px;
  }

  .input-select-group {
    flex-direction: column;
  }

  .input-select-group input,
  .input-select-group select {
    border-radius: 5px !important;
    border: 1px solid #ccc;
  }

  .input-select-group input {
    margin-bottom: 10px;
    border-right: 1px solid #ccc;
  }
}

/* === Toggle and Conversion === */

.quick-conversion {
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.conversion-section {
  width: 100%;
  margin: auto;
}

.quick-conversion .tab-button {
  background-color: transparent;
  color: #8b6f4e;
  border: 2px solid #8b6f4e;
  padding: 10px 12px;
  text-transform: capitalize;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}
.quick-conversion .tab-button.active,  .quick-conversion .tab-button:hover {
  background-color: #8b6f4e;
  color: white;
}

.toggle-group {
  text-align: center;
  margin-bottom: 20px;
}

.toggle-btn {
  margin: 5px;
  padding: 8px 16px;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
}

.toggle-btn:hover {
  background-color: #ddd;
}

.hidden {
  display: none;
}

.convert-btn {
  margin: 5px 5px 10px 0;
  padding: 8px 14px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.convert-btn:hover {
  background-color: #0056b3;
}

.result-text {
  font-weight: bold;
  margin-top: 10px;
}

/* === Sidebar and List === */
.calculator-box {
  border: 1px solid #ddd;
  overflow: hidden;
  background: #fff;
}

.sidebar-header {
  background: #333;
  color: white;
  padding: 1rem;
}

.calculator-title {
  font-weight: bold;
  font-size: 1.5rem;
}

.calculator-subtitle {
  font-size: 1rem;
  color: #ccc;
}

.calculator-list .list-group-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  padding: 1rem;
  border: none;
  border-bottom: 1px solid #eee;
}

.calculator-list .list-group-item:last-child {
  border-bottom: none;
}

.calculator-list i {
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
}

.calculator-list .list-group-item a.active {
  color: #8b6f4e !important;
  font-weight: bold;
}

.calculator-list .list-group-item a:hover {
  color: #8b6f4e !important;
}
.conversion-section .form-group{margin-bottom: 10px;}

/* Mobile Sidebar Adjustments */
@media (max-width: 576px) {
  .calculator-title {
    font-size: 1.2rem;
  }
  .quick-conversion {
      padding: 20px 15px;
    }
    
    .conversion-section {
      width: 100%;
      margin: auto;
    }

    

  .calculator-list .list-group-item {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .calculator-list i {
    font-size: 1.2rem;
  }

}

.calculator .stair {
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 0px;
}

.table-responsive table {
  width: 100%;
  min-width: 900px; /* Force horizontal scroll on small screens */
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #ccc;
  white-space: nowrap; /* Prevent content wrapping */
}

.table-responsive th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.table-responsive input[type="number"] {
  width: 80px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
  text-align: center;
}

/* Optional: Prevent input resizing on mobile */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 576px) {
  .calculator .stair {
    padding: 20px 15px;
  } 
}

.calculator  select {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' stroke='%23666' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center; /* ⬅️ Aligns the icon */
  background-size: 12px; /* ⬅️ Controls arrow size */
  
}
