/**
 * 场景配置界面样式增强集合
 * 优化场景配置的视觉效果和用户体验
 */

/* 引入颜色主题覆盖 */
:root {
  --primary-color: #0062cc;
  --primary-light: #4d94ff;
  --primary-dark: #004494;
  --primary-color-rgb: 0, 98, 204;
  --text-color: #2c3e50;
  --text-secondary: #5c6b7a;
  --border-radius: 14px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 场景配置卡片样式增强 */
#settings-tab-pane .card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 
              0 1px 2px rgba(0, 0, 0, 0.03);
  background: linear-gradient(to bottom right, #ffffff, #f9fbff);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#settings-tab-pane .card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 
              0 5px 15px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

#settings-tab-pane .card-header {
  background: linear-gradient(120deg, rgba(0, 98, 204, 0.05), rgba(77, 148, 255, 0.1));
  border-bottom: 1px solid rgba(0, 98, 204, 0.08);
  padding: 1rem 1.5rem;
}

#settings-tab-pane .card-header i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

#settings-tab-pane .card-body {
  padding: 1.5rem;
}

/* 表单容器样式 */
.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* 按钮增强样式 */
#startSessionBtn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 98, 204, 0.2);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#startSessionBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 98, 204, 0.3);
}

/* 标签页导航增强 */
.nav-tabs {
  border-bottom: 1px solid rgba(0, 98, 204, 0.1);
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.nav-tabs .nav-link:hover:not(.active) {
  background-color: rgba(0, 98, 204, 0.05);
  color: var(--text-color);
  border-color: transparent;
}

/* 为初始状态滑块添加特殊样式 */
#initial_trust, #initial_interest, #initial_intention {
  background: linear-gradient(to right, 
    rgba(255, 59, 48, 0.7) 0%, 
    rgba(255, 204, 0, 0.7) 40%, 
    rgba(52, 199, 89, 0.7) 100%);
}

/* 滑块重置按钮特殊样式 */
.simple-slider-reset {
  opacity: 0;
  transition: all 0.3s ease;
}

.slider-header:hover .simple-slider-reset {
  opacity: 1;
}

/* 导入其他样式文件中的样式 */
/* 从settings-enhance.css导入内容 */
.settings-group {
  margin-bottom: 2rem;
  padding: 1.8rem;
  background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 
              0 1px 1px rgba(0, 0, 0, 0.02),
              0 4px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(230, 230, 230, 0.7);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.settings-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 
              0 1px 2px rgba(0, 0, 0, 0.02),
              0 6px 12px rgba(0, 0, 0, 0.03);
}

.settings-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-group-title i {
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 8px;
}

/* 表单控件样式 */
.form-control {
  border: 1.5px solid rgba(220, 220, 220, 0.8);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  background-color: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  background-color: #fff;
  transform: translateY(-1px);
}

.form-select {
  border: 1.5px solid rgba(220, 220, 220, 0.8);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  padding-right: 2.5rem;
  font-size: 0.95rem;
  background-color: rgba(250, 250, 250, 0.8);
  background-position: right 1rem center;
  background-size: 16px 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  background-color: #fff;
  transform: translateY(-1px);
}

/* 滑块样式 */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(to right, #e9ecef, #dee2e6);
  outline: none;
  transition: all 0.3s ease;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

/* 滑块标签和值样式 */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  min-width: 2.5rem;
  text-align: center;
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 10px;
  border-radius: 15px;
  transition: all 0.2s ease;
  display: inline-block;
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.settings-group {
  animation: slideInUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.settings-group:nth-child(1) {
  animation-delay: 0.1s;
}

.settings-group:nth-child(2) {
  animation-delay: 0.2s;
}

.settings-group:nth-child(3) {
  animation-delay: 0.3s;
}

.settings-group:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes inputFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

.form-control:focus,
.form-select:focus {
  animation: inputFocus 0.8s ease-out;
}

/* 滑块数值变化动画 */
@keyframes valueChange {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.value-change {
  animation: valueChange 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
