/* 闲鱼智能客服 - 自定义样式 */

:root {
  --primary-color: #0d6efd;
  --success-color: #198754;
  --danger-color: #dc3545;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

main {
  flex: 1;
}

/* 导航栏 */
.navbar-brand {
  font-weight: bold;
}

/* 卡片 */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1rem;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 统计卡片 */
.card.bg-primary,
.card.bg-success,
.card.bg-info {
  transition: transform 0.2s;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover {
  transform: translateY(-2px);
}

/* 表格 */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

/* 按钮 */
.btn {
  transition: all 0.2s;
}

.btn-group .btn {
  flex: 1;
}

/* 表单 */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

textarea.form-control {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
}

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

/* 代码 */
code {
  background-color: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* 提示框 */
.alert {
  border: none;
  border-radius: 0.5rem;
}

/* 模态框 */
.modal-header {
  border-bottom: none;
}

.modal-footer {
  border-top: none;
}

/* Tab */
.nav-tabs .nav-link {
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* 快速开始卡片 */
.card .card.bg-light {
  border: 1px solid #e9ecef;
}

/* 响应式 */
@media (max-width: 768px) {
  .navbar-nav {
    margin-top: 0.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    margin-bottom: 0.25rem;
  }
}

/* 动画 */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* 状态指示器 */
.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.status-indicator.running {
  background-color: var(--success-color);
  animation: pulse 2s infinite;
}

.status-indicator.stopped {
  background-color: #6c757d;
}
