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 14%; 
  background-color: #2c3e50;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  box-sizing: border-box;
}

#unity-container {
  flex: 1 1 86%; 
  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;
  box-sizing: border-box; /* Ավելացված է՝ չափսերը ճիշտ հաշվելու համար */
}

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

/* Meta Field */
.meta-field {
  margin-bottom: 12px;
  color: #ecf0f1;
  overflow: hidden; /* Պաշտպանություն դուրս գալուց */
}

.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;
  display: block; /* Ellipsis-ի համար */
  overflow: hidden;
  text-overflow: ellipsis; /* Ավելացնում է ... */
  white-space: nowrap; /* Պահում է մեկ տողի վրա */
}

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

.id-value {
  font-size: 0.9vw;
  color: #3498db;
  font-family: monospace;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  display: block;
  word-break: break-all; /* Կոտրում է երկար անունները, որ տեղավորվեն */
}

/* 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;
}

/* Unity Control Buttons Styles */
#unity-debug-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.debug-btn {
    padding: 8px 20px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-family: sans-serif;
    transition: transform 0.1s, opacity 0.2s;
    text-transform: uppercase;
    font-size: 12px;
}

.debug-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.debug-btn:active {
    transform: scale(0.95);
}

#btn-hide { background-color: #e74c3c; }
#btn-show { background-color: #2ecc71; }
#btn-reinit { background-color: #3498db; }