html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
}


/* Main Container Layout */
#main-container {
  display: flex;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}


#web-interface {
  flex: 0 0 20%; 
  background-color: #2c3e50;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  box-sizing: border-box;
  display: none;
}

#unity-container {
  flex: 1 1 80%; 
  height: 100% !important; 
  position: relative;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

#unity-container.unity-desktop {
    left: auto !important;
    top: auto !important;
    transform: none !important;
    position: relative !important; 
}

#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Scroll View */
#objects-scroll-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 20px;
}

/* Object Item Card */
.object-item {
  background-color: #34495e;
  border-radius: 8px;
  padding: 15px;
  border: 2px solid #455a64;
  transition: border-color 0.3s;
}

.object-item:hover {
  border-color: #5dade2;
}

/* Meta Field */
.meta-field {
  margin-bottom: 12px;
  color: #ecf0f1;
}

.class-label {
  font-weight: bold;
  font-size: 0.8vw;
  color: #bdc3c7;
  margin-bottom: 4px;
}

.class-value {
  font-size: 0.9vw;
  color: #3498db;
  font-family: monospace;
}

.id-label {
  font-weight: bold;
  font-size: 0.8vw;
  color: #bdc3c7;
  margin-bottom: 4px;
  /* display: block; */
}

.id-value {
  font-size: 0.9vw;
  color: #3498db;
  font-family: monospace;
}

.name-label {
  font-weight: bold;
  font-size: 0.8vw;
  color: #bdc3c7;
  margin-bottom: 4px;
}

.name-value {
  font-size: 0.9vw;
  color: #ffffff;
  font-family: monospace;
}

/* Transform Field Container */
.transform-field {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 0.7vw;
  font-weight: bold;
  color: #bdc3c7;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* Input Container */
.input-container {
  display: flex;
  gap: 5px;
}

.input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.axis-label {
  font-size: 9px;
  color: #95a5a6;
  margin-bottom: 2px;
  text-align: center;
}

.transform-input {
  width: 100%;
  padding: 6px;
  background-color: #2c3e50;
  border: 1px solid #455a64;
  border-radius: 4px;
  color: #ecf0f1;
  font-size: 0.8vw;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.transform-input:focus {
  outline: none;
  border-color: #3498db;
  background-color: #1a252f;
}

.transform-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Size field - single input */
.size-input-wrapper {
  display: flex;
  gap: 5px;
  align-items: center;
}

.size-input-wrapper .transform-input {
  max-width: 100px;
}

/* Button Container */
.button-container {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.action-button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.create-button {
  background-color: #27ae60;
  color: white;
}

.create-button:hover:not(:disabled) {
  background-color: #229954;
  transform: translateY(-1px);
}

.delete-button {
  background-color: #e74c3c;
  color: white;
}

.delete-button:hover:not(:disabled) {
  background-color: #c0392b;
  transform: translateY(-1px);
}

.action-button:disabled {
  background-color: #7f8c8d;
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

/* Scrollbar Styling */
#web-interface::-webkit-scrollbar {
  width: 8px;
}

#web-interface::-webkit-scrollbar-track {
  background: #1a252f;
}

#web-interface::-webkit-scrollbar-thumb {
  background: #455a64;
  border-radius: 4px;
}

#web-interface::-webkit-scrollbar-thumb:hover {
  background: #546e7a;
}

/* Responsive adjustments */
/* @media (max-width: 768px) {
  #main-container {
    flex-direction: column;
  }
  
  #web-interface {
    width: 100%;
    height: 40%;
  }
  
  #unity-container {
    width: 100%;
    height: 60%;
  }
} */
