/* AetherNet 管理后台样式 */
:root {
  --primary-color: #1890ff;
  --secondary-color: #52c41a;
  --dark-color: #001529;
  --light-color: #f0f2f5;
  --danger-color: #f5222d;
  --text-color: #333;
  --text-light: #fff;
  --border-color: #e8e8e8;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 隐藏所有滚动条但保留滚动功能 */
body, html, .content, .main-content, #mainContent {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  overflow-y: auto; /* 保留垂直滚动 */
  overflow-x: hidden; /* 防止水平滚动 */
}

/* WebKit 浏览器的滚动条隐藏 */
body::-webkit-scrollbar, 
html::-webkit-scrollbar,
.content::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
#mainContent::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 主内容区域 */
.content {
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  color: var(--text-light);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

/* 附加样式 */
.text-success {
  color: var(--secondary-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-warning {
  color: #faad14;
}

.btn-action {
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 8px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.btn-action:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .sidebar {
    width: 80px;
  }
  
  .sidebar-title {
    display: none;
  }
  
  .menu-item span {
    display: none;
  }
  
  .stats-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .top-nav {
    padding: 0 10px;
  }
}

/* 侧边栏折叠状态 */
.sidebar-collapsed .sidebar {
  width: 80px;
}

.sidebar-collapsed .sidebar-title {
  display: none;
}

.sidebar-collapsed .menu-item span {
  display: none;
}

/* 确保分页元素正常显示 */
.pagination, .pagination-container, .page-numbers, .page-btn {
  display: flex !important;
  overflow: visible !important;
} 
