    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      font-size: 14px;
      color: #333;
      margin: 0;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      height: 100vh;
    }
    .top-bar-custom-style {
      height: 6vh;
      background-color: #fff;
      border-bottom: 1px solid #dee2e6;
      padding: 0.5rem 1rem;
      display: flex;
      align-items: center;
      flex-shrink: 0;
      z-index: 1030;
    }
    .main-app-container {
        display: flex;
        flex-grow: 1;
        overflow: hidden;
    }
    .main-tool-row {
        display: flex;
        width: 100%;
        height: 100%;
    }
    .toolbar-icons-container {
      background-color: #f1f1f1;
      padding: 10px 8px !important;
      border-right: 1px solid #ddd;
      height: 100%;
      overflow-y: auto;
      flex-shrink: 0;
    }
    .toolbar-icon {
      padding: 10px;
      margin-bottom: 5px;
      border-radius: 5px;
      transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      cursor: pointer;
    }
    .toolbar-icon:hover {
      background-color: #e0e0e0;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    /* === YAHAN ACTIVE ICON KA STYLE ADD KIYA HAI === */
    .toolbar-icon.active-tool-icon {
      background-color: #cce5ff !important; /* Light blue color, !important for testing */
    }
    .toolbar-icon i {
      font-size: 20px;
      line-height: 1;
    }
    .toolbar-icon img {
      max-width: 24px;
      max-height: 24px;
      object-fit: contain;
    }
    .toolbar-icon[data-tool="4"] img, .toolbar-icon[data-tool="5"] img {
      max-width: 20px;
      max-height: 20px;
    }
    .features-panel {
      padding: 16px;
      background-color: #f8f9fa;
      width: 300px;
      overflow-y: auto;
      height: 100%;
      border-right: 1px solid #ddd;
      box-shadow: inset -1px 0 0 #f8f9fa;
      flex-shrink: 0;
    }
    .features-panel h3 {
      font-size: 1.15rem;
      color: #007bff;
      margin-top: 0;
      margin-bottom: 1rem;
      padding-bottom: 0.6rem;
      border-bottom: 1px solid #e0e0e0;
    }
    .tool-feature label {
      font-weight: 500;
      margin-top: 0.75rem;
      margin-bottom: 0.3rem;
      color: #555;
    }
    .form-control, .btn {
      font-size: 0.9rem;
      border-radius: 0.25rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .form-control[readonly] {
        background-color: #e9ecef;
        cursor: not-allowed;
    }
    .form-control:focus {
      border-color: #007bff;
      box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    }
    .btn-outline-secondary {
      text-align: left;
      padding: 0.375rem 0.75rem;
    }
    .btn-outline-secondary span {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .shape-btn img {
      vertical-align: middle;
    }
    .shape-btn.active {
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    }
    .model-area-column {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        height: 100%;
        min-width: 0;
    }
    .model-container {
      flex-grow: 1;
      position: relative;
      border: 1px solid #ddd;
      overflow: hidden;
      min-height: 0;
    }
    #model-display {
        width: 100%;
        height: 100%;
        display: block;
    }
    #model-display canvas {
        display: block;
    }
    
    
    
    
/* Main container styling */
.dimension-feature {
    background-color: #EBEBEB;
    display:block;
    border: 1px solid #BDBDBD;
    font-family: Arial, sans-serif;
    font-size: medium;
}

/* --- THIS IS THE MOST IMPORTANT PART FOR THE LAYOUT --- */
/* It makes each row (Force and Movem.) arrange its items horizontally. */
.input-row {
    display: flex; /* This makes items line up side-by-side */
    align-items: center; /* This vertically centers the items in the row */
    background-color: #EBEBEB;
    padding: 10px 5px;
    border-bottom: 2px solid white;
}

/* Remove the line from the last row */
.input-row:last-child {
    border-bottom: none;
}

/* Styling for the main labels "Force :" and "Movem. :" */
.row-label {
    width: 140px;
    flex-shrink: 0;
}

/* Container for each axis label and its input box */
.input-group {
    display: flex;
    width: max-content;
    align-items: center;
    margin: 0 45px;
}

.input-group label {
    margin-right: 8px;
}

.input-group input[type="number"] {
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 16px;
    color: #595959;
    border: 1.5px solid #9A9A9A;
    border-radius: 2px;
}

/* Optional: Hides the small arrows in number input fields */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
    
    
.info-section {
  padding: 16px;
  width: 280px;
  background-color: #f8f9fa;
  border-left: 1px solid #ddd;
  overflow-y: auto;
  flex-shrink: 0;
  height: 80vh; /* 👈 Added for full height scroll */
  position: relative; /* 👈 To keep it fixed if needed */
  top: 0;
  right: 0;
  z-index: 999; /* Optional: stay on top */
}

.info-section h6 {
  font-size: 1.1rem;
  color: #007bff;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.6rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

    #modelInfoDuplicate p, #modelInfo p, #modelInfo div, #modelInfoDuplicate div {
      font-size: 0.85rem;
      line-height: 1.5;
      word-wrap: break-word;
      color: #444;
    }
    .dimension-input {
      position: absolute;
      border: 1px solid #007bff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      padding: 5px 8px;
      font-size: 13px;
      border-radius: 3px;
      width: 70px;
      height: 28px;
      z-index: 1050;
      background: white;
      text-align: center;
    }
    #viewCube {
      position: absolute;
      bottom:25px;
      left: 20px;
      width: 60px;
      height: 60px;
      border-radius: 6px;
      box-shadow: 0 1px 5px rgba(0,0,0,0.2);
      background: rgba(250, 250, 250, 0.9);
      z-index: 100;
      overflow: hidden;
    }
    #orbitView {
      position: absolute;
      bottom: 25px;
      right: calc(0px + 0px + 40px);
      width: 50px;
      height: 50px;
      z-index: 100;
      border-radius: 4px;
      overflow: hidden;
    }
    #viewCube canvas, #orbitView canvas {
      width: 100% !important;
      height: 100% !important;
      border-radius: inherit;
    }
    .modal-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }
    .modal-title {
        color: #343a40;
    }
    .table-hover > tbody > tr:hover > * {
      color: var(--bs-table-hover-color);
      background-color: var(--bs-table-hover-bg);
    }
    .modal-table {
      max-height: 300px;
      overflow-y: auto;
    }
    .bolt-btn { margin: 2px !important; }
    /* === TOOL FEATURE 'active' CLASS KO DISPLAY BLOCK KARNE KE LIYE === */
    .tool-feature {
        display: none; /* Default state mein sab features hidden */
    }
    .tool-feature.active {
        display: block; /* Active feature ko display block karo */
    }
	
	@media (max-width: 599.98px) {
    body {
        height: auto;
        overflow-y: auto;
    }
    .main-app-container {
        height: auto;
        overflow: visible;
    }
    .main-tool-row, #model-form {
         height: auto;
    }
    
    
    .input-group {
        display: flex;
        width: max-content;
        align-items: center;
        margin: 0 15px;
        flex-direction: row;
    }    
    .row-label {
        width: max-content;
        flex-shrink: 0;
    }
    
    #toolbarAndFeaturesAndModelWrapper {
        flex-direction: column !important; 
        height: auto;
        width: inherit;
    }
	.d-flex {
		display: flex !important;
		flex-direction: column;
	}
    .toolbar-icons-container {
        flex-direction: row !important;
        width: 100% !important;
        height: auto !important;
        padding: 8px 5px !important;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none !important;
        border-bottom: 1px solid #ddd;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .toolbar-icon {
        margin-right: 8px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .features-panel {
        width: 100% !important;
        height: auto;
        max-height: 45vh;
        overflow-y: auto;
        border-right: none !important;
        border-bottom: 1px solid #ddd;
    }

    .model-area-column {
        width: 100% !important;
        height: auto;
    }

    .model-container {
        min-height: 280px;
        height: 40vh;
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .dimension-feature {
        width: 100% !important;
        font-size: smaller;
        padding: 0.1rem;
    }

    .info-section {
        width: 100% !important;
        height: auto;
		bottom: -464px;
        max-height: 30vh;
        overflow-y: auto;
        border-left: none !important;
        border-top: 1px solid #ddd;
    }

    #viewCube, #orbitView {
        bottom: 10px;
        transform: scale(0.8);
    }
    #viewCube { left: 10px; }
    #orbitView { right: 10px; }
}