.bot-settings-btn {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-settings-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}
.bot-settings-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.bot-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  will-change: opacity;
}
.bot-settings-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.bot-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  z-index: 1;
}
.bot-settings-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.bot-settings-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.bot-settings-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.bot-settings-content {
  padding: 24px;
}
.bot-settings-group {
  margin-bottom: 20px;
}
.bot-settings-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.bot-settings-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.2s;
}
.bot-settings-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}
.bot-settings-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}
.bot-settings-apply-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bot-settings-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
.bot-settings-apply-btn:active {
  transform: translateY(0);
}
.bot-settings-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}
.bot-settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.bot-settings-action-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bot-settings-action-icon {
  font-size: 18px;
}
.bot-settings-action-reset {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}
.bot-settings-action-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.bot-settings-action-reset:active {
  transform: translateY(0);
}
.bot-settings-time-buttons {
  margin-top: 16px;
}
.bot-settings-time-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bot-settings-time-btn {
  padding: 10px 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bot-settings-time-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}
.bot-settings-time-btn:active {
  transform: translateY(0);
}
.singleplayer-warning {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  color: #fbbf24;
  font-size: 14px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}
@media (prefers-color-scheme: light) {
  .bot-settings-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: rgba(0, 0, 0, 0.1);
  }
  .bot-settings-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }
  .bot-settings-title {
    color: #0f172a;
  }
  .bot-settings-close {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
  }
  .bot-settings-close:hover {
    background: rgba(0, 0, 0, 0.1);
  }
  .bot-settings-label {
    color: #1e293b;
  }
  .bot-settings-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
  }
  .bot-settings-input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: #3b82f6;
  }
  .bot-settings-hint {
    color: #64748b;
  }
  .bot-settings-divider {
    background: rgba(0, 0, 0, 0.1);
  }
  .bot-settings-section-title {
    color: #1e293b;
  }
  .singleplayer-warning {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #b45309;
  }
}
