body { font-family: Arial, sans-serif; padding: 20px; }

/* 登录界面样式 */
#login-section {
  background: white;
  padding: 30px 24px; /* 左右都24px，确保内边距对称 */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  width: 320px;
  margin: 120px auto;
  box-sizing: border-box;
}
#login-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
#login-section input {
  display: block;
  width: 100%;        /* 占满容器内容宽度 */
  padding: 6px 10px;  /* 内边距左右均匀 */
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* 关键，padding不额外撑宽度 */
}
#login-section button {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#login-section button:hover {
  background-color: #45a049;
}
#error-msg {
  color: red;
  font-size: 13px;
  text-align: center;
}

/* 实例管理页面的样式（保持不变） */
.form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
select, button { padding: 6px 10px; font-size: 14px; }
button {
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:disabled {
  background-color: #9E9E9E;
  cursor: not-allowed;
}
button:hover:not(:disabled) { background-color: #45a049; }
table { border-collapse: collapse; width: 100%; }
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 13px;
}
th { background-color: #f2f2f2; text-align: left; }
td {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.delete-btn {
  background-color: #e74c3c;
  border-radius: 6px;
  padding: 4px 8px;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}
.delete-btn:hover:not(:disabled) {
  background-color: #c0392b;
}
.delete-btn:disabled {
  background-color: #b5b5b5;
  cursor: not-allowed;
}
#tooltip {
  position: fixed;
  background: #fff;
  border: 1px solid #888;
  padding: 8px;
  font-size: 13px;
  max-width: 400px;
  max-height: 200px;
  overflow: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10000;
  display: none;
  white-space: pre-wrap;
  user-select: text;
}
#modal-bg {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
#modal {
  background: white;
  border-radius: 6px;
  max-width: 600px;
  max-height: 80vh;
  margin: 10vh auto;
  padding: 20px;
  overflow: auto;
  font-size: 14px;
  white-space: pre-wrap;
}
#modal-close {
  cursor: pointer;
  float: right;
  font-weight: bold;
  font-size: 18px;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 新增筛选控件样式 */
#filter-container {
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}
#filter-container label {
  font-size: 14px;
}
#filter-container select {
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* 转圈圈的动画 */
.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3498db; /* 设置转圈圈颜色 */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite; /* 旋转效果 */
  margin: 20px auto; /* 居中显示 */
}

/* 旋转动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

