.users-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-header {
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.users-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}

/* 用户对话框样式 */
.user-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dialog-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.user-form .form-group {
  margin-bottom: 20px;
}

.user-form label {
  display: block;
  margin-bottom: 8px;
  color: #666;
}

.user-form input,
.user-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.user-form input:focus,
.user-form select:focus {
  outline: none;
  border-color: #2196F3;
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.cancel-btn {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
}

/* 角色标签样式 */
.role-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.role-admin {
  background-color: #e3f2fd;
  color: #1976D2;
}

.role-operator {
  background-color: #e8f5e9;
  color: #43a047;
}

.role-viewer {
  background-color: #f5f5f5;
  color: #757575;
}

/* 操作按钮样式 */
.edit-btn {
  padding: 6px 12px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  transition: background-color 0.3s;
}

.edit-btn:hover {
  background-color: #1976D2;
}

.delete-btn {
  padding: 6px 12px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .dialog-content {
    margin: 20px;
    padding: 20px;
  }
} 