/* FrameRealm Admin CSS */

:root {
  --sidebar-width: 250px;
  --primary-color: #4a90e2;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-light);
  margin: 0;
}

/* 登录页面 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container .card {
  width: 100%;
  max-width: 400px;
  border: none;
  border-radius: 10px;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: #343a40;
  color: white;
  padding: 20px 0;
  z-index: 1000;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid #495057;
  margin-bottom: 10px;
}

.sidebar-header h4 {
  color: white;
}

.sidebar .nav {
  padding: 0 10px;
}

.sidebar .nav-link {
  color: #adb5bd;
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.sidebar .nav-link:hover {
  background-color: #495057;
  color: white;
}

.sidebar .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.sidebar .nav-link i {
  font-size: 1.2rem;
}

/* 主内容区 */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* 顶部导航栏 */
.topbar {
  background-color: white;
  border-bottom: 1px solid #dee2e6;
  padding: 15px 0;
}

/* 统计卡片 */
.stats-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 表格 */
.table th {
  font-weight: 600;
  color: #495057;
  border-top: none;
}

/* 卡片 */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* 徽章 */
.badge {
  padding: 6px 10px;
  font-weight: 500;
}

/* 按钮 */
.btn {
  border-radius: 5px;
  padding: 8px 16px;
}

/* 模态框 */
.modal-content {
  border: none;
  border-radius: 10px;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
}

/* 表单 */
.form-control,
.form-select {
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* 分页 */
.pagination .page-link {
  color: var(--primary-color);
  border: none;
  margin: 0 5px;
  border-radius: 5px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 响应式 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}
