/* 管理后台样式 */
.admin-container {
  height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  margin: 0;
  color: #ecf0f1;
  font-size: 18px;
}

.sidebar-menu {
  border: none;
  background: transparent;
}

.sidebar-menu .el-menu-item {
  color: #ecf0f1;
  border-radius: 8px;
  margin: 4px 12px;
  transition: all 0.3s ease;
}

.sidebar-menu .el-menu-item:hover {
  background-color: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.sidebar-menu .el-menu-item.is-active {
  background-color: #3498db;
  color: white;
}

.sidebar-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.admin-header {
  background: white;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header-left h3 {
  margin: 0;
  color: #2c3e50;
}

.admin-main {
  background: #f5f7fa;
  padding: 20px;
}

.page-container {
  min-height: calc(100vh - 120px);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e6e6e6;
}

.page-header h2 {
  margin: 0;
  color: #2c3e50;
}

/* 统计卡片样式 */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card .el-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.stat-content .stat-value {
  font-size: 2em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-content .stat-label {
  color: #7f8c8d;
  font-size: 14px;
}

.stat-icon {
  font-size: 3em;
  color: #3498db;
  opacity: 0.3;
}

/* 设备状态样式 */
.device-id {
  font-family: monospace;
  font-size: 12px;
}

.text-success {
  color: #67c23a;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 200px !important;
  }
  
  .sidebar-header h2 {
    font-size: 16px;
  }
  
  .stat-card .el-card__body {
    padding: 15px;
  }
  
  .stat-content .stat-value {
    font-size: 1.5em;
  }
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
}

.loading-text {
  margin-top: 20px;
  color: #606266;
  font-size: 16px;
}