/* 多平台营销活动自动化执行系统 - 自定义样式 */

body {
  margin: 0;
  padding: 0;
  background-color: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

/* 左侧边栏 */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  background: #1a1a2e;
}

#sidebar .sidebar-brand {
  font-weight: 600;
  font-size: 15px;
}

#sidebar .nav-link {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  margin: 1px 8px;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s;
}

#sidebar .nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

#sidebar .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 6px;
}

#sidebar .nav-link.active {
  background: rgba(67, 97, 238, 0.25);
  color: #fff;
}

#sidebar .nav-link.text-secondary {
  padding: 6px 16px;
  font-size: 12px;
  margin-top: 8px;
}

/* 主内容区 */
.flex-grow-1 {
  margin-left: 220px;
}

/* 卡片 */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}

.card-header {
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

/* 按钮 */
.btn-primary {
  background-color: #4361ee;
  border-color: #4361ee;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3a56d4;
  border-color: #3a56d4;
}

/* 表格 */
.table {
  font-size: 0.875rem;
}

.table thead th {
  font-weight: 600;
  color: #495057;
  font-size: 0.8rem;
}

.table tbody tr:hover {
  background-color: rgba(67, 97, 238, 0.04);
}

/* 状态徽章 */
.badge {
  font-weight: 500;
}

/* 标题 */
h4 {
  color: #1a1a2e;
  font-weight: 600;
}

/* 表单 */
.form-label {
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}
