* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
}

.layout {
  height: 100vh;
}

.sidebar {
  background: #1d1e2c;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #2d2e3f;
  flex-shrink: 0;
}

.sidebar-menu {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #3a3b4d;
  border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e7ed;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.back-btn {
  padding: 4px;
  margin-right: 4px;
  color: #606266;
}

.back-btn:hover {
  color: #409eff;
}

.sql-query-page .el-card {
  border: none;
}

.main-content {
  padding: 20px;
  overflow-y: auto;
}

.toolbar {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}

.pagination-bar {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.stat-card {
  text-align: center;
  padding: 10px 0;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #409eff;
}

.stat-label {
  font-size: 14px;
  color: #909399;
  margin-top: 8px;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }

.form-tip {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
  line-height: 1.5;
}

.access-url-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.access-url-list a {
  color: #409eff;
  text-decoration: none;
}

.access-url-list a:hover {
  text-decoration: underline;
}

.api-history-detail {
  padding: 4px 12px 12px;
}

.api-history-page .api-history-summary {
  margin-bottom: 0;
}

.api-history-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.api-history-summary-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.api-history-summary-url {
  color: #909399;
  font-size: 13px;
  word-break: break-all;
}

.result-item {
  padding: 16px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #fafafa;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-name {
  font-size: 16px;
  font-weight: 600;
}

.result-meta {
  font-size: 13px;
  color: #909399;
}

.response-body {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  overflow-x: auto;
  max-height: 300px;
  white-space: pre-wrap;
  word-break: break-all;
}

.el-menu {
  border-right: none !important;
}

.sidebar .el-sub-menu .el-menu {
  background-color: #161722 !important;
}

.sidebar .el-sub-menu__title:hover,
.sidebar .el-menu-item:hover {
  background-color: #26273a !important;
}

.el-transfer {
  display: flex;
  justify-content: center;
}

