/* Mock API Service - Main Stylesheet */

/* Layout Styles */
.flex-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.flex-item {
  box-sizing: border-box;
  min-width: 0;
}

.form-section {
  flex: 0 0 60%;
  /* Do not grow or shrink, occupy 60% width */
}

.table-section {
  flex: 0 0 40%;
  /* Do not grow or shrink, occupy 40% width */
  overflow: hidden;
}

/* Tree View Styles */
.tree-container {
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: white;
  height: 500px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  box-sizing: border-box;
  font-family: inherit;
}

.tree-item {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  cursor: pointer;
  user-select: none;
  min-height: 28px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.tree-item:hover {
  background-color: #f5f5f5;
}

.tree-expand {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
}

.tree-expand:hover {
  background-color: #e8e8e8;
}

.tree-expand i {
  font-size: 10px;
  color: #666;
  transition: transform 0.2s ease;
}

.tree-expand.expanded i {
  transform: rotate(90deg);
}

.tree-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tree-icon i {
  font-size: 14px;
}

.folder-icon {
  color: #54a3ff;
}

.file-icon {
  color: #6cc04a;
}

.tree-label {
  flex: 1;
  font-size: 13px;
  color: #333;
  min-width: 0;
}

.tree-actions {
  display: none;
  gap: 2px;
  margin-left: 8px;
}

.tree-item:hover .tree-actions {
  display: flex;
}

/* Action Button Styles */
.action-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background-color: #e8e8e8;
}

.action-btn i {
  font-size: 11px;
  color: #666;
}

.action-btn.edit:hover i {
  color: #1976d2;
}

.action-btn.delete:hover i {
  color: #dc3545;
}

.action-btn.open:hover i {
  color: #28a745;
}

.action-btn.clone:hover i {
  color: #6f42c1;
}

/* Tree Children Styles */
.tree-children {
  overflow: hidden;
}

.tree-children.collapsed {
  display: none;
}

/* JSON Editor Styles */
#jsoneditor {
  min-height: 400px;
  height: 400px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
}

/* Ensure proper layout when container becomes visible */
.jsoneditor {
  font-family: inherit !important;
}

.jsoneditor-statusbar {
  border-top: 1px solid #d3d3d3;
  background: #f5f5f5;
  color: #666;
}

/* Folder Sharing Styles */
.action-btn.share {
  color: #198754;
}

.action-btn.share:hover {
  background-color: rgba(25, 135, 84, 0.1);
}

.user-search-result {
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 4px;
}

.user-search-result:hover {
  background-color: #f8f9fa;
}

.folder-share-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 8px;
} 