/* 管理系统样式 - 第一部分：基础样式和布局 */

:root {
  --primary-color: #4285f4;
  --secondary-color: #34a853;
  --accent-color: #fbbc05;
  --danger-color: #ea4335;
  --success-color: #34a853;
  --warning-color: #fbbc05;
  --info-color: #4285f4;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #6c757d;
  --gray-light-color: #e9ecef;
  --gray-dark-color: #495057;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --header-height: 60px;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
.admin-body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  min-height: 100vh;
  line-height: 1.5;
}

.admin-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-speed);
}

/* 侧边栏样式 */
.admin-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition-speed);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.admin-logo {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.admin-logo h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  margin: 0;
}

.admin-nav {
  padding: 20px 0;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-nav li {
  margin-bottom: 2px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-nav a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-color);
}

.admin-nav a i {
  font-size: 16px;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.admin-nav li.active a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
}

.admin-sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.admin-sidebar-footer a:hover {
  color: #fff;
}

.admin-sidebar-footer a i {
  margin-right: 10px;
}

/* 主内容区域 */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* 侧边栏折叠状态 */
.sidebar-collapsed .admin-sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .admin-logo h2,
.sidebar-collapsed .admin-nav a span,
.sidebar-collapsed .admin-sidebar-footer span {
  display: none;
}

.sidebar-collapsed .admin-nav a {
  padding: 12px 0;
  justify-content: center;
}

.sidebar-collapsed .admin-nav a i {
  margin-right: 0;
  font-size: 18px;
}

.sidebar-collapsed .admin-main {
  margin-left: var(--sidebar-collapsed-width);
}

/* 顶部导航栏 */
.admin-header {
  height: var(--header-height);
  background-color: #fff;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-header-left {
  display: flex;
  align-items: center;
}

.admin-header-left h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  margin-left: 15px;
}

.admin-header-right {
  display: flex;
  align-items: center;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-color);
  cursor: pointer;
  padding: 5px;
}

.menu-toggle:hover {
  color: var(--dark-color);
}

.search-bar {
  position: relative;
  margin-right: 20px;
}

.search-bar input {
  padding: 8px 35px 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray-light-color);
  background-color: #f5f7fa;
  min-width: 200px;
  font-size: 14px;
  transition: all 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-color);
  font-size: 14px;
  cursor: pointer;
}

.notifications {
  position: relative;
  margin-right: 20px;
  cursor: pointer;
}

.notifications i {
  font-size: 18px;
  color: var(--gray-color);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger-color);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.admin-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.admin-profile span {
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
}

/* 统计卡片样式 */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 22px;
  color: #fff;
}

.stat-icon.blue {
  background-color: var(--primary-color);
}

.stat-icon.green {
  background-color: var(--success-color);
}

.stat-icon.orange {
  background-color: var(--warning-color);
}

.stat-icon.red {
  background-color: var(--danger-color);
}

.stat-info h3 {
  font-size: 14px;
  color: var(--gray-color);
  margin: 0 0 5px 0;
}

.stat-info p {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.stat-change {
  font-size: 12px;
  display: flex;
  align-items: center;
}

.stat-change i {
  margin-left: 3px;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

/* 图表容器 */
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.chart-container {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chart-header h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.chart-actions select,
.chart-actions button {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--gray-light-color);
  border-radius: 4px;
  background-color: #fff;
}

.chart-actions button {
  cursor: pointer;
  margin-left: 5px;
}

.chart-actions button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.chart-placeholder {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.chart-bar {
  width: 30px;
  background-color: var(--primary-color);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s;
}

.pie-chart-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #f5f7fa;
  position: relative;
  margin: 0 auto;
}

.pie-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  top: 0;
  left: 0;
}

.pie-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 600;
  background-color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-legend {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 15px;
  margin-bottom: 5px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 5px;
}

.legend-text {
  font-size: 13px;
}

/* 活动列表 */
.recent-activities {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.view-all {
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-light-color);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #fff;
  flex-shrink: 0;
}

.activity-icon.blue {
  background-color: var(--primary-color);
}

.activity-icon.green {
  background-color: var(--success-color);
}

.activity-icon.orange {
  background-color: var(--warning-color);
}

.activity-icon.red {
  background-color: var(--danger-color);
}

.activity-icon.purple {
  background-color: #8e44ad;
}

.activity-details p {
  margin: 0;
  font-size: 14px;
}

.activity-time {
  font-size: 12px;
  color: var(--gray-color);
}

/* 即将到期的考试 */
.upcoming-exams {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

/* 表格样式 */
.exams-table-container,
.questions-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.exams-table,
.questions-table {
  width: 100%;
  border-collapse: collapse;
}

.exams-table th,
.exams-table td,
.questions-table th,
.questions-table td {
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-light-color);
}

.exams-table th,
.questions-table th {
  font-weight: 500;
  color: var(--gray-dark-color);
  background-color: #f8f9fa;
}

.exams-table tr:hover,
.questions-table tr:hover {
  background-color: #f5f7fa;
}

.checkbox-column {
  width: 40px;
}

.action-buttons {
  display: flex;
  gap: 5px;
}

.action-buttons button {
  background: none;
  border: none;
  font-size: 14px;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-edit {
  color: var(--primary-color);
}

.btn-view {
  color: var(--info-color);
}

.btn-duplicate {
  color: var(--warning-color);
}

.btn-delete {
  color: var(--danger-color);
}

.action-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 状态标签 */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status.pending {
  background-color: rgba(251, 188, 5, 0.15);
  color: #b17900;
}

.status.active {
  background-color: rgba(52, 168, 83, 0.15);
  color: #1e7e34;
}

.status.completed {
  background-color: rgba(66, 133, 244, 0.15);
  color: #0b5ed7;
}

.status.draft {
  background-color: rgba(108, 117, 125, 0.15);
  color: #495057;
}

/* 分页控件 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 15px 20px;
  font-size: 14px;
}

.pagination-info {
  color: var(--gray-color);
}

.pagination-controls {
  display: flex;
  gap: 5px;
}

.pagination-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--gray-light-color);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-button:hover:not(:disabled) {
  background-color: #f5f7fa;
}

.pagination-button.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-size select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-light-color);
  font-size: 13px;
}

/* 登录页样式 */
.admin-login-body {
  background-color: #f4f6f9;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-login-container {
  width: 1000px;
  max-width: 95%;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  height: 600px;
}

.admin-login-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.admin-logo-img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.admin-login-header h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.admin-login-header p {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.admin-login-form {
  flex: 1;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-dark-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-input-with-icon {
  position: relative;
}

.admin-input-with-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-color);
}

.admin-input-with-icon input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.admin-input-with-icon input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.role-select-container {
  position: relative;
}

.role-select {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.role-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.admin-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.admin-login-button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.admin-login-button:hover {
  background-color: #3367d6;
}

.admin-login-footer {
  margin-top: 20px;
  text-align: center;
  color: var(--gray-color);
  font-size: 0.85rem;
}

.admin-login-sidebar {
  width: 350px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-sidebar-content h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.admin-sidebar-content h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.6);
}

.admin-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.admin-features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.admin-features-list li i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.admin-security-info {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
}

.admin-security-info h4 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.admin-security-info h4 i {
  margin-right: 8px;
}

.admin-security-info p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .admin-login-container {
    flex-direction: column;
    height: auto;
  }
  
  .admin-login-sidebar {
    width: 100%;
    order: -1;
  }
  
  .admin-login-content {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .admin-login-header {
    margin-bottom: 20px;
  }
  
  .admin-logo-img {
    width: 60px;
    height: 60px;
  }
  
  .admin-login-content {
    padding: 20px;
  }
  
  .admin-form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .forgot-password {
    margin-top: 10px;
  }
  
  .admin-login-sidebar {
    padding: 25px;
  }
}

/* 响应式设计 */
@media (min-width: 992px) {
    .admin-login-sidebar {
        display: block;
    }
    
    .login-box {
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 0 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        padding: 20px 15px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions {
        margin-top: 10px;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* 控制栏 */
.admin-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-controls-left,
.admin-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn i {
  margin-right: 8px;
  font-size: 14px;
}

.btn.primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn.primary:hover {
  background-color: #3367d6;
}

.btn.secondary {
  background-color: #fff;
  color: var(--gray-dark-color);
  border-color: var(--gray-light-color);
}

.btn.secondary:hover {
  background-color: #f5f7fa;
}

.btn.danger {
  background-color: var(--danger-color);
  color: #fff;
}

.btn.danger:hover {
  background-color: #c62828;
}

.btn.success {
  background-color: var(--success-color);
  color: #fff;
}

.btn.success:hover {
  background-color: #2e7d32;
}

/* 筛选组 */
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  color: var(--gray-dark-color);
}

.filter-select {
  padding: 7px 30px 7px 12px;
  border: 1px solid var(--gray-light-color);
  border-radius: 6px;
  font-size: 13px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%236c757d' d='M0 2l4 4 4-4H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 120px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.modal-visible {
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--transition-speed);
}

.modal-visible .modal-content {
  transform: translateY(0);
}

.large-modal {
  width: 700px;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-light-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-color);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--gray-light-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light-color);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

/* 富文本编辑器 */
.rich-editor {
  border: 1px solid var(--gray-light-color);
  border-radius: 6px;
  overflow: hidden;
}

.editor-toolbar {
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--gray-light-color);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.toolbar-btn {
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  color: var(--gray-dark-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.rich-editor textarea {
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 0;
  resize: vertical;
  min-height: 150px;
}

.rich-editor textarea:focus {
  outline: none;
  box-shadow: none;
}

/* 选项管理 */
.options-container {
  margin-bottom: 15px;
}

.option-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
}

.option-input {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.option-label {
  margin: 0 10px;
  font-weight: 500;
  min-width: 20px;
}

.option-text {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--gray-light-color);
  border-radius: 4px;
  font-size: 14px;
}

.option-remove {
  background: none;
  border: none;
  color: var(--danger-color);
  margin-left: 10px;
  cursor: pointer;
  font-size: 14px;
}

/* 题库标签页 */
.question-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.tab-button {
  padding: 8px 15px;
  border: none;
  background-color: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark-color);
  cursor: pointer;
  white-space: nowrap;
}

.tab-button.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* 题库表格特殊样式 */
.question-preview {
  max-width: 300px;
}

.question-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.difficulty {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.difficulty.easy {
  background-color: rgba(52, 168, 83, 0.15);
  color: #1e7e34;
}

.difficulty.medium {
  background-color: rgba(251, 188, 5, 0.15);
  color: #b17900;
}

.difficulty.hard {
  background-color: rgba(234, 67, 53, 0.15);
  color: #c62828;
}

/* 响应式布局 */
@media (max-width: 992px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    box-shadow: none;
  }
  
  .admin-logo {
    justify-content: flex-start;
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-header {
    flex-wrap: wrap;
  }
  
  .admin-header-right {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .admin-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-controls-left,
  .admin-controls-right {
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .admin-header-left h1 {
    font-size: 18px;
  }
  
  .search-bar input {
    min-width: 150px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .pagination-info,
  .pagination-controls,
  .pagination-size {
    width: 100%;
  }
  
  .pagination-controls {
    justify-content: center;
  }
  
  .pagination-size {
    justify-content: flex-end;
  }
}

/* 用户资料页面样式 */
.user-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light-color);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f5f7fa;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex-grow: 1;
}

.user-info h3 {
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 500;
}

.user-info p {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: var(--gray-color);
}

.user-status {
  display: flex;
  justify-content: flex-end;
}

.user-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.detail-item {
  flex: 1 0 calc(33.333% - 15px);
  min-width: 150px;
}

.detail-item.full-width {
  flex: 1 0 100%;
}

.detail-label {
  font-size: 13px;
  color: var(--gray-color);
  margin-bottom: 5px;
}

.detail-value {
  font-size: 15px;
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 额外添加状态颜色 */
.status.blocked {
  background-color: rgba(234, 67, 53, 0.15);
  color: #c62828;
}

.status.inactive {
  background-color: rgba(108, 117, 125, 0.15);
  color: #495057;
}

/* 系统设置页面样式 */
.settings-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  overflow-x: auto;
}

.settings-tab {
  padding: 12px 20px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.settings-tab.active {
  color: var(--primary-color);
}

.settings-tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.settings-section {
  margin-bottom: 40px;
}

.settings-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.settings-section h3 i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.settings-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.settings-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.settings-card h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.settings-form-group {
  margin-bottom: 20px;
}

.settings-form-group:last-child {
  margin-bottom: 0;
}

.settings-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-color);
}

.settings-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.settings-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.settings-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.switch-container {
  display: flex;
  align-items: center;
}

.switch-label {
  margin-bottom: 0;
  margin-right: 10px;
  flex: 1;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--primary-color);
}

input:focus + .switch-slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.backup-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.backup-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.backup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.backup-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
}

.backup-info {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.backup-actions {
  display: flex;
  gap: 10px;
}

.file-upload {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.file-upload:hover {
  border-color: var(--primary-color);
}

.file-upload i {
  margin-right: 10px;
  color: var(--primary-color);
}

.file-upload-text {
  font-size: 14px;
  color: var(--text-color);
}

.notification-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.notification-info {
  flex: 1;
}

.notification-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.notification-desc {
  font-size: 13px;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }
  
  .settings-tab {
    padding: 10px 15px;
  }
  
  .backup-actions {
    flex-direction: column;
  }
}

/* 监控页面样式 */
.monitoring-overview {
  margin-bottom: 2rem;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.overview-actions {
  display: flex;
  gap: 0.8rem;
}

.active-exams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.exam-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--color-primary-light);
  position: relative;
  overflow: hidden;
}

.exam-card.active {
  border-left-color: var(--color-success);
}

.exam-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.in-progress {
  background-color: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.status-badge.upcoming {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-badge.completed {
  background-color: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.time-remaining, .time-to-start {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.exam-info {
  margin-bottom: 1rem;
}

.exam-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.exam-info p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.exam-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
}

.monitoring-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.monitor-tabs {
  border-bottom: 1px solid var(--color-border);
}

.realtime-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.realtime-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.monitoring-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-switcher {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.view-button {
  border: none;
  background: #f4f6f8;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.view-button.active {
  background: var(--color-primary);
  color: white;
}

.examinees-grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.examinees-grid.list-view {
  grid-template-columns: 1fr;
}

.examinees-grid.list-view .examinee-card {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.examinees-grid.list-view .examinee-snapshot {
  width: 80px;
  margin-right: 1rem;
  margin-bottom: 0;
}

.examinees-grid.list-view .examinee-info {
  flex: 1;
  margin-right: 1rem;
}

.examinee-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  position: relative;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.examinee-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.examinee-card.warning {
  border-left: 3px solid var(--color-warning);
}

.examinee-snapshot {
  position: relative;
  margin-bottom: 0.8rem;
}

.examinee-snapshot img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.status-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-indicator.active {
  background-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.status-indicator.warning {
  background-color: var(--color-warning);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.status-indicator.idle {
  background-color: var(--color-info);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.3);
}

.examinee-info h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.examinee-info p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.warning-text {
  color: var(--color-warning) !important;
  font-weight: 500;
}

.idle-text {
  color: var(--color-info) !important;
  font-weight: 500;
}

.examinee-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.action-button {
  border: none;
  background: #f4f6f8;
  color: var(--color-text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: #e9ecef;
  color: var(--color-text-primary);
}

.action-button.warning {
  color: var(--color-warning);
}

.action-button.active {
  background: var(--color-success);
  color: white;
}

.anomalies-header, .sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.anomalies-header h3, .sessions-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.anomalies-list {
  padding: 1rem 1.5rem;
}

.anomaly-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  background-color: #f9f9f9;
  border-left: 3px solid transparent;
}

.anomaly-item.high {
  border-left-color: var(--color-danger);
  background-color: rgba(220, 53, 69, 0.05);
}

.anomaly-item.medium {
  border-left-color: var(--color-warning);
  background-color: rgba(255, 193, 7, 0.05);
}

.anomaly-item.low {
  border-left-color: var(--color-info);
  background-color: rgba(23, 162, 184, 0.05);
}

.anomaly-time {
  width: 90px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.anomaly-student {
  display: flex;
  align-items: center;
  width: 200px;
}

.student-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.8rem;
  object-fit: cover;
}

.anomaly-type {
  flex: 1;
  font-weight: 500;
}

.anomaly-risk {
  width: 100px;
  text-align: center;
}

.risk-level {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.risk-level.high {
  background-color: rgba(220, 53, 69, 0.15);
  color: var(--color-danger);
}

.risk-level.medium {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--color-warning);
}

.risk-level.low {
  background-color: rgba(23, 162, 184, 0.15);
  color: var(--color-info);
}

.anomaly-actions {
  display: flex;
  gap: 0.4rem;
}

.sessions-list {
  padding: 1rem 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: #f4f6f8;
}

.admin-table tr:hover {
  background-color: #f9f9f9;
}

.small-button {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .active-exams {
    grid-template-columns: 1fr;
  }
  
  .anomaly-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .anomaly-time, .anomaly-student, .anomaly-type, .anomaly-risk {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .anomaly-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .examinees-grid {
    grid-template-columns: 1fr;
  }
  
  .monitoring-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .realtime-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .realtime-header h3 {
    margin-bottom: 0.5rem;
  }
  
  .overview-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .overview-actions {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* 数据分析页面样式 */
.reports-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.report-section {
  display: none;
  padding: 20px;
}

.report-section.active {
  display: block;
}

.report-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 14px;
  color: var(--gray-dark-color);
  white-space: nowrap;
}

.chart {
  padding: 20px 0;
}

.chart-placeholder {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  margin-top: 20px;
}

.chart-bar {
  width: 30px;
  background-color: var(--primary-color);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s;
}

.chart-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.chart-label {
  font-size: 12px;
  color: var(--gray-color);
  text-align: center;
  max-width: 60px;
}

.line-chart-placeholder {
  height: 200px;
  margin-top: 20px;
  padding: 0 10px;
}

.line-chart {
  width: 100%;
  height: 100%;
}

.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.pie-chart-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #f5f7fa;
  position: relative;
  overflow: hidden;
}

.pie-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.pie-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-text {
  font-size: 13px;
  color: var(--gray-dark-color);
}

.chart-controls {
  display: flex;
  gap: 5px;
}

.chart-btn {
  background-color: #f5f7fa;
  border: 1px solid var(--gray-light-color);
  color: var(--gray-dark-color);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.data-table-container {
  margin-top: 30px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.table-header h3 {
  font-size: 18px;
  margin: 0;
}

.table-responsive {
  overflow-x: auto;
}

.admin-button.small-button {
  padding: 4px 8px;
  font-size: 12px;
}

@media (max-width: 992px) {
  .report-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .control-group {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .report-section {
    padding: 15px;
  }
  
  .chart-placeholder, .line-chart-placeholder {
    height: 150px;
  }
  
  .chart-bar {
    width: 20px;
  }
  
  .chart-label {
    font-size: 10px;
  }
  
  .legend-text {
    font-size: 12px;
  }
} 