/* 调研项目管理系统专用样式 */

/* 主题色覆盖 - 使用品牌红色 #BB1B21 */
:root {
  --bs-primary: #BB1B21;
  --bs-primary-rgb: 187, 27, 33;
}

/* 按钮主色 */
.btn-primary {
  background-color: #BB1B21 !important;
  border-color: #BB1B21 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #9a1619 !important;
  border-color: #9a1619 !important;
}

.btn-outline-primary {
  color: #BB1B21 !important;
  border-color: #BB1B21 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #BB1B21 !important;
  border-color: #BB1B21 !important;
  color: #fff !important;
}

/* 链接颜色 */
a {
  color: #BB1B21;
}

a:hover {
  color: #9a1619;
}

/* Badge 主色 */
.badge.bg-primary,
.badge.bg-label-primary {
  background-color: rgba(187, 27, 33, 0.12) !important;
  color: #BB1B21 !important;
}

/* 表单控件焦点 */
.form-control:focus,
.form-select:focus {
  border-color: #BB1B21 !important;
  box-shadow: 0 0 0 0.25rem rgba(187, 27, 33, 0.25) !important;
}

/* 复选框和单选框 */
.form-check-input:checked {
  background-color: #BB1B21 !important;
  border-color: #BB1B21 !important;
}

/* 进度条 */
.progress-bar {
  background-color: #BB1B21 !important;
}

/* 分页 */
.pagination .page-item.active .page-link {
  background-color: #BB1B21 !important;
  border-color: #BB1B21 !important;
}

.pagination .page-link {
  color: #BB1B21;
  border: 1px solid #ddd;
  padding: 0.375rem 0.75rem;
  margin: 0 2px;
  border-radius: 0.375rem;
}

.pagination .page-link:hover {
  background-color: rgba(187, 27, 33, 0.08);
  border-color: #BB1B21;
  color: #BB1B21;
}

.pagination .page-item.disabled .page-link {
  color: #a1acb8;
  background-color: transparent;
  border-color: #ddd;
}

/* 导航标签 */
.nav-pills .nav-link.active {
  background-color: #BB1B21 !important;
}

/* 文字颜色 */
.text-primary {
  color: #BB1B21 !important;
}

/* 背景颜色 */
.bg-primary {
  background-color: #BB1B21 !important;
}

/* 边框颜色 */
.border-primary {
  border-color: #BB1B21 !important;
}

/* 菜单激活状态 */
.menu-item.active > .menu-link {
  background-color: rgba(187, 27, 33, 0.08) !important;
  color: #BB1B21 !important;
}

.menu-item.active > .menu-link .menu-icon {
  color: #BB1B21 !important;
}

/* Avatar 主色 */
.avatar-initial.bg-label-primary {
  background-color: rgba(187, 27, 33, 0.12) !important;
  color: #BB1B21 !important;
}

/* 图标颜色 */
.ti.text-primary,
.text-primary i {
  color: #BB1B21 !important;
}

/* Spinner */
.spinner-border.text-primary {
  color: #BB1B21 !important;
}

/* Alert */
.alert-primary {
  background-color: rgba(187, 27, 33, 0.12) !important;
  border-color: rgba(187, 27, 33, 0.2) !important;
  color: #BB1B21 !important;
}

/* Avatar Group 样式（临时修复，等待前端编译） */
.avatar-group {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.avatar-group .avatar,
.avatar-group li.avatar {
  margin-left: -0.75rem !important;
  transition: all 0.25s ease;
  position: relative;
}

.avatar-group .avatar:first-child,
.avatar-group li.avatar:first-child {
  margin-left: 0 !important;
}

.avatar-group .avatar img,
.avatar-group .avatar .avatar-initial,
.avatar-group li.avatar img,
.avatar-group li.avatar .avatar-initial {
  border: 2px solid #fff;
}

.avatar-group .avatar:hover,
.avatar-group li.avatar:hover {
  z-index: 30;
}

/* 统计卡片样式 */
.stats-card {
  transition: transform 0.2s ease-in-out;
}

.stats-card:hover {
  transform: translateY(-2px);
}

.stats-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* 风险标记样式 */
.risk-badge {
  background-color: #ff4757;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.no-contact-badge {
  background-color: #ffa502;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 授权状态样式 */
.auth-status-active {
  color: #2ed573;
}

.auth-status-expired {
  color: #ff4757;
}

.auth-status-revoked {
  color: #747d8c;
}

/* 行业入口卡片样式 */
.industry-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.industry-card:hover {
  border-color: #696cff;
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.15);
  transform: translateY(-2px);
}

.industry-icon {
  font-size: 2rem;
  color: #696cff;
  margin-bottom: 1rem;
}

/* 搜索结果样式 */
.search-result-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease-in-out;
}

.search-result-item:hover {
  border-color: #696cff;
}

.unlock-btn {
  background: linear-gradient(135deg, #696cff 0%, #5a67d8 100%);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
}

/* 项目状态样式 */
.project-status-active {
  background-color: #2ed573;
  color: white;
}

.project-status-completed {
  background-color: #5352ed;
  color: white;
}

.project-status-archived {
  background-color: #747d8c;
  color: white;
}

/* 用户状态样式 */
.user-status-active {
  background-color: #2ed573;
  color: white;
}

.user-status-disabled {
  background-color: #ff4757;
  color: white;
}

/* 团队卡片样式 */
.team-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.team-card:hover {
  border-color: #696cff;
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.15);
}

/* 访谈记录样式 */
.interview-record {
  border-left: 4px solid #696cff;
  background-color: #f8f9fa;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

/* 授权类型标签样式 */
.auth-type-project {
  background-color: #3742fa;
  color: white;
}

.auth-type-industry {
  background-color: #2ed573;
  color: white;
}

.auth-type-interviewee {
  background-color: #ffa502;
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .industry-card {
    margin-bottom: 1rem;
  }
  
  .search-result-item {
    padding: 0.75rem;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
}

/* 自定义滚动条 */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #696cff;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #696cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}